From 65b116d1ba1e6b258a51847a439788e90101ec2c Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 1 Jul 2018 22:53:20 +0800 Subject: [PATCH] modify language file --- src/langs/zh_Hans.txt | 6 ++++-- src/langs/zh_Hant.txt | 6 ++++-- src/scripts/config/defaultLanguage.js | 6 ++++-- src/scripts/services/aria2SettingService.js | 2 +- src/scripts/services/ariaNgLanguageLoader.js | 2 +- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/langs/zh_Hans.txt b/src/langs/zh_Hans.txt index e47f5f8..c002add 100644 --- a/src/langs/zh_Hans.txt +++ b/src/langs/zh_Hans.txt @@ -1,4 +1,4 @@ -[default] +[global] Operation Succeeded=操作成功 Connection Succeeded=连接成功 Error=错误 @@ -264,7 +264,7 @@ debug.latest-logs=最近 {{count}} 条日志 [rpc.error] unauthorized=认证失败! -[options] +[option] true=是 false=否 default=默认 @@ -289,6 +289,8 @@ feedback=反馈 geom=几何 inorder=顺序 random=随机 + +[options] dir.name=下载路径 dir.description= log.name=日志文件 diff --git a/src/langs/zh_Hant.txt b/src/langs/zh_Hant.txt index 6b186fc..79e17ea 100644 --- a/src/langs/zh_Hant.txt +++ b/src/langs/zh_Hant.txt @@ -1,4 +1,4 @@ -[default] +[global] Operation Succeeded=操作成功 Connection Succeeded=連線成功 Error=錯誤 @@ -264,7 +264,7 @@ debug.latest-logs=最近 {{count}} 條記錄 [rpc.error] unauthorized=認證失敗! -[options] +[option] true=是 false=否 default=預設 @@ -289,6 +289,8 @@ feedback=反饋 geom=幾何 inorder=順序 random=隨機 + +[options] dir.name=下載路徑 dir.description= log.name=記錄檔案 diff --git a/src/scripts/config/defaultLanguage.js b/src/scripts/config/defaultLanguage.js index d51c0b3..478e280 100644 --- a/src/scripts/config/defaultLanguage.js +++ b/src/scripts/config/defaultLanguage.js @@ -270,7 +270,7 @@ 'unauthorized': 'Authorization Failed!' } }, - 'options': { + 'option': { 'true': 'True', 'false': 'False', 'default': 'Default', @@ -308,7 +308,9 @@ 'SSLv3': 'SSLv3', 'TLSv1': 'TLSv1', 'TLSv1.1': 'TLSv1.1', - 'TLSv1.2': 'TLSv1.2', + 'TLSv1.2': 'TLSv1.2' + }, + 'options': { 'dir.name': 'Download Path', 'dir.description': '', 'log.name': 'Log File', diff --git a/src/scripts/services/aria2SettingService.js b/src/scripts/services/aria2SettingService.js index f6cb8ee..d45c10b 100644 --- a/src/scripts/services/aria2SettingService.js +++ b/src/scripts/services/aria2SettingService.js @@ -157,7 +157,7 @@ for (var j = 0; j < option.options.length; j++) { availableOptions.push({ - name: 'options.' + option.options[j], + name: 'option.' + option.options[j], value: option.options[j] }); } diff --git a/src/scripts/services/ariaNgLanguageLoader.js b/src/scripts/services/ariaNgLanguageLoader.js index 5ed7a0e..8e111db 100644 --- a/src/scripts/services/ariaNgLanguageLoader.js +++ b/src/scripts/services/ariaNgLanguageLoader.js @@ -28,7 +28,7 @@ category = category.substring(1, category.length - 1); } - if (category === 'default') { + if (category === 'global') { return currentCategory; }