diff --git a/js/translate/template.js b/js/translate/template.js index 0948165..1cab615 100644 --- a/js/translate/template.js +++ b/js/translate/template.js @@ -6,7 +6,10 @@ // Add '.translations('ll_CC', translations.ll_CC)' before '.determinePreferredLanguage();' // 3. in index.html // Add '' after '' -// 4. Then Browser determining preferred language automatically. +// 4. To add Language to changeLanguage button, see "{{ 'Language' | translate }}" in index.html. +// flag-icon usage: +// https://github.com/lipis/flag-icon-css +// 5. Browser determining preferred language automatically. // http://angular-translate.github.io/docs/en/#/guide/07_multi-language if(typeof translations == 'undefined'){ @@ -30,12 +33,11 @@ translations.en_US = { // replace en_US to ll_CC, examples: zh_CN, de_AT. 'Global Settings': '', 'Server info': '', 'About and contribute': '', + 'Language': '', // body // nav side bar +// global statistics 'Global Statistics': '', - 'Displaying': '', - 'of': '', - 'downloads': '', // download filters 'Download Filters': '', 'Running': '', @@ -46,6 +48,9 @@ translations.en_US = { // replace en_US to ll_CC, examples: zh_CN, de_AT. 'Paused': '', 'Removed': '', 'Hide linked meta-data': '', + 'Displaying': '', + 'of': '', + 'downloads': '', 'Toggle': '', 'Reset filters': '', // starred properties diff --git a/js/translate/th_TH.js b/js/translate/th_TH.js index 1a2ef08..d9658c1 100644 --- a/js/translate/th_TH.js +++ b/js/translate/th_TH.js @@ -19,12 +19,11 @@ translations.th_TH = { 'Global Settings': 'ตั้งค่าทั่วไป', 'Server info': 'ข้อมูลเซอร์เวอร์', 'About and contribute': 'เกี่ยวกับและช่วย', + //'Language': '', // TODO // body // nav side bar +// global statistics 'Global Statistics': 'สถิติทั่วไป', - 'Displaying': 'แแสดงดาวน์โหลด', - 'of': 'อันใน', - 'downloads': 'อันทั้งหมด', // download filters 'Download Filters': 'กรองดาวน์โหลด', 'Running': 'กำลังทำงาน', @@ -35,6 +34,9 @@ translations.th_TH = { 'Paused': 'หยุดอยู่', 'Removed': 'ลบแล้ว', 'Hide linked meta-data': 'ซ่อนข้อมูลเมตาที่เชื่อมโยง', + 'Displaying': 'แแสดงดาวน์โหลด', + 'of': 'อันใน', + 'downloads': 'อันทั้งหมด', 'Toggle': 'สลับ', 'Reset filters': 'รีเซตตัวกรอง', // starred properties diff --git a/js/translate/zh_CN.js b/js/translate/zh_CN.js index e915a51..00a79d7 100644 --- a/js/translate/zh_CN.js +++ b/js/translate/zh_CN.js @@ -19,8 +19,11 @@ translations.zh_CN = { 'Global Settings': '全局设置', 'Server info': '服务器信息', 'About and contribute': '关于和贡献', + 'Language': '语言', // body // nav side bar +// global statistics + 'Global Statistics': '', // download filters 'Download Filters': '下载过滤器', 'Running': '下载中', @@ -31,6 +34,9 @@ translations.zh_CN = { 'Paused': '暂停', 'Removed': '已删除', 'Hide linked meta-data': '隐藏链接的元数据', + //'Displaying': '', // TODO 3 lines + //'of': '', + //'downloads': '', 'Toggle': '确定', 'Reset filters': '重置过滤器', // starred properties