浏览代码

번역 빼먹은 것과 호구마가 잘못한 번역 수정

Surplus_Up (2DU) 7 年之前
父节点
当前提交
17faae02ac
共有 4 个文件被更改,包括 29 次插入22 次删除
  1. 3 3
      app.py
  2. 4 1
      func.py
  3. 4 2
      lang/en-US.json
  4. 18 16
      lang/ko-KR.json

+ 3 - 3
app.py

@@ -807,7 +807,7 @@ def setting(num = 0):
                 data = ''
 
             return easy_minify(flask.render_template(skin_check(), 
-                imp = [load_lang('main' + title), wiki_set(), custom(), other2([0, 0])],
+                imp = [html.unescape(load_lang('main' + title)), wiki_set(), custom(), other2([0, 0])],
                 data =  '''
                         <form method="post">
                             <textarea rows="25" name="content">''' + html.escape(data) + '''</textarea>
@@ -4339,7 +4339,7 @@ def user_info():
             plus2 = '<li><a href="/alarm">' + load_lang('alarm') + '</a></li>'
 
         plus2 += '<li><a href="/watch_list">' + load_lang('watchlist') + '</a></li>'
-        plus3 = '<li><a href="/acl/user:' + url_pas(ip) + '">' + load_lang('user_document') + ' acl</a></li>'
+        plus3 = '<li><a href="/acl/user:' + url_pas(ip) + '">' + load_lang('user_document_acl') + '</a></li>'
     else:
         ip_user = ip
         
@@ -4470,7 +4470,7 @@ def custom_head_view():
         start += '<span>&lt;style&gt;css&lt;/style&gt;<br>&lt;script&gt;js&lt;/script&gt;</span><hr class=\"main_hr\">'
 
         return easy_minify(flask.render_template(skin_check(), 
-            imp = [load_lang('user_head'), wiki_set(), custom(), other2([0, 0])],
+            imp = [html.unescape(load_lang('user_head')), wiki_set(), custom(), other2([0, 0])],
             data =  start + '''
                     <form method="post">
                         <textarea rows="25" cols="100" name="content">''' + data + '''</textarea>

+ 4 - 1
func.py

@@ -10,7 +10,10 @@ import html
 import sys
 import re
 import os
-import css_html_js_minify
+try:
+    import css_html_js_minify
+except:
+    pass
 
 if sys.version_info < (3, 6):
     import sha3

+ 4 - 2
lang/en-US.json

@@ -58,6 +58,7 @@
         "recent" : "Recently",
         "password" : "Password",
         "login" : "Sign-in",
+        "logout" : "Sing-out",
         "register" : "Sign-up",
         "language" : "Language",
         "compare" : "Compare",
@@ -132,10 +133,11 @@
         "discussion_acl" : "Discussion's ACL",
         "view_acl" : "Document viewed ACL",
         "under_category" : "Sub-category",
-        "count" : "Count",
+        "count" : "Number of Contributions",
         "alarm" : "Notice(s)",
         "user_document" : "User's document",
         "user_head" : "User's <head>",
+        "user_document_acl" : "User's document ACL",
         "_comment_2.1_" : "Filter",
             "_comment_2.1.1_" : "List",
                 "interwiki_list" : "Interwiki(s) list",
@@ -211,7 +213,7 @@
         "oauth_settings_not_found" : "Administrator has not provided any data about using this feature.",
         "oauth_disabled" : "Administrator has disabled this feature.",
         "http_warring" : "Warning : If you are not on HTTPS connection, Your information can be leaked. We won't response to that.",
-        "user_head_warring" : "User's <head> will deleted if you close the browser or when you are editting as guest",
+        "user_head_warring" : "User's <head> will deleted if you close the browser or sign-in",
         "no_login_warring" : "Non-login status. IP is logged when working with non-login.",
         "_comment_3.1_" : "Error",
             "update_error" : "Auto update is not support.",

+ 18 - 16
lang/ko-KR.json

@@ -9,7 +9,7 @@
         "id" : "아이디",
         "list" : "목록",
         "main" : "메인",
-        "return" : "Return",
+        "return" : "돌아가기",
         "skin" : "스킨",
         "save" : "저장",
         "secret_key" : "비밀키",
@@ -30,7 +30,7 @@
         "normal" : "보통",
         "range" : "범위",
         "search" : "검색",
-        "raw" : "Raw",
+        "raw" : "원본",
         "history" : "역사",
         "user_discussion" : "사용자 토론",
         "record" : "기록",
@@ -58,6 +58,7 @@
         "recent" : "최근",
         "password" : "비밀번호",
         "login" : "로그인",
+        "logout" : "로그아웃",
         "register" : "회원가입",
         "language" : "언어",
         "compare" : "비교",
@@ -94,7 +95,7 @@
     "_comment_2_" : "기능",
         "wiki_restart" : "위키 엔진 재시작",
         "update" : "업데이트",
-        "need_document" : "Required Document(s)",
+        "need_document" : "필요한 문서들",
         "close_discussion" : "닫힌 토론",
         "open_discussion" : "열린 토론",
         "recent_discussion" : "최근 토론",
@@ -109,13 +110,13 @@
         "check_user" : "사용자 검사",
         "compare_target" : "비교 대상 이름",
         "authorize" : "인증",
-        "indexing" : "데이터베이스 인덱싱",
+        "indexing" : "DB 인덱싱",
         "hide_release" : "표시",
         "notice_release" : "릴리즈 노트",
         "ban_release" : "차단 해제",
         "discussion_tool" : "토론 도구",
-        "discussion_raw" : "토론 raw",
-        "oauth_signin_facebook" : "Facebook로 로그인",
+        "discussion_raw" : "토론 원본",
+        "oauth_signin_facebook" : "Facebook 아이디로 로그인",
         "oauth_signin_naver" : "네이버 아이디로 로그인",
         "connection" : "연결",
         "new_connection" : "연결...",
@@ -132,10 +133,11 @@
         "discussion_acl" : "토론 ACL",
         "view_acl" : "읽기 ACL",
         "under_category" : "하위 분류",
-        "count" : "Count",
+        "count" : "기여 횟수",
         "alarm" : "알림",
         "user_document" : "사용자 문서",
         "user_head" : "사용자 <head>",
+        "user_document_acl" : "사용자 문서 ACL",
         "_comment_2.1_" : "필터",
             "_comment_2.1.1_" : "목록",
                 "interwiki_list" : "인터위키 목록",
@@ -164,12 +166,12 @@
                 "wiki_logo" : "위키 목록",
                 "main_page" : "대문",
                 "bottom_text" : "하단 텍스트",
-                "max_file_size" : "파일 최대 업로드 크기",
+                "max_file_size" : "파일 최대 파일 크기",
                 "backup_interval" : "백업 주기",
                 "wiki_skin" : "위키 스킨",
                 "default_acl" : "기본 수정 ACL",
                 "default_discussion_acl" : "기본 토론 ACL",
-                "no_register" : "가입",
+                "no_register" : "가입불가",
                 "hide ip" : "IP 숨기기",
                 "wiki_host" : "위키 호스트",
                 "wiki_port" : "위키 포트",
@@ -177,11 +179,11 @@
             "_comment_2.2.3_" : "문자열",
                 "register_text" : "회원가입 정책",
                 "non_login_alert" : "비로그인 알림",
-            "_comment_2.2.4_" : "구글",
+            "_comment_2.2.4_" : "Google",
                 "recaptcha" : "reCAPTCHA",
-                "google_imap" : "구글 IMAP",
-                "google_email" : "구글 이매일",
-                "google_app_password" : "구글 앱 비밀번호",
+                "google_imap" : "Google IMAP",
+                "google_email" : "Google 이매일",
+                "google_app_password" : "Google 앱 비밀번호",
         "_comment_2.3_" : "목록",
             "open_discussion_list" : "열린 토론 목록",
             "discussion_list" : "토론 목록",
@@ -211,8 +213,8 @@
         "oauth_settings_not_found" : "관리자가 이 기능을 수행하는데 필요한 데이터를 제공하지 않았습니다.",
         "oauth_disabled" : "관리자가 이 기능을 비활성화시켰습니다.",
         "http_warring" : "경고: HTTPS 연결을 사용하지 않는다면 개인정보가 유출될 수 있습니다. 이 사항에 의해 입는 피해는 사용자에게 책임이 있음을 알려드립니다.",
-        "user_head_warring" : "시크릿 모드를 사용한다면 사용을 마칠 때 사용자의 <head>는 삭제됩니다.",
-        "no_login_warring" : "비로그인 상태입니다. 지금 접속한 IP 명의로 기록됩니다.",
+        "user_head_warring" : "비로그인시 브라우저를 닫거나 로그인시 사용자의 <head>는 삭제됩니다.",
+        "no_login_warring" : "비로그인 상태입니다. 편집시 지금 접속한 IP 명의로 기록됩니다.",
         "_comment_3.1_" : "오류",
             "update_error" : "자동 업데이트가 지원되지 않습니다.",
             "inter_error" : "내부 오류.",
@@ -230,7 +232,7 @@
             "file_extension_error" : "오직 jpg, gif, jpeg, png, webp 만 업로드할 수 있습니다.",
             "edit_record_error" : "수정 요약은 500자를 넘길 수 없습니다.",
             "same_file_error" : "똑같은 이름의 파일이 존재합니다.",
-            "file_capacity_error" : "최대 용량 (MB) :",
+            "file_capacity_error" : "최대 파일 크기 (MB) :",
             "decument_exist_error" : "이동하려는 이름에 이미 문서가 존재합니다.",
             "password_diffrent_error" : "입력한 비밀번호와 비밀번호 확인이 서로 다릅니다.",
             "edit_filter_error" : "편집 필터에 의해 금지된 단어가 사용되었습니다.",