Bhikkhu-Kosalla преди 5 години
родител
ревизия
88c6cc4986

+ 5 - 0
app/public/lang/default.json

@@ -475,6 +475,11 @@
 		"sukka_pakkha": "sukkapakkha",
 		"com_dict": "community dictionary",
 		"contributor": "contributor",
+		"interface_language": "interface language",
+		"translation_language": "languages of translation",
+		"magic_dict_language": "languages of dictionary",
+		"priority": "priority",
+		"no_need": "no need",
 		"": ""
 	},
 	"grammastr": [

+ 5 - 0
app/public/lang/en.json

@@ -474,6 +474,11 @@
 		"sukka_pakkha": "waxing",
 		"com_dict": "Community Dictionary",
 		"contributor": "contributor",
+		"interface_language": "interface language",
+		"translation_language": "languages of translation",
+		"magic_dict_language": "languages of dictionary",
+		"priority": "priority",
+		"no_need": "no need",
 		"": ""
 	},
 	"grammastr": [

+ 5 - 0
app/public/lang/my.json

@@ -474,6 +474,11 @@
 		"sukka_pakkha": "သုက္ကပက္ခ",
 		"com_dict": "Community Dictionary",
 		"contributor": "contributor",
+		"interface_language": "interface language",
+		"translation_language": "languages of translation",
+		"magic_dict_language": "languages of dictionary",
+		"priority": "priority",
+		"no_need": "no need",
 		"": "",
 		"": ""
 	},

+ 5 - 0
app/public/lang/si.json

@@ -479,6 +479,11 @@
 		"sukka_pakkha": "සුක‍්කපක‍්ඛ",
 		"com_dict": "Community Dictionary",
 		"contributor": "contributor",
+		"interface_language": "interface language",
+		"translation_language": "languages of translation",
+		"magic_dict_language": "languages of dictionary",
+		"priority": "priority",
+		"no_need": "no need",
 		"": "",
 		"": ""
 	},

+ 5 - 0
app/public/lang/zh-cn.json

@@ -476,6 +476,11 @@
 		"sukka_pakkha": "渐盈半月",
 		"com_dict": "社区字典",
 		"contributor": "贡献者",
+		"interface_language": "界面语言",
+		"translation_language": "译文语言",
+		"magic_dict_language": "词典语言",
+		"priority": "优先级",
+		"no_need": "不需要",
 		"": ""
 	},
 	"grammastr": [

+ 5 - 0
app/public/lang/zh-tw.json

@@ -476,6 +476,11 @@
 		"sukka_pakkha": "漸盈半月",
 		"com_dict": "社羣字典",
 		"contributor": "貢獻者",
+		"interface_language": "介面語言",
+		"translation_language": "譯文語言",
+		"magic_dict_language": "詞典語言",
+		"priority": "優先順序",
+		"no_need": "不需要",
 		"": ""
 	},
 	"grammastr": [

+ 3 - 2
app/public/load_lang.php

@@ -4,8 +4,9 @@ require_once __DIR__.'/../path.php';
 /*
 load language file
 范例
-echo $_local->gui->;
-<?php echo $_local->gui->;?>
+echo $_local->gui->XXXX;
+<?php echo $_local->gui->XXXX;?>
+gLocal.gui.XXXX
 */
 if(isset($_GET["language"])){
 	$currLanguage=$_GET["language"];

+ 6 - 6
app/ucenter/setting.js

@@ -6,11 +6,11 @@ function setting_onload() {
       let html;
 
       html = "";
-      html += "常用界面语言:";
+      html += gLocal.gui.interface_language + ":";
       $("#setting_general").html(html);
 
       html = "";
-      html += "常用译文语言:";
+      html += gLocal.gui.translation_language + ":";
 
       $("#setting_studio").html(html);
 
@@ -21,10 +21,10 @@ function setting_onload() {
         }
       }
       html = "";
-      html += "自动查词词典语言:";
+      html += gLocal.gui.magic_dict_language + ":";
       html += "<div style='display:flex;'>";
 
-      html += "<div style='width:10em;'>顺序";
+      html += "<div style='width:10em;'>" + gLocal.gui.priority;
       html += "<ul id='ul_dict_lang1' class='dict_lang'>";
       let i = 0;
       for (const iterator of setting["dict.lang"]) {
@@ -41,7 +41,7 @@ function setting_onload() {
       html += "</ul>";
       html += "</div>";
 
-      html += "<div style='width:10em;'>不展示";
+      html += "<div style='width:10em;'>" + gLocal.gui.no_need;
       html += "<ul id='ul_dict_lang2' class='dict_lang'>";
       i = 0;
       for (const iterator of dict_lang_others) {
@@ -76,7 +76,7 @@ function setting_onload() {
           setting_save();
         },
       });
-    } catch (e) {}
+    } catch (e) { }
   });
 }
 function li_remove() {