فهرست منبع

多语言multi-language #26

Bhikkhu-Kosalla 5 سال پیش
والد
کامیت
10721ba8f4

+ 6 - 6
app/article/add_to_collect_dlg.js

@@ -11,7 +11,7 @@ function add_to_collect_dlg_init() {
     let article_id = $(this).parent().attr("a_id");
     html += "<div id='add_to_collect_dlg_" + article_id + "'>";
     html += "<div >";
-    html += "<input type='input'  placeholder='搜索文集' />";
+    html += "<input type='input'  placeholder='" + gLocal.gui.search + "' />";
     html += "</div>";
     html += "<div>";
     html += "<div class='exist'>";
@@ -20,15 +20,15 @@ function add_to_collect_dlg_init() {
     html += "</div>";
     html += "</div>";
     html += "<div style='display:flex;'>";
-    html += "<button onclick='collect_new()'>New Collect</button>";
+    html += "<button onclick='collect_new()'>" + gLocal.gui.new_composition + "</button>";
     html +=
-      "<button onclick=\"article_add_to_collect_ok('" +
+      "<button onclick=\"article_add_to_collect_cancel('" +
       article_id +
-      "')\">Finish</button>";
+      "')\">" + gLocal.gui.cancel + "</button>";
     html +=
-      "<button onclick=\"article_add_to_collect_cancel('" +
+      "<button onclick=\"article_add_to_collect_ok('" +
       article_id +
-      "')\">Cancel</button>";
+      "')\">" + gLocal.gui.finish + "</button>";
     html += "</div>";
     html += "</div>";
     $(this).siblings(".float_dlg").first().html(html);

+ 5 - 2
app/article/my_article.js

@@ -104,8 +104,6 @@ function my_article_edit(id) {
           html += "<input type='hidden' name='id' value='" + result.id + "'/>";
           html +=
             "<input type='hidden' name='tag' value='" + result.tag + "'/>";
-          html +=
-            "<textarea  name='summary' >" + result.summary + "</textarea>";
           html +=
             "<input type='hidden' name='status' value='" +
             result.status +
@@ -113,6 +111,7 @@ function my_article_edit(id) {
 
           html += "<input type='checkbox' name='import' />" + gLocal.gui.import + gLocal.gui.text;
           html += "<div>";
+          html += "<div id='article_collect' vui='collect-dlg' ></div>"
           html += "<div style='display:flex;'>";
           html += "<span style='flex:3;margin:auto;'>" + gLocal.gui.title + "</span>"
           html += '<span id="article_title" style="flex:7;"></span></div>';
@@ -124,6 +123,10 @@ function my_article_edit(id) {
             '" value="' +
             result.lang +
             '" > <input id="article_lang" type="hidden" name="lang" value=""></div>';
+          html += "<div style='display:flex;'>";
+          html += "<span style='flex:3;margin:auto;'>" + gLocal.gui.introduction + "</span>"
+          html +=
+            "<textarea style='flex:7;' name='summary' >" + result.summary + "</textarea></div>";
           html += "</div>";
           html += "</div>";
 

+ 1 - 1
app/article/my_article_edit.php

@@ -75,7 +75,7 @@ require_once '../studio/index_head.php';
 						<use xlink:href="../studio/svg/icon.svg#preview"></use>
 					</svg>
 				</button>
-				<div id="article_collect" vui='collect-dlg' ></div>
+				
 			</div>
 			<div style="display:flex;">
 				<div>

+ 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->text.$_local->gui->list ?></div>
+				<div><?php echo $_local->gui->composition.$_local->gui->list ?></div>
 				<div>
 					<span class="icon_btn_div">
 						<span class="icon_btn_tip"></span>

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

@@ -535,6 +535,7 @@
 		"title_necessary": "title is necessary",
 		"example": "for example ",
 		"privacy": "privacy",
+		"new_composition": "new composition",
 		"": ""
 	},
 	"grammastr": [

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

@@ -534,6 +534,7 @@
 		"title_necessary": "title is necessary",
 		"example": "for example ",
 		"privacy": "privacy",
+		"new_composition": "new composition",
 		"": ""
 	},
 	"grammastr": [

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

@@ -534,6 +534,7 @@
 		"title_necessary": "title is necessary",
 		"example": "for example ",
 		"privacy": "privacy",
+		"new_composition": "new composition",
 		"": "",
 		"": ""
 	},

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

@@ -539,6 +539,7 @@
 		"title_necessary": "title is necessary",
 		"example": "for example ",
 		"privacy": "privacy",
+		"new_composition": "new composition",
 		"": "",
 		"": ""
 	},

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

@@ -518,7 +518,7 @@
 		"text_num": "文本编号",
 		"copied_to_clipboard": "已复制到剪切板",
 		"I_know": "我知道了",
-		"text": "著作文章",
+		"text": "文章",
 		"anthology": "文集",
 		"channel": "版风管理",
 		"channels": "版风列表",
@@ -536,7 +536,7 @@
 		"title_necessary": "必须填写标题",
 		"example": "例如",
 		"privacy": "隐私设置",
-		"": "",
+		"new_composition": "新建作品",
 		"": ""
 	},
 	"grammastr": [

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

@@ -536,6 +536,7 @@
 		"title_necessary": "必須填寫標題",
 		"example": "例如",
 		"privacy": "隱私設定",
+		"new_composition": "新建作品",
 		"": ""
 	},
 	"grammastr": [

+ 1 - 1
app/studio/css/style.css

@@ -4408,7 +4408,7 @@ note {
   display: none;
   width: 25em;
   position: absolute;
-  right: 0;
+  /*right: 0;*/
   background-color: var(--btn-hover-bg-color);
   padding: 10px;
   border-radius: 5px;