Skip to content

Commit c81737c

Browse files
committed
0.13
i18n
1 parent bef4ac8 commit c81737c

File tree

4 files changed

+137
-29
lines changed

4 files changed

+137
-29
lines changed

htdocs/luci-static/resources/view/fleth.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -277,15 +277,15 @@ return view.extend({
277277

278278
o = s.taboption("tools", form.Button, "_replace_mapsh");
279279
o.title = " ";
280-
o.inputtitle = _("Replace MAP.sh");
280+
o.inputtitle = _("Replace");
281281
o.inputstyle = data.mapBackupExists ? "cbi-button-action" : "cbi-button-apply";
282282
o.onclick = L.bind(function (m) {
283283
return this.replaceMapSh(m);
284284
}, this, m);
285285

286286
o = s.taboption("tools", form.Button, "_restore_mapsh");
287287
o.title = " ";
288-
o.inputtitle = _("Restore Original MAP.sh");
288+
o.inputtitle = _("Restore");
289289
o.inputstyle = "cbi-button-action";
290290
o.onclick = L.bind(function (m) {
291291
return this.restoreMapSh(m);
@@ -379,8 +379,8 @@ return view.extend({
379379
mapObj.save()
380380
.then(function () {
381381
// Show loading message
382-
ui.showModal(_('Replacing MAP.sh'), [
383-
E('p', { 'class': 'spinning' }, _('Downloading and replacing MAP.sh...'))
382+
ui.showModal(_('Replacing'), [
383+
E('p', { 'class': 'spinning' }, _('Downloading...'))
384384
]);
385385

386386
// Execute the replace operation via fleth script
@@ -390,15 +390,15 @@ return view.extend({
390390
ui.hideModal();
391391

392392
if (result.code === 0 && result.stdout.trim() === 'SUCCESS') {
393-
ui.addNotification(null, E('p', _('map.sh replaced successfully! Please restart the network interface if needed.')), 'info');
393+
ui.addNotification(null, E('p', _('Replaced successfully! Please restart the network interface manually.')), 'info');
394394

395395
// Reload page to update backup status
396396
setTimeout(function() {
397397
window.location.reload();
398398
}, 2000);
399399
} else {
400400
ui.addNotification(null, E('div', [
401-
E('p', _('Failed to replace MAP.sh:')),
401+
E('p', _('Failed to replace:')),
402402
E('pre', result.stdout || result.stderr || 'Unknown error')
403403
]), 'error');
404404
}
@@ -408,7 +408,7 @@ return view.extend({
408408
.catch(function (error) {
409409
ui.hideModal();
410410
ui.addNotification(null, E('div', [
411-
E('p', _('Error replacing MAP.sh:')),
411+
E('p', _('Error replacing:')),
412412
E('pre', error.message || error)
413413
]), 'error');
414414
reject(error);
@@ -422,8 +422,8 @@ return view.extend({
422422
mapObj.save()
423423
.then(function () {
424424
// Show loading message
425-
ui.showModal(_('Restoring MAP.sh'), [
426-
E('p', { 'class': 'spinning' }, _('Restoring original MAP.sh...'))
425+
ui.showModal(_('Restoring'), [
426+
E('p', { 'class': 'spinning' }, _('Restoring...'))
427427
]);
428428

429429
// Execute the restore operation via fleth script
@@ -433,15 +433,15 @@ return view.extend({
433433
ui.hideModal();
434434

435435
if (result.code === 0 && result.stdout.trim() === 'SUCCESS') {
436-
ui.addNotification(null, E('p', _('Original map.sh restored successfully! Please restart the network interface if needed.')), 'info');
436+
ui.addNotification(null, E('p', _('Restored successfully! Please restart the network interface manually.')), 'info');
437437

438438
// Reload page to update backup status
439439
setTimeout(function() {
440440
window.location.reload();
441441
}, 2000);
442442
} else {
443443
ui.addNotification(null, E('div', [
444-
E('p', _('Failed to restore MAP.sh:')),
444+
E('p', _('Failed to restore:')),
445445
E('pre', result.stdout || result.stderr || 'Unknown error')
446446
]), 'error');
447447
}
@@ -451,7 +451,7 @@ return view.extend({
451451
.catch(function (error) {
452452
ui.hideModal();
453453
ui.addNotification(null, E('div', [
454-
E('p', _('Error restoring MAP.sh:')),
454+
E('p', _('Error restoring:')),
455455
E('pre', error.message || error)
456456
]), 'error');
457457
reject(error);

po/ja/fleth.po

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ msgid "map.sh Management"
171171
msgstr "map.sh 管理"
172172

173173
msgid "OpenWrt's map.sh has bugs: only the first port group works and ICMP is broken. Click below to replace with the fixed version."
174-
msgstr "OpenWrt の map.sh にはバグがあります:最初のポートグループのみ動作し、ICMP が機能しません。下記をクリックして修正版に置き換えてください。"
174+
msgstr "OpenWrt の map.sh にバグがあり、最初のポートグループしか使えず、ICMP も動作しません。修正版への置き換えをお勧めします。"
175175

176176
msgid "See more"
177177
msgstr "詳細を見る"
@@ -217,3 +217,39 @@ msgstr "map.sh の置き換え中にエラーが発生しました:"
217217

218218
msgid "Error restoring MAP.sh:"
219219
msgstr "map.sh の復元中にエラーが発生しました:"
220+
221+
msgid "Replace"
222+
msgstr "置き換える"
223+
224+
msgid "Restore"
225+
msgstr "復元"
226+
227+
msgid "Replacing"
228+
msgstr "置き換え中"
229+
230+
msgid "Downloading..."
231+
msgstr "ダウンロード中..."
232+
233+
msgid "Restoring"
234+
msgstr "復元中"
235+
236+
msgid "Restoring..."
237+
msgstr "復元中..."
238+
239+
msgid "Replaced successfully! Please restart the network interface manually."
240+
msgstr "置き換え完了!手動でネットワークインターフェースを再起動してください。"
241+
242+
msgid "Restored successfully! Please restart the network interface manually."
243+
msgstr "復元完了!手動でネットワークインターフェースを再起動してください。"
244+
245+
msgid "Failed to replace:"
246+
msgstr "置き換え失敗:"
247+
248+
msgid "Failed to restore:"
249+
msgstr "復元失敗:"
250+
251+
msgid "Error replacing:"
252+
msgstr "置き換えエラー:"
253+
254+
msgid "Error restoring:"
255+
msgstr "復元エラー:"

po/zh_Hans/fleth.po

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,28 +183,28 @@ msgid "Original version"
183183
msgstr "原始版本"
184184

185185
msgid "Replace MAP.sh"
186-
msgstr "替换 MAP.sh"
186+
msgstr "替换"
187187

188188
msgid "Restore Original MAP.sh"
189-
msgstr "恢复原始 MAP.sh"
189+
msgstr "恢复"
190190

191191
msgid "Replacing MAP.sh"
192-
msgstr "替换 map.sh 中"
192+
msgstr "替换中"
193193

194194
msgid "Downloading and replacing MAP.sh..."
195-
msgstr "正在下载并替换 MAP.sh..."
195+
msgstr "下载中..."
196196

197197
msgid "Restoring MAP.sh"
198-
msgstr "恢复 map.sh 中"
198+
msgstr "恢复中"
199199

200200
msgid "Restoring original MAP.sh..."
201-
msgstr "正在恢复原始 MAP.sh..."
201+
msgstr "恢复中..."
202202

203203
msgid "map.sh replaced successfully! Please restart the network interface if needed."
204-
msgstr "map.sh 替换成功!请手动重启网络接口以使更改生效。"
204+
msgstr "替换完成!请手动重启网络接口。"
205205

206206
msgid "Original map.sh restored successfully! Please restart the network interface if needed."
207-
msgstr "原始 map.sh 恢复成功!请手动重启网络接口以使更改生效。"
207+
msgstr "恢复完成!请手动重启网络接口。"
208208

209209
msgid "Failed to replace MAP.sh:"
210210
msgstr "替换 map.sh 失败:"
@@ -217,3 +217,39 @@ msgstr "替换 map.sh 时出错:"
217217

218218
msgid "Error restoring MAP.sh:"
219219
msgstr "恢复 map.sh 时出错:"
220+
221+
msgid "Replace"
222+
msgstr "替换"
223+
224+
msgid "Restore"
225+
msgstr "恢复"
226+
227+
msgid "Replacing"
228+
msgstr "替换中"
229+
230+
msgid "Downloading..."
231+
msgstr "下载中..."
232+
233+
msgid "Restoring"
234+
msgstr "恢复中"
235+
236+
msgid "Restoring..."
237+
msgstr "恢复中..."
238+
239+
msgid "Replaced successfully! Please restart the network interface manually."
240+
msgstr "替换完成!请手动重启网络接口。"
241+
242+
msgid "Restored successfully! Please restart the network interface manually."
243+
msgstr "恢复完成!请手动重启网络接口。"
244+
245+
msgid "Failed to replace:"
246+
msgstr "替换失败:"
247+
248+
msgid "Failed to restore:"
249+
msgstr "恢复失败:"
250+
251+
msgid "Error replacing:"
252+
msgstr "替换错误:"
253+
254+
msgid "Error restoring:"
255+
msgstr "恢复错误:"

po/zh_Hant/fleth.po

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,28 +183,28 @@ msgid "Original version"
183183
msgstr "原始版本"
184184

185185
msgid "Replace MAP.sh"
186-
msgstr "替換 MAP.sh"
186+
msgstr "替換"
187187

188188
msgid "Restore Original MAP.sh"
189-
msgstr "恢復原始 MAP.sh"
189+
msgstr "恢復"
190190

191191
msgid "Replacing MAP.sh"
192-
msgstr "替換 map.sh 中"
192+
msgstr "替換中"
193193

194194
msgid "Downloading and replacing MAP.sh..."
195-
msgstr "正在下載並替換 MAP.sh..."
195+
msgstr "下載中..."
196196

197197
msgid "Restoring MAP.sh"
198-
msgstr "恢復 map.sh 中"
198+
msgstr "恢復中"
199199

200200
msgid "Restoring original MAP.sh..."
201-
msgstr "正在恢復原始 MAP.sh..."
201+
msgstr "恢復中..."
202202

203203
msgid "map.sh replaced successfully! Please restart the network interface if needed."
204-
msgstr "map.sh 替換成功!請手動重啟網路介面以使更改生效。"
204+
msgstr "替換完成!請手動重啟網路介面。"
205205

206206
msgid "Original map.sh restored successfully! Please restart the network interface if needed."
207-
msgstr "原始 map.sh 恢復成功!請手動重啟網路介面以使更改生效。"
207+
msgstr "恢復完成!請手動重啟網路介面。"
208208

209209
msgid "Failed to replace MAP.sh:"
210210
msgstr "替換 map.sh 失敗:"
@@ -217,3 +217,39 @@ msgstr "替換 map.sh 時出錯:"
217217

218218
msgid "Error restoring MAP.sh:"
219219
msgstr "恢復 map.sh 時出錯:"
220+
221+
msgid "Replace"
222+
msgstr "替換"
223+
224+
msgid "Restore"
225+
msgstr "恢復"
226+
227+
msgid "Replacing"
228+
msgstr "替換中"
229+
230+
msgid "Downloading..."
231+
msgstr "下載中..."
232+
233+
msgid "Restoring"
234+
msgstr "恢復中"
235+
236+
msgid "Restoring..."
237+
msgstr "恢復中..."
238+
239+
msgid "Replaced successfully! Please restart the network interface manually."
240+
msgstr "替換完成!請手動重啟網路介面。"
241+
242+
msgid "Restored successfully! Please restart the network interface manually."
243+
msgstr "恢復完成!請手動重啟網路介面。"
244+
245+
msgid "Failed to replace:"
246+
msgstr "替換失敗:"
247+
248+
msgid "Failed to restore:"
249+
msgstr "恢復失敗:"
250+
251+
msgid "Error replacing:"
252+
msgstr "替換錯誤:"
253+
254+
msgid "Error restoring:"
255+
msgstr "恢復錯誤:"

0 commit comments

Comments
 (0)