Просмотр исходного кода

Merge pull request #909 from bhikkhu-kosalla-china/laravel

多语言维护 # 908
Bhikkhu China Kosalla 3 лет назад
Родитель
Сommit
b06db115ad

+ 1 - 1
public/app/article/article.js

@@ -486,7 +486,7 @@ function reader_draw_para_menu() {
 		let html = "<a name='para_" + strPara + "'></a>";
 		html += "<div class='case_dropdown-content para_menu'>";
 		if (typeof _view != "undefined" && _view != "para") {
-			html += "<a onclick=\"junp_to_para('" + _book + "','" + strPara + "')\">仅显示此段</a>";
+			html += "<a onclick=\"junp_to_para('" + _book + "','" + strPara + "')\">" + gLocal.gui.show_this_para_only + "</a>";
 		}
 		html += "<a onclick=\"edit_wbw('" + _book + "','" + strPara + "')\">" + gLocal.gui.edit_now + "</a>";
 		html += "<a  onclick='goto_nissaya(" + _book + "," + strPara + ")'>" + gLocal.gui.show_nissaya + "</a>";

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

@@ -53,7 +53,7 @@
 		"content": "Content",
 		"contents": "Table of Content",
 		"copy": "copy",
-		"copy_to_clipboard": "copy the link to clipboard",
+		"copy_to_clipboard": "copy the sent No. to clipboard",
 		"creat_a_new_file_by_yourself": "Creat a new file by yourself",
 		"created": "Created",
 		"current": "Current",
@@ -661,6 +661,7 @@
 		"my_read": "recent",
 		"master_copy": "pāli",
 		"nissaya": "nissaya",
+		"show_this_para_only": "show this paragraph only",
 		"": ""
 	},
 	"grammastr": [

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

@@ -53,7 +53,7 @@
 		"content": "Content",
 		"contents": "Table of Content",
 		"copy": "copy",
-		"copy_to_clipboard": "copy the link to clipboard",
+		"copy_to_clipboard": "copy the sent No. to clipboard",
 		"creat_a_new_file_by_yourself": "Creat a new file by yourself",
 		"created": "Created",
 		"current": "Current",
@@ -660,6 +660,7 @@
 		"my_read": "recent",
 		"master_copy": "pāli",
 		"nissaya": "nissaya",
+		"show_this_para_only": "show this paragraph only",
 		"": ""
 	},
 	"grammastr": [

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

@@ -48,6 +48,7 @@
 		"content": "Content",
 		"contents": "Contents",
 		"copy": "copy",
+		"copy_to_clipboard": "copy the sent No. to clipboard",
 		"creat_a_new_file_by_yourself": "Creat a new file by yourself",
 		"created": "Created",
 		"current": "လက်ရှိ",
@@ -641,6 +642,7 @@
 		"my_read": "recent",
 		"master_copy": "ပါလိ",
 		"nissaya": "နိဿယ",
+		"show_this_para_only": "show this paragraph only",
 		"": ""
 	},
 	"grammastr": [

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

@@ -53,7 +53,7 @@
 		"content": "පටුන",
 		"contents": "අන්තර්ගතය",
 		"copy": "copy",
-		"copy_to_clipboard": "copy the link to clipboard",
+		"copy_to_clipboard": "copy the sent No. to clipboard",
 		"creat_a_new_file_by_yourself": "ඔබ කැමති පරදි නව ගොනුව සාදන්න",
 		"created": "සාදන ලදි",
 		"current": "අලුත්ම",
@@ -665,6 +665,7 @@
 		"my_read": "recent",
 		"master_copy": "පාලි",
 		"nissaya": "සන‍්න‍ය",
+		"show_this_para_only": "show this paragraph only",
 		"": ""
 	},
 	"grammastr": [

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

@@ -53,7 +53,7 @@
 		"content": "目录",
 		"contents": "目录",
 		"copy": "复制",
-		"copy_to_clipboard": "复制句子链接到剪切板",
+		"copy_to_clipboard": "复制句子编号",
 		"creat_a_new_file_by_yourself": "创建自定义文档",
 		"created": "创建",
 		"current": "当前",
@@ -663,6 +663,7 @@
 		"my_read": "我的阅读",
 		"master_copy": "巴利底本",
 		"nissaya": "依词释",
+		"show_this_para_only": "仅显示此段",
 		"": ""
 	},
 	"grammastr": [

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

@@ -53,7 +53,7 @@
 		"content": "目錄",
 		"contents": "目錄",
 		"copy": "複製",
-		"copy_to_clipboard": "複製句子連結到剪下闆",
+		"copy_to_clipboard": "複製句子編號",
 		"creat_a_new_file_by_yourself": "新建自定檔案",
 		"created": "建立",
 		"current": "當前",
@@ -662,6 +662,7 @@
 		"my_read": "我的閱讀",
 		"master_copy": "巴利底本",
 		"nissaya": "依詞釋",
+		"show_this_para_only": "僅顯示此段",
 		"": ""
 	},
 	"grammastr": [

+ 12 - 0
public/app/term/note.js

@@ -689,6 +689,18 @@ function note_json_html(in_json) {
 		"','" +
 		in_json.end +
 		"')\">" +
+		gLocal.gui.copy_to_clipboard +
+		"</a>";
+	output +=
+		"<a onclick=\"copy_to_clipboard('"+ window.location.href +"#sent_" +
+		in_json.book +
+		"_" +
+		in_json.para +
+		"_" +
+		in_json.begin +
+		"_" +
+		in_json.end + 
+		"')\" >" +
 		gLocal.gui.copy_link +
 		"</a>";
 	output += "<a onclick='copy_text(this)'>" + gLocal.gui.copy + "“" + gLocal.gui.pāli + "”</a>";