From b96af02548442973f968b452fbdcb378e98ae1c0 Mon Sep 17 00:00:00 2001 From: Myf Date: Thu, 29 Oct 2015 00:33:31 +0800 Subject: [PATCH] Simplified Chinese translation. --- index.html | 1 + js/init.js | 1 + js/translate/zh_CN.js | 79 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 js/translate/zh_CN.js diff --git a/index.html b/index.html index c54af54..5cdb208 100755 --- a/index.html +++ b/index.html @@ -74,6 +74,7 @@ + diff --git a/js/init.js b/js/init.js index 88f17fc..11babfe 100755 --- a/js/init.js +++ b/js/init.js @@ -15,6 +15,7 @@ var webui = angular.module('webui', [ webui.config(['$translateProvider', function ($translateProvider) { $translateProvider + .translations('zh_CN', translations.zh_CN) .determinePreferredLanguage(); }]); diff --git a/js/translate/zh_CN.js b/js/translate/zh_CN.js new file mode 100644 index 0000000..e915a51 --- /dev/null +++ b/js/translate/zh_CN.js @@ -0,0 +1,79 @@ +if(typeof translations == 'undefined'){ + translations = {}; +} + +translations.zh_CN = { +// header + 'Search': '查找', + // Nav menu + 'Add': '添加', + 'By URIs': '使用链接', + 'By Torrents': '使用种子', + 'By Metalinks': '使用磁链', + 'Manage': '管理', + 'Pause All': '暂停所有', + 'Resume Paused': '恢复下载', + 'Purge Completed': '清除已完成', + 'Settings': '设置', + 'Connection Settings': '网络设置', + 'Global Settings': '全局设置', + 'Server info': '服务器信息', + 'About and contribute': '关于和贡献', +// body +// nav side bar +// download filters + 'Download Filters': '下载过滤器', + 'Running': '下载中', + 'Active': '激活', + 'Waiting': '等待', + 'Complete': '已完成', + 'Error': '错误', + 'Paused': '暂停', + 'Removed': '已删除', + 'Hide linked meta-data': '隐藏链接的元数据', + 'Toggle': '确定', + 'Reset filters': '重置过滤器', +// starred properties + 'Quick Access Settings': '快速访问设置', + 'Save settings': '保存设置', +// modals + 'Add Downloads By URIs': '使用链接下载', + 'Download settings': '下载设置', + 'Advanced settings': '高级设置', + 'Cancel': '取消', + 'Start': '开始', +// add torrent modal + 'Add Downloads By Torrents': '使用种子下载', + 'Select Torrents': '选择种子文件', + 'Select a Torrent:': '选择种子文件', + //'Download settings': '', + //'Advanced settings': '', + //'Cancel': '', + //'Start': '', +// add metalink modal + 'Add Downloads By Metalinks': '使用磁链下载', + 'Select Metalinks': '选择磁链文件', + 'Select a Metalinks:': '选择磁链文件', + //'Download settings': '', + //'Advanced settings': '', + //'Cancel': '', + //'Start': '', +// select file modal + 'Choose files to start download for': '选择文件开始下载', + 'Select to download': '选择下载', +// settings modal + //'Cancel': '', + //'Connection Settings': '', + 'Aria2 RPC host and port': 'Aria2 RPC 主机和端口', + 'Enter the host:': '主机', + 'Enter the port:': '端口', + 'Direct Download': '直接下载', + //'Cancel': '', + 'Save Connection configuration': '保存网络配置', +// server info modal + 'Aria2 server info': 'Aria2 服务器信息', + 'Close': '关闭' +// about modal + //'About and contribute': '', + //'Close': '', +}; \ No newline at end of file