浏览代码

#多语言维护

Bhikkhu-Kosalla 5 年之前
父节点
当前提交
5747b90188

+ 1 - 1
app/article/my_article_index.php

@@ -38,7 +38,7 @@ require_once '../studio/index_head.php';
 	<div class="index_inner " style="margin-left: 18em;margin-top: 5em;">
 		<div class="file_list_block">
 			<div class="tool_bar">
-				<div><?php echo $_local->gui->composition.$_local->gui->list ?></div>
+				<div><?php echo $_local->gui->text.$_local->gui->list ?></div>
 				<div>
 					<span class="icon_btn_div">
 						<span class="icon_btn_tip"></span>

+ 1 - 1
app/article/my_collect_index.php

@@ -29,7 +29,7 @@ require_once '../studio/index_tool_bar.php';
 		<div class="index_inner " style="margin-left: 18em;margin-top: 5em;">
 		<div class="file_list_block">
 			<div class="tool_bar">
-				<div>文集列表</div>
+				<div><?php echo $_local->gui->composition.$_local->gui->list ?></div>
 				<div>
 					<span class="icon_btn_div">
 						<span class="icon_btn_tip"></span>

+ 14 - 12
app/public/lang/default.json

@@ -10,7 +10,7 @@
 		"all_data!": "All Data!",
 		"all_done": "Looking up accomplished",
 		"allsplit": "Words Splited Successfully ^-^",
-		"and_another": " and ",
+		"and_another": "&nbsp;and ",
 		"append": "Append",
 		"apply": "Apply",
 		"applyto": "Apply to",
@@ -59,9 +59,9 @@
 		"current": "Current",
 		"database_admin": "Database Admin",
 		"date": "Date ",
-		"day": " ",
-		"day_1": " ",
-		"days": " day(s) ",
+		"day": "&nbsp;",
+		"day_1": "&nbsp;",
+		"days": "&nbsp;day(s) ",
 		"debug": "Debug",
 		"delete": "Delete",
 		"departure_in_detail": "departure in detail",
@@ -185,7 +185,7 @@
 		"modifyok": "Modified ",
 		"month": "Month ",
 		"month_1": "- ",
-		"months": " month(s) ",
+		"months": "&nbsp;month(s) ",
 		"more": "more",
 		"my_book": "My Book",
 		"my_dictionary": "My Dictionary",
@@ -223,7 +223,7 @@
 		"pāli": "Pāli",
 		"pali_canon": "Pāḷi Canon",
 		"pāli_code": "Pāli Code",
-		"para": " Paragraphs",
+		"para": "&nbsp;Paragraphs",
 		"paragraph": "Paragraph",
 		"parent": "Parent",
 		"parent_input": "input parent by click",
@@ -292,7 +292,7 @@
 		"style": "Style",
 		"sub_pcode": "Sub&nbsp;Code",
 		"subversion": "Subversion",
-		"success": " Words Successfully",
+		"success": "&nbsp;Words Successfully",
 		"successful": "Successful",
 		"sukka": "Sukka",
 		"sun_height_degree": "Max solar altitude ",
@@ -356,7 +356,7 @@
 		"year": "(year)",
 		"year_0": "saṃvacchara",
 		"year_1": "- ",
-		"years": " year(s) ",
+		"years": "&nbsp;year(s) ",
 		"yes_string": "can ",
 		"": "",
 		"continue": "continue",
@@ -378,7 +378,7 @@
 		"online_dict_db": "Online Search for Pāḷi",
 		"user_data_share": "Editing & Sharing as Open Source",
 		"cooperate_edit": "Multi-translator Collaboration",
-		"cannot_empty": " cannot be empty",
+		"cannot_empty": "&nbsp;cannot be empty",
 		"account_existed": "Username is already existed.",
 		"incorrect_ID_PASS": "Incorrect Username or password.",
 		"sync": "synchron",
@@ -416,7 +416,7 @@
 		"folk": "folk",
 		"and": "&nbsp;and&nbsp;",
 		"digest": "digest",
-		"composition": "composition",
+		"composition": "composition&nbsp;",
 		"corpus_statistics": "corpus statistics",
 		"studio": "Studio",
 		"library": "Library",
@@ -517,7 +517,7 @@
 		"text_num": "No. of text",
 		"copied_to_clipboard": "has been copied to clipboard.",
 		"I_know": "Got it!",
-		"text": "DIY text",
+		"text": "text&nbsp;",
 		"anthology": "anthology ",
 		"channel": "channel & style",
 		"channels": "channels list",
@@ -549,6 +549,8 @@
 		"EXP": "EXP",
 		"composition_structure": "composition structure",
 		"search_tools": "search&nbsp;tools",
+		"timeline": "timeline",
+		"extension": "extension",
 		"": ""
 	},
 	"grammastr": [
@@ -1943,4 +1945,4 @@
 		"zh_cn": "Simple cīna",
 		"zh_tw": "Traditional cīna"
 	}
-}
+}

+ 14 - 12
app/public/lang/en.json

@@ -10,7 +10,7 @@
 		"all_data!": "All Data!",
 		"all_done": "Looking up accomplished",
 		"allsplit": "Words Splited Successfully ^-^",
-		"and_another": " and ",
+		"and_another": "&nbsp;and ",
 		"append": "Append",
 		"apply": "Apply",
 		"applyto": "Apply to",
@@ -59,9 +59,9 @@
 		"current": "Current",
 		"database_admin": "Database Admin",
 		"date": "Date",
-		"day": " ",
-		"day_1": " ",
-		"days": " day(s) ",
+		"day": "&nbsp;",
+		"day_1": "&nbsp;",
+		"days": "&nbsp;day(s) ",
 		"debug": "Debug",
 		"delete": "delete",
 		"departure_in_detail": "departure in detail",
@@ -185,7 +185,7 @@
 		"modifyok": "Modified ",
 		"month": "Month ",
 		"month_1": "- ",
-		"months": " month(s) ",
+		"months": "&nbsp;month(s) ",
 		"more": "more",
 		"my_book": "My Book",
 		"my_dictionary": "My Vocabulary",
@@ -223,7 +223,7 @@
 		"pāli": "Pāli",
 		"pali_canon": "Pāḷi Canon",
 		"pāli_code": "Pāli Code",
-		"para": " Paragraphs",
+		"para": "&nbsp;Paragraphs",
 		"paragraph": "Paragraph",
 		"parent": "Parent",
 		"parent_input": "input parent by click",
@@ -292,7 +292,7 @@
 		"style": "Style",
 		"sub_pcode": "Sub&nbsp;Code",
 		"subversion": "Subversion",
-		"success": " Words Successfully",
+		"success": "&nbsp;Words Successfully",
 		"successful": "Successful",
 		"sukka": "Sukka",
 		"sun_height_degree": "Max solar altitude ",
@@ -356,7 +356,7 @@
 		"year": "(year)",
 		"year_0": "year",
 		"year_1": "- ",
-		"years": " year(s) ",
+		"years": "&nbsp;year(s) ",
 		"yes_string": "can ",
 		"": "",
 		"continue": "continue",
@@ -378,7 +378,7 @@
 		"online_dict_db": "Online Search for Pāḷi",
 		"user_data_share": "Editing & Sharing as Open Source",
 		"cooperate_edit": "Multi-translator Collaboration",
-		"cannot_empty": " cannot be empty",
+		"cannot_empty": "&nbsp;cannot be empty",
 		"account_existed": "Username is already existed",
 		"incorrect_ID_PASS": "Incorrect Username or password.",
 		"sync": "synchron",
@@ -416,7 +416,7 @@
 		"folk": "folk",
 		"and": "&nbsp;and&nbsp;",
 		"digest": "digest",
-		"composition": "composition",
+		"composition": "composition&nbsp;",
 		"corpus_statistics": "corpus statistics",
 		"studio": "Studio",
 		"library": "Library",
@@ -516,7 +516,7 @@
 		"text_num": "No. of text",
 		"copied_to_clipboard": "has been copied to clipboard.",
 		"I_know": "Got it!",
-		"text": "DIY text",
+		"text": "text&nbsp;",
 		"anthology": "anthology ",
 		"channel": "channel & style",
 		"channels": "channels list",
@@ -548,6 +548,8 @@
 		"EXP": "EXP",
 		"composition_structure": "composition structure",
 		"search_tools": "search&nbsp;tools",
+		"timeline": "timeline",
+		"extension": "extension",
 		"": ""
 	},
 	"grammastr": [
@@ -2126,4 +2128,4 @@
 		"zh_cn": "Simple Chinese",
 		"zh_tw": "Traditional Chinese"
 	}
-}
+}

+ 14 - 12
app/public/lang/my.json

@@ -10,7 +10,7 @@
 		"all_data!": "All Data!",
 		"all_done": "Looking up accomplished",
 		"allsplit": "Words Splited Successfully ^-^",
-		"and_another": " and ",
+		"and_another": "&nbsp;and ",
 		"append": "Append",
 		"apply": "Apply",
 		"applyto": "Apply to",
@@ -59,9 +59,9 @@
 		"current": "Current",
 		"database_admin": "Database Admin",
 		"date": "Date ",
-		"day": " ",
-		"day_1": " ",
-		"days": " day(s) ",
+		"day": "&nbsp;",
+		"day_1": "&nbsp;",
+		"days": "&nbsp;day(s) ",
 		"debug": "Debug",
 		"delete": "Delete",
 		"departure_in_detail": "departure in detail",
@@ -185,7 +185,7 @@
 		"modifyok": "Modified ",
 		"month": "Month ",
 		"month_1": "- ",
-		"months": " month(s) ",
+		"months": "&nbsp;month(s) ",
 		"more": "more",
 		"my_book": "My Book",
 		"my_dictionary": "My Dictionary",
@@ -223,7 +223,7 @@
 		"pāli": "Pāli",
 		"pali_canon": "Pāḷi Canon",
 		"pāli_code": "Pāli Code",
-		"para": " Paragraphs",
+		"para": "&nbsp;Paragraphs",
 		"paragraph": "Paragraph",
 		"parent": "Parent",
 		"parent_input": "input parent by click",
@@ -292,7 +292,7 @@
 		"style": "Style",
 		"sub_pcode": "Sub&nbsp;Code",
 		"subversion": "Subversion",
-		"success": " Words Successfully",
+		"success": "&nbsp;Words Successfully",
 		"successful": "Successful",
 		"sukka": "သုက္က",
 		"sun_height_degree": "Max solar altitude ",
@@ -356,7 +356,7 @@
 		"year": "(year)",
 		"year_0": "year",
 		"year_1": "- ",
-		"years": " year(s) ",
+		"years": "&nbsp;year(s) ",
 		"yes_string": "can ",
 		"": "",
 		"continue": "continue",
@@ -378,7 +378,7 @@
 		"online_dict_db": "Online Search for Pāḷi",
 		"user_data_share": "Editing & Sharing as Open Source",
 		"cooperate_edit": "Multi-translator Collaboration",
-		"cannot_empty": " cannot be empty",
+		"cannot_empty": "&nbsp;cannot be empty",
 		"account_existed": "Username is already existed",
 		"incorrect_ID_PASS": "Incorrect Username or password.",
 		"sync": "synchron",
@@ -416,7 +416,7 @@
 		"folk": "folk",
 		"and": "&nbsp;and&nbsp;",
 		"digest": "digest",
-		"composition": "composition",
+		"composition": "composition&nbsp;",
 		"corpus_statistics": "corpus statistics",
 		"studio": "Studio",
 		"library": "Library",
@@ -516,7 +516,7 @@
 		"text_num": "No. of text",
 		"copied_to_clipboard": "has been copied to clipboard.",
 		"I_know": "Got it!",
-		"text": "DIY text",
+		"text": "text&nbsp;",
 		"anthology": "anthology ",
 		"channel": "channel & style",
 		"channels": "channels list",
@@ -548,6 +548,8 @@
 		"EXP": "EXP",
 		"composition_structure": "composition structure",
 		"search_tools": "search&nbsp;tools",
+		"timeline": "timeline",
+		"extension": "extension",
 		"": "",
 		"": ""
 	},
@@ -1935,4 +1937,4 @@
 		"zh_cn": "Simple စီနဘာသ",
 		"zh_tw": "Traditional စီနဘာသ"
 	}
-}
+}

+ 17 - 15
app/public/lang/si.json

@@ -10,7 +10,7 @@
 		"all_data!": "දත්ත සියල්ලම",
 		"all_done": "Looking up accomplished",
 		"allsplit": "Words Splited Successfully ^-^",
-		"and_another": " ච ",
+		"and_another": "&nbsp;ච ",
 		"append": "Append",
 		"apply": "යොමු කරනවා",
 		"applyto": "ගානවා",
@@ -59,9 +59,9 @@
 		"current": "අලුත්ම",
 		"database_admin": "පරිගණක දත්ත ගබඩාව පරිපාලනය කරනවා",
 		"date": "දිවස ",
-		"day": " ",
-		"day_1": " ",
-		"days": " දිවසා(නි) ",
+		"day": "&nbsp;",
+		"day_1": "&nbsp;",
+		"days": "&nbsp;දිවසා(නි) ",
 		"debug": "නිදොස්කරුව",
 		"delete": "මකා දමනවා",
 		"departure_in_detail": "departure in detail",
@@ -155,7 +155,7 @@
 		"lesson": "lesson",
 		"letters": "letters",
 		"level": "Lv",
-		"list": " ඇලය",
+		"list": "&nbsp;ඇලය",
 		"load": "ප්‍රවේශනය ",
 		"load_from_database": "දත්ත ගබඩාවේ සිට ප්‍රවේශනය ",
 		"load_from_wbw_file": "WBW ගොනුවේ සිට ප්‍රවේශනය ",
@@ -186,9 +186,9 @@
 		"modifyok": "Modified ",
 		"month": "මාස ",
 		"month_1": "- ",
-		"months": " මාසා(නි) ",
+		"months": "&nbsp;මාසා(නි) ",
 		"more": "more",
-		"my_book": " මගේ පොත් ",
+		"my_book": "&nbsp;මගේ පොත් ",
 		"my_book": "අමතර පොත් ",
 		"my_dictionary": "මගේ ශබ්දකෝෂය",
 		"my_document": "මගේ ලිපිගොනු ",
@@ -204,7 +204,7 @@
 		"newproject": "New Project",
 		"newword": "New Word",
 		"night": "රාත්‍රි ",
-		"no.": " No.",
+		"no.": "&nbsp;No.",
 		"no_related_file": "No related file",
 		"no_string": "cannot ",
 		"nofilename": "No File Name",
@@ -226,7 +226,7 @@
 		"pāli": "පාලි",
 		"pali_canon": "පාලි කැනොන්",
 		"pāli_code": "Pāli Code",
-		"para": " Paragraphs",
+		"para": "&nbsp;Paragraphs",
 		"paragraph": "ඡේදය",
 		"parent": "මූල්‍ය",
 		"parent_input": "input parent by click",
@@ -296,7 +296,7 @@
 		"style": "රීතිය ",
 		"sub_pcode": "2nd",
 		"subversion": "අනු ප්‍රභවය",
-		"success": " Words Successfully",
+		"success": "&nbsp;Words Successfully",
 		"successful": "සඵල",
 		"sukka": "සුක්ක",
 		"sun_height_degree": "Max solar altitude ",
@@ -361,7 +361,7 @@
 		"year": "(year)",
 		"year_0": "සංවච්ඡ‍ර",
 		"year_1": "- ",
-		"years": " සංවච්ඡ‍රා(නි) ",
+		"years": "&nbsp;සංවච්ඡ‍රා(නි) ",
 		"yes_string": "can ",
 		"": "",
 		"continue": "continue",
@@ -383,7 +383,7 @@
 		"online_dict_db": "Online Search for Pāḷi",
 		"user_data_share": "Editing & Sharing as Open Source",
 		"cooperate_edit": "Multi-translator Collaboration",
-		"cannot_empty": " cannot be empty",
+		"cannot_empty": "&nbsp;cannot be empty",
 		"account_existed": "Username is already existed",
 		"incorrect_ID_PASS": "Incorrect Username or password.",
 		"sync": "synchron",
@@ -421,7 +421,7 @@
 		"folk": "folk",
 		"and": "&nbsp;and&nbsp;",
 		"digest": "digest",
-		"composition": "composition",
+		"composition": "composition&nbsp;",
 		"corpus_statistics": "corpus statistics",
 		"studio": "Studio",
 		"library": "Library",
@@ -521,7 +521,7 @@
 		"text_num": "No. of text",
 		"copied_to_clipboard": "has been copied to clipboard.",
 		"I_know": "Got it!",
-		"text": "DIY text",
+		"text": "text&nbsp;",
 		"anthology": "anthology ",
 		"channel": "channel & style",
 		"channels": "channels list",
@@ -553,6 +553,8 @@
 		"EXP": "EXP",
 		"composition_structure": "composition structure",
 		"search_tools": "search&nbsp;tools",
+		"timeline": "timeline",
+		"extension": "extension",
 		"": "",
 		"": ""
 	},
@@ -1828,4 +1830,4 @@
 		"zh_cn": "Simple චීන",
 		"zh_tw": "Traditional චීන"
 	}
-}
+}

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

@@ -550,6 +550,8 @@
 		"EXP": "经验",
 		"composition_structure": "文章架构",
 		"search_tools": "搜索工具",
+		"timeline": "时间线",
+		"extension": "横向对比",
 		"": ""
 	},
 	"grammastr": [
@@ -2112,4 +2114,4 @@
 		"zh_cn": "简体中文",
 		"zh_tw": "正体中文"
 	}
-}
+}

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

@@ -550,6 +550,8 @@
 		"EXP": "經驗",
 		"composition_structure": "文章架構",
 		"search_tools": "搜尋工具",
+		"timeline": "時間線",
+		"extension": "橫向對比",
 		"": ""
 	},
 	"grammastr": [
@@ -2108,4 +2110,4 @@
 		"zh_cn": "簡體中文",
 		"zh_tw": "正體中文"
 	}
-}
+}

+ 1 - 1
app/studio/index_tool_bar.php

@@ -113,7 +113,7 @@
 						<svg t="1603167726865" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3914" width="32" height="32"><path d="M927.873506 253.409882H768V160.018071C768 71.806494 696.193506 0 607.981929 0H160.015059C71.661929 0 0.144565 71.661929 0 160.018071V863.984941C0 952.193506 71.806494 1024 160.018071 1024h702.238117l0.572236-0.144565 1.153505 0.144565C952.193506 1024 1024 952.193506 1024 863.981929V349.536376c-0.144565-53.097412-43.026071-95.984941-96.126494-96.126494zM525.239718 602.515576H205.203576c-17.700141 0-31.945788-14.390212-31.945788-31.945788 0-17.700141 14.390212-31.9488 31.945788-31.9488h320.036142c17.700141 0 31.945788 14.390212 31.945788 31.9488 0 17.697129-14.245647 31.945788-31.945788 31.945788z m0-159.873505H205.203576c-17.700141 0-31.945788-14.390212-31.945788-31.945789 0-17.700141 14.390212-31.9488 31.945788-31.9488h320.036142c17.700141 0 31.945788 14.390212 31.945788 31.9488 0 17.555576-14.245647 31.945788-31.945788 31.945789z m0-160.021083H205.203576c-17.700141 0-31.945788-14.3872-31.945788-31.945788 0-17.697129 14.390212-31.945788 31.945788-31.945788h320.036142c17.700141 0 31.945788 14.390212 31.945788 31.945788 0 17.558588-14.245647 31.945788-31.945788 31.945788z m434.724141 581.360941c0 52.811294-43.026071 95.984941-95.984941 95.984942-52.952847 0-95.978918-43.173647-95.978918-95.984942V317.446024h160.015059c17.703153 0 31.9488 14.390212 31.9488 31.945788v514.590117z" p-id="3915"></path></svg>	
 					</span>	
 					<span class="navi_text">
-					<?php echo $_local->gui->text;?>
+					<?php echo $_local->gui->text."DIY";?>
 					</span>
 				</li>
 

+ 8 - 8
app/term/note.js

@@ -487,16 +487,16 @@ function note_json_html(in_json) {
 			"' ,'" +
 			iterator.channal +
 			"')\"";
-		output += ">Edit</span>";
-		output += "<span class = 'tip_buttom'>Like</span>";
-		output += "<span class = 'tip_buttom'>Comment</span>";
-		output += "<span class = 'tip_buttom'>Share</span>";
-		output += "<span class = 'tip_buttom'>Copy</span>";
-		output += "<span class = 'tip_buttom'>Digest</span>";
+		output += ">" + gLocal.gui.edit + "</span>";
 		output += "<span class = 'tip_buttom' ";
 		output += " onclick=\"history_show('" + iterator.id + "')\"";
-		output += ">History</span>";
-		output += "<span class = 'tip_buttom'>Expand</span>";
+		output += ">" + gLocal.gui.timeline + "</span>";
+		output += "<span class = 'tip_buttom'>" + gLocal.gui.extension + "</span>";
+		output += "<span class = 'tip_buttom'>" + gLocal.gui.like + "</span>";
+		output += "<span class = 'tip_buttom'>" + gLocal.gui.comment + "</span>";
+		output += "<span class = 'tip_buttom'>" + gLocal.gui.copy + "</span>";
+		output += "<span class = 'tip_buttom'>" + gLocal.gui.digest + "</span>";
+		output += "<span class = 'tip_buttom'>" + gLocal.gui.share_to + "</span>";
 		output += "</div>";
 		//句子工具栏结束
 		output += "</div>";