Register default language en_US.

This commit is contained in:
Myf 2015-10-30 15:42:30 +08:00
parent 3177498979
commit 0c6120399f
2 changed files with 86 additions and 0 deletions

View File

@ -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();

85
js/translate/en_US.js Normal file
View File

@ -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': '',
};