Bladeren bron

多语言维护

Bhikkhu-Kosalla 5 jaren geleden
bovenliggende
commit
727be4776d

+ 6 - 6
app/channal/channal.js

@@ -177,21 +177,21 @@ function my_channal_edit(id) {
 					html += "</div>";
 
 					html += "<div id='coop_div' style='padding:5px;position: relative;'>";
-					html += "<h2>协作者</h2>";
+					html += "<h2>"+gLocal.gui.cooperators+"</h2>";
 
-					html += "<button onclick='add_coop_user()'>添加协作者</button>";
+					html += "<button onclick='add_coop_user()'>"+gLocal.gui.add+gLocal.gui.cooperators+"</button>";
 					html += "<div id='add_coop_user_dlg' class='float_dlg' style='left: 0;'></div>";
 
-					html += "<button onclick='add_coop_group()' >添加协作群</button>";
+					html += "<button onclick='add_coop_group()' >"+gLocal.gui.add+gLocal.gui.cooperate_group+"</button>";
 					html += "<div id='add_coop_group_dlg' class='float_dlg' style='left: 0;'></div>";
 					html += "<div id='coop_inner' >";
 					if (typeof result.coop == "undefined" || result.coop.length == 0) {
-						html += "这里很安静";
+						html += gLocal.gui.empty_null_mark;
 					} else {
 						for (const coop of result.coop) {
 							html += '<div class="file_list_row" style="padding:5px;">';
 							if (coop.type == 0) {
-								html += '<div style="flex:1;">个人</div>';
+								html += '<div style="flex:1;">'+gLocal.gui.personal+'</div>';
 								html += "<div style='flex:3;'>" + coop.user_name.nickname + "</div>";
 							} else {
 								html += '<div style="flex:1;">' + gLocal.gui.group + "</div>";
@@ -200,7 +200,7 @@ function my_channal_edit(id) {
 
 							html += "<div style='flex:3;'>" + coop.power + "</div>";
 							html += "<div class='hover_button' style='flex:3;'>";
-							html += "<button>移除</button>";
+							html += "<button>"+gLocal.gui.remove+"</button>";
 							html += "</div>";
 							html += "</div>";
 						}

+ 2 - 3
app/dict/comp_csv.php

@@ -58,9 +58,8 @@ while($word = $redis->hGet("pali://wordindex.hash",$start))
 
         foreach ($arrword as $oneword) {
 			$result = array(); //全局变量,递归程序的输出容器
-			mySplit2($oneword, 0, true, 0.5, 0.9, 0, true, false);
-			mySplit2($oneword, 0, true, 0.5, 0.9, 0, false, false);
-			if(count($result)<5){
+			mySplit2($oneword, 0, false, 0.3, 0.9, 0, true, false);
+			if(count($result)<3){
 				mySplit2($oneword, 0, false, 0.2, 0.8, 0, true, true);
 				if (isset($_POST["debug"])) {
 					echo "正切:" . count($result) . "\n";

+ 5 - 0
app/dict/dict_redis.bat

@@ -0,0 +1,5 @@
+rem del pali_word
+php redis_pm_part.php
+php redis_ref_with_mean.php
+php redis_sys_rgl_part.php
+php redis_pali_word_list.php

+ 2 - 2
app/dict/redis_pali_word_list.php

@@ -12,7 +12,7 @@ if (PHP_SAPI == "cli") {
             echo "no redis connect\n";
             exit;
 		}
-		/*
+		
         $dirXmlBase = _DIR_PALI_CSV_ . "/";
 
         $book = array(1, 2, 3, 4, 5, 6, 7, 8, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 153, 152, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217);
@@ -41,7 +41,7 @@ if (PHP_SAPI == "cli") {
 
 		}
 		echo "set done".$redis->scard("pali://wordindex.set")."\n";
-*/
+
 		$redis->delete('pali://wordindex.hash');
 		$i = null;
 		$counter = 0;

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

@@ -605,6 +605,10 @@
 		"enter": "Enter",
 		"avatar": "Avatar",
 		"display": "display",
+		"none": "none",
+		"cooperate_group": "cooperative group",
+		"personal": "personal",
+		"empty_null_mark": "Here is so quiet",
 		"": ""
 	},
 	"grammastr": [

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

@@ -604,6 +604,10 @@
 		"enter": "Enter",
 		"avatar": "Avatar",
 		"display": "display",
+		"none": "none",
+		"cooperate_group": "cooperative group",
+		"personal": "personal",
+		"empty_null_mark": "Here is so quiet",
 		"": ""
 	},
 	"grammastr": [

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

@@ -604,6 +604,10 @@
 		"enter": "Enter",
 		"avatar": "Avatar",
 		"display": "display",
+		"none": "none",
+		"cooperate_group": "cooperative group",
+		"personal": "personal",
+		"empty_null_mark": "Here is so quiet",
 		"": ""
 	},
 	"grammastr": [

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

@@ -609,6 +609,10 @@
 		"enter": "Enter",
 		"avatar": "Avatar",
 		"display": "display",
+		"none": "none",
+		"cooperate_group": "cooperative group",
+		"personal": "personal",
+		"empty_null_mark": "Here is so quiet",
 		"": ""
 	},
 	"grammastr": [

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

@@ -607,6 +607,10 @@
 		"enter": "进入",
 		"avatar": "头像",
 		"display": "显示",
+		"none": "无",
+		"cooperate_group": "协作组",
+		"personal": "个人",
+		"empty_null_mark": "这里很安静",
 		"": ""
 	},
 	"grammastr": [

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

@@ -606,6 +606,10 @@
 		"enter": "進入",
 		"avatar": "頭像",
 		"display": "顯示",
+		"none": "無",
+		"cooperate_group": "協作組",
+		"personal": "個人",
+		"empty_null_mark": "這裡很安靜",
 		"": ""
 	},
 	"grammastr": [

+ 48 - 45
app/studio/css/style_mobile.css

@@ -1,77 +1,80 @@
-:root{
-    --bgDisplay:block;
+:root {
+	--bgDisplay: block;
 }
 
 body {
-    font-size: 18px;
+	font-size: 18px;
 }
-.sutta_paragraph, .pardiv{
-	-webkit-flex-direction:column;
-	-moz-flex-direction:column;
-	flex-direction:column;
+.sutta_paragraph,
+.pardiv {
+	-webkit-flex-direction: column;
+	-moz-flex-direction: column;
+	flex-direction: column;
 }
-.btn-group, #B_ParTranShowMode, #B_ApplyAuto{
+.btn-group,
+#B_ParTranShowMode,
+#B_ApplyAuto {
 	display: none;
 }
 
-.mainview{
+.mainview {
 	padding: 0 8px;
 }
-#id_text_edit_form{
+#id_text_edit_form {
 	left: 10px;
-	top:4em;
+	top: 4em;
 	width: 95%;
 	max-height: 85%;
 }
-#id_text_edit_author{
+#id_text_edit_author {
 	max-width: 10em;
 }
-
-#modifywin{
+#sutta_text {
+	margin-left: 2.5em;
+}
+#modifywin {
 	position: fixed;
 	top: 3em;
 	left: 1px;
 	max-width: 94%;
 	z-index: 22;
 }
-.tran_par, .trandiv{
+.tran_par,
+.trandiv {
 	max-width: 100%;
-    width: 100%;
-    margin: 1em 0;
+	width: 100%;
+	margin: 1em 0;
 }
-.wbwdiv{
+.wbwdiv {
 	margin: 1em 0;
 	display: -webkit-flex;
 	display: -moz-flex;
 	display: flex;
 }
 
-#info_panal{
+#info_panal {
 	display: none;
 }
-.btn-group{
+.btn-group {
 	display: none;
 }
-.toolbtn{
-    display: -webkit-flex;
-    display: -moz-flex;
-    display: none;
+.toolbtn {
+	display: -webkit-flex;
+	display: -moz-flex;
+	display: none;
 }
-#toolbar{
+#toolbar {
 	padding: 8px;
 	padding-right: 2px;
 	height: 3em;
 }
 
-#leftmenuinner{
-	top:3em;
+#leftmenuinner {
+	top: 3em;
 }
 
-
-
-
-#menu_button_home{
-    margin:0;
+#menu_button_home {
+	margin: 0;
 }
 /*
 .dropdown-content{
@@ -95,35 +98,35 @@ body {
 	float: left;
 }
 */
-#B_Save{
+#B_Save {
 	height: 3em;
 	width: 3em;
 	position: fixed;
 	right: 10px;
 	bottom: 10px;
-	border-radius:1.5em;
+	border-radius: 1.5em;
 	border: 0;
 	box-shadow: -1px -1px 6px 0px var(--shadow-color);
 }
-.border_right{
+.border_right {
 	display: none;
 }
 #wizard_palicannon_par_select_text_head_res {
-    display: none;
+	display: none;
 }
-#wizard_palicannon_par_select_toc{
-	    display: none;
+#wizard_palicannon_par_select_toc {
+	display: none;
 }
 
 .fun_block {
-    width: auto;
-    padding: 2px 4px;
-    margin: 2px 5px;
+	width: auto;
+	padding: 2px 4px;
+	margin: 2px 5px;
 }
 .index_toolbar {
-	display:block;
+	display: block;
 }
 
-#editor_doc_title{
-	display:none;
-}
+#editor_doc_title {
+	display: none;
+}

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

@@ -2206,8 +2206,8 @@ function renderWordDetailByElement_edit_a(xmlElement) {
 		_txtOutDetail += "<svg class='edit_icon';'><use xlink:href='svg/icon.svg#ic_more'></use></svg>";
 		_txtOutDetail += '<div class="case_dropdown-content">';
 		newWord = removeFormula_B(orgMeaning);
-		_txtOutDetail += "<a onclick='fieldListChanged(\"" + wordID + '","mean","[]' + newWord + "\")'>[None]</a>";
-		_txtOutDetail += "<a onclick='fieldListChanged(\"" + wordID + '","mean","' + newWord + "\")'>[Auto]</a>";
+		_txtOutDetail += "<a onclick='fieldListChanged(\"" + wordID + '","mean","[]' + newWord + "\")'>["+gLocal.gui.none+"]</a>";
+		_txtOutDetail += "<a onclick='fieldListChanged(\"" + wordID + '","mean","' + newWord + "\")'>["+gLocal.gui.auto+"]</a>";
 		for (var i in arrFormula) {
 			newWord = removeFormula_B(orgMeaning);
 			newWord = arrFormula[i].replace("~", newWord);
@@ -2741,8 +2741,8 @@ function renderWordDetailByElement(xmlElement) {
 		_txtOutDetail += "<svg class='edit_icon';'><use xlink:href='svg/icon.svg#ic_more'></use></svg>";
 		_txtOutDetail += '<div class="case_dropdown-content">';
 		newWord = removeFormula_B(orgMeaning);
-		_txtOutDetail += "<a onclick='fieldListChanged(\"" + wordID + '","mean","[]' + newWord + "\")'>[None]</a>";
-		_txtOutDetail += "<a onclick='fieldListChanged(\"" + wordID + '","mean","' + newWord + "\")'>[Auto]</a>";
+		_txtOutDetail += "<a onclick='fieldListChanged(\"" + wordID + '","mean","[]' + newWord + "\")'>["+gLocal.gui.none+"]</a>";
+		_txtOutDetail += "<a onclick='fieldListChanged(\"" + wordID + '","mean","' + newWord + "\")'>["+gLocal.gui.auto+"]</a>";
 		for (var i in arrFormula) {
 			newWord = removeFormula_B(orgMeaning);
 			newWord = arrFormula[i].replace("~", newWord);
@@ -3139,8 +3139,8 @@ function renderWordDetailByElement(xmlElement) {
 		_txtOutDetail += "<svg class='edit_icon';'><use xlink:href='svg/icon.svg#ic_more'></use></svg>";
 		_txtOutDetail += '<div class="case_dropdown-content">';
 		newWord = removeFormula_B(orgMeaning);
-		_txtOutDetail += "<a onclick='fieldListChanged(\"" + wordID + '","mean","[]' + newWord + "\")'>[None]</a>";
-		_txtOutDetail += "<a onclick='fieldListChanged(\"" + wordID + '","mean","' + newWord + "\")'>[Auto]</a>";
+		_txtOutDetail += "<a onclick='fieldListChanged(\"" + wordID + '","mean","[]' + newWord + "\")'>["+gLocal.gui.none+"]</a>";
+		_txtOutDetail += "<a onclick='fieldListChanged(\"" + wordID + '","mean","' + newWord + "\")'>["+gLocal.gui.auto+"]</a>";
 		for (var i in arrFormula) {
 			newWord = removeFormula_B(orgMeaning);
 			newWord = arrFormula[i].replace("~", newWord);