Browse Source

连词成句图标&多语言

Bhikkhu-Kosalla 5 years ago
parent
commit
9585b6cfb2

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

@@ -563,6 +563,7 @@
 		"timezone": "Timezone",
 		"subfield": "subfield",
 		"local": "Local",
+		"form_sent": "Form sentences with the words given & copy to clipboard",
 		"": ""
 	},
 	"grammastr": [

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

@@ -562,6 +562,7 @@
 		"timezone": "Timezone",
 		"subfield": "subfield",
 		"local": "Local",
+		"form_sent": "Form sentences with the words given & copy to clipboard",
 		"": ""
 	},
 	"grammastr": [

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

@@ -562,6 +562,7 @@
 		"timezone": "Timezone",
 		"subfield": "subfield",
 		"local": "Local",
+		"form_sent": "Form sentences with the words given & copy to clipboard",
 		"": "",
 		"": ""
 	},

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

@@ -567,6 +567,7 @@
 		"timezone": "Timezone",
 		"subfield": "subfield",
 		"local": "Local",
+		"form_sent": "Form sentences with the words given & copy to clipboard",
 		"": "",
 		"": ""
 	},

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

@@ -564,6 +564,7 @@
 		"timezone": "时区",
 		"subfield": "分栏",
 		"local": "本地",
+		"form_sent": "连词成句到剪切板",
 		"": ""
 	},
 	"grammastr": [

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

@@ -564,6 +564,7 @@
 		"timezone": "時區",
 		"subfield": "分欄",
 		"local": "本地",
+		"form_sent": "連詞成句到剪下板",
 		"": ""
 	},
 	"grammastr": [

+ 4 - 4
app/studio/js/render.js

@@ -1224,7 +1224,7 @@ function render_sent_tool_bar(elementBlock, begin) {
 	//拷贝词意到剪贴板
 	output +=
 		"<button class='icon_btn' title='" +
-		"copy meaning" +
+		gLocal.gui.form_sent +
 		"' class='rel_map' onclick=\"sent_copy_meaning('" +
 		abook +
 		"','" +
@@ -1234,7 +1234,7 @@ function render_sent_tool_bar(elementBlock, begin) {
 		"','" +
 		iEnd +
 		"')\">" +
-		'<svg style="transform: rotate(-90deg); fill: var(--link-color);" t="1601482033694" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18290"><path d="M903.3 650.8H791.9V511.3H540.5V399.9h167.7c30.9 0 55.9-25.5 55.9-56.4V120.3c0-31.3-25.1-56.4-55.9-56.4H316.4c-30.9 0-55.5 25.1-55.5 56.4 0 0 0 222.8-0.4 223.2 0 31.3 25.1 56.4 55.9 56.4h168.2v111.4H232.8v139.6H120.9c-30.9-0.1-55.9 25-55.9 55.9v196.4c0 30.4 25.1 55.5 55.9 55.9h279.6c30.9 0 55.9-25.1 55.9-55.9V706.8c0-30.9-25.1-55.9-55.9-55.9H288.7v-83.7H736v83.7H624.2c-30.9 0-55.9 25.1-55.9 55.9v196.4c0 30.9 25.1 55.9 55.9 55.9h279.1c30.9 0 55.9-25.1 55.9-55.9V706.8c0-30.9-25-56-55.9-56z" p-id="18291"></path></svg>' +
+		'<svg style="fill: var(--link-color);" t="1611985739555" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6173" width="200" height="200"><path d="M423.198 640a83.84 83.84 0 0 1-64-28.8 259.84 259.84 0 0 1-26.88-308.48L441.118 128a261.12 261.12 0 1 1 448 272l-35.2 57.6a83.84 83.84 0 1 1-145.92-90.24l35.2-57.6a92.8 92.8 0 0 0-158.72-96.64l-107.52 176.64a92.8 92.8 0 0 0 9.6 109.44 83.84 83.84 0 0 1-64 139.52z" p-id="6174"></path><path d="M357.918 1024a261.12 261.12 0 0 1-222.72-397.44l31.36-50.56a83.84 83.84 0 1 1 144 87.68l-31.36 51.2a92.8 92.8 0 0 0 30.72 128 91.52 91.52 0 0 0 70.4 10.88 92.16 92.16 0 0 0 57.6-41.6l107.52-177.92a93.44 93.44 0 0 0-6.4-105.6 83.84 83.84 0 1 1 134.4-103.68 262.4 262.4 0 0 1 17.28 296.96L581.278 896a259.84 259.84 0 0 1-163.84 120.32 263.68 263.68 0 0 1-59.52 7.68z" p-id="6175"></path></svg>' +
 		"</button>";
 
 	//功能按钮结束
@@ -1510,7 +1510,7 @@ function renderWordParBlockInner(elementBlock) {
 				//拷贝词意到剪贴板
 				output +=
 					"<button class='icon_btn' title='" +
-					"copy meaning" +
+					gLocal.gui.form_sent +
 					"' class='rel_map' onclick=\"sent_copy_meaning('" +
 					book +
 					"','" +
@@ -1520,7 +1520,7 @@ function renderWordParBlockInner(elementBlock) {
 					"','" +
 					nextEnd +
 					"')\">" +
-					'<svg style="transform: rotate(-90deg); fill: var(--link-color);" t="1601482033694" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18290"><path d="M903.3 650.8H791.9V511.3H540.5V399.9h167.7c30.9 0 55.9-25.5 55.9-56.4V120.3c0-31.3-25.1-56.4-55.9-56.4H316.4c-30.9 0-55.5 25.1-55.5 56.4 0 0 0 222.8-0.4 223.2 0 31.3 25.1 56.4 55.9 56.4h168.2v111.4H232.8v139.6H120.9c-30.9-0.1-55.9 25-55.9 55.9v196.4c0 30.4 25.1 55.5 55.9 55.9h279.6c30.9 0 55.9-25.1 55.9-55.9V706.8c0-30.9-25.1-55.9-55.9-55.9H288.7v-83.7H736v83.7H624.2c-30.9 0-55.9 25.1-55.9 55.9v196.4c0 30.9 25.1 55.9 55.9 55.9h279.1c30.9 0 55.9-25.1 55.9-55.9V706.8c0-30.9-25-56-55.9-56z" p-id="18291"></path></svg>' +
+					'<svg style="fill: var(--link-color);" t="1611985739555" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6173" width="200" height="200"><path d="M423.198 640a83.84 83.84 0 0 1-64-28.8 259.84 259.84 0 0 1-26.88-308.48L441.118 128a261.12 261.12 0 1 1 448 272l-35.2 57.6a83.84 83.84 0 1 1-145.92-90.24l35.2-57.6a92.8 92.8 0 0 0-158.72-96.64l-107.52 176.64a92.8 92.8 0 0 0 9.6 109.44 83.84 83.84 0 0 1-64 139.52z" p-id="6174"></path><path d="M357.918 1024a261.12 261.12 0 0 1-222.72-397.44l31.36-50.56a83.84 83.84 0 1 1 144 87.68l-31.36 51.2a92.8 92.8 0 0 0 30.72 128 91.52 91.52 0 0 0 70.4 10.88 92.16 92.16 0 0 0 57.6-41.6l107.52-177.92a93.44 93.44 0 0 0-6.4-105.6 83.84 83.84 0 1 1 134.4-103.68 262.4 262.4 0 0 1 17.28 296.96L581.278 896a259.84 259.84 0 0 1-163.84 120.32 263.68 263.68 0 0 1-59.52 7.68z" p-id="6175"></path></svg>' +
 					"</button>";
 
 				output += "</div>";