From 0c6120399f61194bdfebb0947db7f5d8c98105eb Mon Sep 17 00:00:00 2001 From: Myf Date: Fri, 30 Oct 2015 15:42:30 +0800 Subject: [PATCH] Register default language en_US. --- js/init.js | 1 + js/translate/en_US.js | 85 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 js/translate/en_US.js diff --git a/js/init.js b/js/init.js index 73c4cf2..1ac9be2 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('en_US', translations.en_US) .translations('th_TH', translations.th_TH) .translations('zh_CN', translations.zh_CN) .determinePreferredLanguage(); diff --git a/js/translate/en_US.js b/js/translate/en_US.js new file mode 100644 index 0000000..a7fddfa --- /dev/null +++ b/js/translate/en_US.js @@ -0,0 +1,85 @@ +if(typeof translations == 'undefined'){ + translations = {}; +} + +translations.en_US = { // replace en_US to ll_CC, examples: zh_CN, de_AT. +// header + 'Search': 'Search', + // Nav menu + 'Add': 'Add', + 'By URIs': 'By URIs', + 'By Torrents': 'By Torrents', + 'By Metalinks': 'By Metalinks', + 'Manage': 'Manage', + 'Pause All': 'Pause All', + 'Resume Paused': 'Resume Paused', + 'Purge Completed': 'Purge Completed', + 'Settings': 'Settings', + 'Connection Settings': 'Connection Settings', + 'Global Settings': 'Global Settings', + 'Server info': 'Server info', + 'About and contribute': 'About and contribute', + 'Language': 'Language', +// body +// nav side bar +// global statistics + 'Global Statistics': 'Global Statistics', +// download filters + 'Download Filters': 'Download Filters', + 'Running': 'Running', + 'Active': 'Active', + 'Waiting': 'Waiting', + 'Complete': 'Complete', + 'Error': 'Error', + 'Paused': 'Paused', + 'Removed': 'Removed', + 'Hide linked meta-data': 'Hide linked meta-data', + 'Displaying': 'Displaying', + 'of': 'of', + 'downloads': 'downloads', + 'Toggle': 'Toggle', + 'Reset filters': 'Reset filters', +// starred properties + 'Quick Access Settings': 'Quick Access Settings', + 'Save settings': 'Save settings', +// modals + 'Add Downloads By URIs': 'Add Downloads By URIs', + 'Download settings': 'Download settings', + 'Advanced settings': 'Advanced settings', + 'Cancel': 'Cancel', + 'Start': 'Start', +// add torrent modal + 'Add Downloads By Torrents': 'Add Downloads By Torrents', + 'Select Torrents': 'Select Torrents', + 'Select a Torrent:': 'Select a Torrent:', + //'Download settings': '', // repeated + //'Advanced settings': '', + //'Cancel': '', + //'Start': '', +// add metalink modal + 'Add Downloads By Metalinks': 'Add Downloads By Metalinks', + 'Select Metalinks': 'Select Metalinks', + 'Select a Metalinks:': 'Select a Metalinks:', + //'Download settings': '', + //'Advanced settings': '', + //'Cancel': '', + //'Start': '', +// select file modal + 'Choose files to start download for': 'Choose files to start download for', + 'Select to download': 'Select to download', +// settings modal + //'Cancel': '', + //'Connection Settings': '', + 'Aria2 RPC host and port': 'Aria2 RPC host and port', + 'Enter the host:': 'Enter the host:', + 'Enter the port:': 'Enter the port:', + 'Direct Download': 'Direct Download', + //'Cancel': '', + 'Save Connection configuration': 'Save Connection configuration', +// server info modal + 'Aria2 server info': 'Aria2 server info', + 'Close': 'Close' +// about modal + //'About and contribute': '', + //'Close': '', +}; \ No newline at end of file