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

Merge pull request #65 from visuddhinanda/master

多语言维护
Bhikkhu-Kosalla 5 лет назад
Родитель
Сommit
2c36e9d4f0

+ 20 - 20
app/pcdl/reader.php

@@ -443,19 +443,19 @@ para:hover{
 			<div>
 				<span id="tool_bar_title"><?php echo $_local->gui->title; ?></span>
 			</div>
-			<div>
-			<form action="../studio/project.php" method="post" onsubmit="return pali_canon_edit_now(this)" target="_blank" style="display: inline-block;">
-				<div style="display:none;">
-					<input type="input" name="op" value="create">
-					<input type="hidden" name="view" value="<?php echo $_GET["view"]?>" />
-					<input type="hidden" name="book" value="<?php echo $_GET["book"]?>" />
-					<input type="hidden" id = "para" name="para" value="" />
-					<input type="hidden" id = "para_end" name="para_end" value="" />
-					<input type="hidden" id = "chapter_title" name="chapter_title" value="" />
-						<textarea id="project_new_res_data" rows="3" cols="18" name="data"></textarea>
-				</div>
-				<input type="submit" value="编辑">
-			</form>
+			<div style="display: flex;">
+				<form action="../studio/project.php" method="post" onsubmit="return pali_canon_edit_now(this)" target="_blank" style="display: inline-block;">
+					<div style="display:none;">
+						<input type="input" name="op" value="create">
+						<input type="hidden" name="view" value="<?php echo $_GET["view"]?>" />
+						<input type="hidden" name="book" value="<?php echo $_GET["book"]?>" />
+						<input type="hidden" id = "para" name="para" value="" />
+						<input type="hidden" id = "para_end" name="para_end" value="" />
+						<input type="hidden" id = "chapter_title" name="chapter_title" value="" />
+							<textarea id="project_new_res_data" rows="3" cols="18" name="data"></textarea>
+					</div>
+					<input type="submit" value="<?php echo $_local->gui->edit_now; ?>">
+				</form>
 				<div class="case_dropdown">
 					<p class="case_dropbtn"><button>
 						<svg t='1598086376923' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='8426' width='20px' height='20px'><path d='M609.745455 453.818182v130.327273h69.818181V535.272727H744.727273v377.018182h95.418182V535.272727H907.636364v48.872728h69.818181V453.818182z' p-id='8427' fill='#757AF7'></path><path d='M677.236364 300.218182V111.709091H46.545455V300.218182h69.818181v-51.2h162.909091v663.272727h165.236364V249.018182h162.909091v51.2z' p-id='8428' fill='#757AF7'></path></svg>
@@ -470,13 +470,13 @@ para:hover{
 					<svg t='1598086493824' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='9217' width='20px' height='20px'><path d='M912.695652 512m-111.304348 0a5 5 0 1 0 222.608696 0 5 5 0 1 0-222.608696 0Z' p-id='9218' fill='#757AF7'></path><path d='M512 512m-111.304348 0a5 5 0 1 0 222.608696 0 5 5 0 1 0-222.608696 0Z' p-id='9219' fill='#757AF7'></path><path d='M111.304348 512m-111.304348 0a5 5 0 1 0 222.608696 0 5 5 0 1 0-222.608696 0Z' p-id='9220' fill='#757AF7'></path></svg>
 					</button></p>
 					<div class="case_dropdown-content" style="right: 2em;min-width:6em;">
-						<a onclick="tool_changed('dighest')">书摘</a>
-						<a onclick="tool_changed('comments')">批注</a>
-						<a onclick="tool_changed('target')">标签</a>
-						<a onclick="tool_changed('layout')">布局</a>
-						<a onclick="tool_changed('porpername')">术语</a>
-						<a onclick="tool_changed('share')">分享</a>		
-						<a onclick="tool_changed('fix')">修改</a>								
+						<a onclick="tool_changed('dighest')"><?php echo $_local->gui->digest; //书摘?></a>
+						<a onclick="tool_changed('comments')"><?php echo $_local->gui->comment; //批注?></a>
+						<a onclick="tool_changed('target')"><?php echo $_local->gui->tag; //标签?></a>
+						<a onclick="tool_changed('layout')"><?php echo $_local->gui->layout; //布局?></a>
+						<a onclick="tool_changed('porpername')"><?php echo $_local->gui->dict_terms; //术语?></a>
+						<a onclick="tool_changed('share')"><?php echo $_local->gui->share; //分享?></a>		
+						<a onclick="tool_changed('fix')"><?php echo $_local->gui->modify; //修改?></a>								
 					</div>
 				</div>			
 			

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

@@ -84,7 +84,7 @@
 		"each_sentence": "E sentence",
 		"eat": "eat",
 		"edit": "Edit",
-		"edit_now": "Edit Now",
+		"edit_now": "Edit in Studio",
 		"edit1": "Edited By ",
 		"edition": "Edition ",
 		"editor": "Editor",
@@ -457,6 +457,11 @@
 		"preference": "preference",
 		"appearance": "appearance",
 		"theme": "theme",
+		"first_choice_word": "first-choice term",
+		"pali_word": "pali word",
+		"required": "required",
+		"optional": "optional",
+		"comment": "comments",
 		"": ""
 	},
 	"grammastr": [

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

@@ -84,7 +84,7 @@
 		"each_sentence": "E sentence",
 		"eat": "eat",
 		"edit": "Edit",
-		"edit_now": "Edit Now",
+		"edit_now": "Edit in Studio",
 		"edit1": "Edited By ",
 		"edition": "Edition",
 		"editor": "Editor",
@@ -456,6 +456,11 @@
 		"preference": "preference",
 		"appearance": "appearance",
 		"theme": "theme",
+		"first_choice_word": "first-choice term",
+		"pali_word": "pali word",
+		"required": "required",
+		"optional": "optional",
+		"comment": "comments",
 		"": ""
 	},
 	"grammastr": [

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

@@ -84,7 +84,7 @@
 		"each_sentence": "E sentence",
 		"eat": "eat",
 		"edit": "Edit",
-		"edit_now": "Edit Now",
+		"edit_now": "Edit in Studio",
 		"edit1": "Edited By ",
 		"edition": "Edition ",
 		"editor": "Editor",
@@ -456,6 +456,11 @@
 		"preference": "preference",
 		"appearance": "appearance",
 		"theme": "theme",
+		"first_choice_word": "first-choice term",
+		"pali_word": "pali word",
+		"required": "required",
+		"optional": "optional",
+		"comment": "comments",
 		"": "",
 		"": ""
 	},

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

@@ -461,6 +461,11 @@
 		"preference": "preference",
 		"appearance": "appearance",
 		"theme": "theme",
+		"first_choice_word": "first-choice term",
+		"pali_word": "pali word",
+		"required": "required",
+		"optional": "optional",
+		"comment": "comments",
 		"": "",
 		"": ""
 	},

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

@@ -84,7 +84,7 @@
 		"each_sentence": "逐句",
 		"eat": "进餐",
 		"edit": "编辑",
-		"edit_now": "立即编辑",
+		"edit_now": "转到译经楼中编辑",
 		"edit1": "编辑:",
 		"edition": "版本:",
 		"editor": "编辑者",
@@ -462,7 +462,9 @@
 		"first_choice_word": "首选用词",
 		"pali_word": "巴利原词",
 		"required": "必填",
-		"optional": "选填"
+		"optional": "选填",
+		"comment": "评论",
+		"": ""
 	},
 	"grammastr": [
 		{

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

@@ -84,7 +84,7 @@
 		"each_sentence": "逐句",
 		"eat": "進餐",
 		"edit": "編輯",
-		"edit_now": "立即編輯",
+		"edit_now": "轉至譯經樓中編輯",
 		"edit1": "編輯:",
 		"edition": "版次:",
 		"editor": "編輯",
@@ -458,7 +458,11 @@
 		"preference": "個性化",
 		"appearance": "外觀",
 		"theme": "主題",
-		"first_choice_word": "首选用词",
+		"first_choice_word": "首選用詞",
+		"pali_word": "巴利原詞",
+		"required": "必填",
+		"optional": "選填",
+		"comment": "評論",
 		"": ""
 	},
 	"grammastr": [