Browse Source

多语言维护

Bhikkhu-Kosalla 5 năm trước cách đây
mục cha
commit
7873414e15

+ 2 - 1
app/pali_sent/redis_upgrade_pali_sent.php

@@ -34,7 +34,8 @@ if (isset($argv[1])) {
     $query = "SELECT id, book,paragraph, begin,end ,html FROM pali_sent WHERE 1 ";
     $stmt = $dbh->prepare($query);
     $stmt->execute();
-    $r_conn = redis_connect();
+    $redis = new redis();
+    $r_conn = $redis->connect('127.0.0.1', 6379);
 	$stringSize = 0;
 	$count = 0;
     if ($r_conn) {

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

@@ -614,6 +614,8 @@
 		"watching_course": "watching course",
 		"searching_instruction": "searching instruction",
 		"dict_searching_placehold": "insert “+” into a word to search them separately",
+		"copy_to": "copy to",
+		"add_tran": "add translation",
 		"": ""
 	},
 	"grammastr": [

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

@@ -613,6 +613,8 @@
 		"watching_course": "watching course",
 		"searching_instruction": "searching instruction",
 		"dict_searching_placehold": "insert “+” into a word to search them separately",
+		"copy_to": "copy to",
+		"add_tran": "add translation",
 		"": ""
 	},
 	"grammastr": [

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

@@ -613,6 +613,8 @@
 		"watching_course": "watching course",
 		"searching_instruction": "searching instruction",
 		"dict_searching_placehold": "insert “+” into a word to search them separately",
+		"copy_to": "copy to",
+		"add_tran": "add translation",
 		"": ""
 	},
 	"grammastr": [

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

@@ -618,6 +618,8 @@
 		"watching_course": "watching course",
 		"searching_instruction": "searching instruction",
 		"dict_searching_placehold": "insert “+” into a word to search them separately",
+		"copy_to": "copy to",
+		"add_tran": "add translation",
 		"": ""
 	},
 	"grammastr": [

+ 3 - 2
app/public/lang/zh-cn.json

@@ -244,7 +244,7 @@
 		"project": "工程",
 		"protection": "保护(英)",
 		"pubba_māsa": "上个月",
-		"publish": "公布",
+		"publish": "公开发布",
 		"ravi": "周日",
 		"read": "阅读",
 		"read_only": "只读",
@@ -616,7 +616,8 @@
 		"watching_course": "关注的课程",
 		"searching_instruction": "查词指南",
 		"dict_searching_placehold": "单词里面添加“+”可分别查看查询结果",
-		"": "",
+		"copy_to": "复制到",
+		"add_tran": "添加译文",
 		"": ""
 	},
 	"grammastr": [

+ 3 - 1
app/public/lang/zh-tw.json

@@ -244,7 +244,7 @@
 		"project": "工程",
 		"protection": "保護(英)",
 		"pubba_māsa": "上個月",
-		"publish": "公佈",
+		"publish": "公開發佈",
 		"ravi": "週日",
 		"read": "閱讀",
 		"read_only": "隻讀",
@@ -615,6 +615,8 @@
 		"watching_course": "關注的課程",
 		"searching_instruction": "查詞指南",
 		"dict_searching_placehold": "单词里面添加“+”可分别查看查询结果",
+		"copy_to": "複製到",
+		"add_tran": "新增譯文",
 		"": ""
 	},
 	"grammastr": [

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 13 - 5
app/studio/svg/icon.svg


+ 5 - 5
app/term/note.js

@@ -553,7 +553,7 @@ function note_json_html(in_json) {
 	output += "begin='" + in_json.begin + "' ";
 	output += "end='" + in_json.end + "' ";
 	output += " >";
-	output += "<span class='' onclick='add_new_tran_button_click(this)'>+添加译文</span>";
+	output += "<span class='' onclick='add_new_tran_button_click(this)'>+"+gLocal.gui.add_tran+"</span>";
 	output += "<div class='tran_text_tool_bar'>";
 	output += "</div>";
 	output += "</span>";
@@ -744,16 +744,16 @@ function render_one_sent_tran_a(iterator) {
 		if (parseInt(iterator.mypower) >= 30 && parseInt(iterator.status) < 30) {
 			//我的私有资源 公开发布
 			commitIcon = "publish";
-			commitTipText = "公开发布";
+			commitTipText = gLocal.gui.publish;
 		} else {
 			if (parseInt(iterator.mypower) < 20) {
 				//只读资源 采纳
 				commitIcon = "accept_copy";
-				commitTipText = "采纳";
+				commitTipText = gLocal.gui.accept_copy;
 			} else {
 				//其他资源 复制到
 				commitIcon = "copy";
-				commitTipText = "复制到";
+				commitTipText = gLocal.gui.copy_to;
 			}
 		}
 		html += "<button class='icon_btn tooltip' ";
@@ -848,7 +848,7 @@ function render_one_sent_tran_a(iterator) {
 	if (parseInt(iterator.mypower) < 20) {
 		html += "<b>提交修改建议</b> ";
 	}
-	html += "点击输入框外面自动<a onclick='sent_tran_edit(this)'>保存</a> 支持markdown语法";
+	html += "点击输入框外面自动<a onclick='sent_tran_edit(this)'>"+gLocal.gui.save+"</a> 支持markdown语法";
 	html += "</div>";
 	html += "</div>";
 

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác