Explorar o código

HTML 입력하시오 추가

Surplus_Up (2DU) %!s(int64=6) %!d(string=hai) anos
pai
achega
634ae9d9d3
Modificáronse 3 ficheiros con 4 adicións e 2 borrados
  1. 1 0
      language/en-US.json
  2. 2 1
      language/ko-KR.json
  3. 1 1
      route/setting.py

+ 1 - 0
language/en-US.json

@@ -356,6 +356,7 @@
         "approval_question_visible_only_when_approval_on" : "Approval questions are visible only when approval requirement is on",
         "oauth_explain" : "To use the OAuth login feature, you must set the 'publish_url' value to a domain address that includes the HTTPS protocol, and actually support HTTPS connections.",
         "msg_whatchlist_lmt": "You can add as many as",
+        "enter_html" : "Please enter HTML",
         "_comment_3.1_" : "Error",
             "update_error" : "Auto update is not supported.",
             "inter_error" : "Internal error.",

+ 2 - 1
language/ko-KR.json

@@ -363,5 +363,6 @@
     "reset_backlink" : "역링크 초기화",
     "link_in_this" : "이 문서의 링크",
     "star_doc" : "관심 문서",
-    "add_star_doc" : "관심 문서 추가"
+    "add_star_doc" : "관심 문서 추가",
+    "enter_html" : "HTML을 입력하세요."
 }

+ 1 - 1
route/setting.py

@@ -389,7 +389,7 @@ def setting_2(conn, num):
                 data = '''
                     <form method="post">
                         ''' + start + '''
-                        <textarea rows="25" name="content" id="content">''' + html.escape(data) + '''</textarea>
+                        <textarea rows="25" placeholder="''' + load_lang('enter_html') + '''" name="content" id="content">''' + html.escape(data) + '''</textarea>
                         <hr class="main_hr">
                         <button id="save" type="submit">''' + load_lang('save') + '''</button>
                         ''' + plus + '''