ソースを参照

# 多语言维护

Bhikkhu-Kosalla 5 年 前
コミット
95ab5d0a2f

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

@@ -551,6 +551,8 @@
 		"search_tools": "search tools",
 		"timeline": "timeline",
 		"extension": "extension",
+		"no_created": " is not created yet",
+		"create_now": "create now",
 		"": ""
 	},
 	"grammastr": [

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

@@ -550,6 +550,8 @@
 		"search_tools": "search tools",
 		"timeline": "timeline",
 		"extension": "extension",
+		"no_created": " is not created yet",
+		"create_now": "create now",
 		"": ""
 	},
 	"grammastr": [

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

@@ -550,6 +550,8 @@
 		"search_tools": "search tools",
 		"timeline": "timeline",
 		"extension": "extension",
+		"no_created": " is not created yet",
+		"create_now": "create now",
 		"": "",
 		"": ""
 	},

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

@@ -555,6 +555,8 @@
 		"search_tools": "search tools",
 		"timeline": "timeline",
 		"extension": "extension",
+		"no_created": " is not created yet",
+		"create_now": "create now",
 		"": "",
 		"": ""
 	},

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

@@ -552,6 +552,10 @@
 		"search_tools": "搜索工具",
 		"timeline": "时间线",
 		"extension": "横向对比",
+		"no_created": "尚未创建",
+		"create_now": "现在创建",
+		"": "",
+		"": "",
 		"": ""
 	},
 	"grammastr": [

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

@@ -552,6 +552,8 @@
 		"search_tools": "搜尋工具",
 		"timeline": "時間線",
 		"extension": "橫向對比",
+		"no_created": "尚未建立",
+		"create_now": "現在建立",
 		"": ""
 	},
 	"grammastr": [

+ 11 - 1
app/term/term.js

@@ -670,7 +670,17 @@ function term_updata_translation() {
 
 function term_show_win(guid, keyWord = "") {
 	if (guid == "") {
-		$(term_body).html("当前词条未创建。<br /><a onclick=\"term_add_new('" + keyWord + "')\">现在创建</a>");
+		$(term_body).html(
+			"“" +
+				keyWord +
+				"”" +
+				gLocal.gui.no_created +
+				"<br /><button onclick=\"term_add_new('" +
+				keyWord +
+				"')\">" +
+				gLocal.gui.create_now +
+				"</button>"
+		);
 	} else {
 		let currWord = term_lookup_my_id(guid);
 		if (currWord) {