瀏覽代碼

일부 메뉴 언어 적용

Surplus_Up (2DU) 7 年之前
父節點
當前提交
228a42b134
共有 3 個文件被更改,包括 12 次插入8 次删除
  1. 7 7
      app.py
  2. 3 1
      language/en-US.json
  3. 2 0
      language/ko-KR.json

+ 7 - 7
app.py

@@ -2537,7 +2537,7 @@ def login():
                     <form method="post">
                         <input placeholder="ID" name="id" type="text">
                         <hr>
-                        <input placeholder="PassWord" name="pw" type="password">
+                        <input placeholder="''' + load_lang('password') + '''" name="pw" type="password">
                         <hr>
                         ''' + captcha_get() + '''
                         <button type="submit">''' + load_lang('login') + '''</button>
@@ -2619,13 +2619,13 @@ def change_password():
                     <form method="post">
                         <span>ID : ''' + ip + '''</span>
                         <hr>
-                        <input placeholder="Now" name="pw" type="password">
+                        <input placeholder="''' + load_lang('now') + ' ' + load_lang('password') + '''" name="pw" type="password">
                         <br>
                         <br>
-                        <input placeholder="Change" name="pw2" type="password">
+                        <input placeholder="''' + load_lang('new') + ' ' + load_lang('password') + '''" name="pw2" type="password">
                         <br>
                         <br>
-                        <input placeholder="Re" name="pw3" type="password">
+                        <input placeholder="''' + load_lang('reconfirm') + '''" name="pw3" type="password">
                         <hr>
                         <input placeholder="Email" name="email" type="text" value="''' + email + '''">
                         <hr>
@@ -2805,7 +2805,7 @@ def register():
         if first == 0:
             return redirect('/change')
         else:
-            return redirect('/setting/1')
+            return redirect('/setting')
     else:        
         contract = ''
         
@@ -2821,9 +2821,9 @@ def register():
                         ''' + contract + '''
                         <input placeholder="ID" name="id" type="text">
                         <hr>
-                        <input placeholder="PassWord" name="pw" type="password">
+                        <input placeholder="''' + load_lang('password') + '''" name="pw" type="password">
                         <hr>
-                        <input placeholder="Re" name="pw2" type="password">
+                        <input placeholder="''' + load_lang('reconfirm') + '''" name="pw2" type="password">
                         <hr>
                         ''' + captcha_get() + '''
                         <button type="submit">''' + load_lang('register') + '''</button>

+ 3 - 1
language/en-US.json

@@ -37,7 +37,7 @@
     "ban" : "Ban",
     "release" : "Release",
     "save" : "Save",
-    "other" : "Others",
+    "other" : "Other",
     "tool" : "Tools",
     "plus" : "Add",
     "open" : "Open",
@@ -102,6 +102,8 @@
     "filter" : "Filter",
     "send" : "Send",
     "reload" : "Reload",
+    "password" : "Password",
+    "reconfirm" : "Reconfirm",
 
     "user_head_warring" : "User's HEAD will deleted if you close the browser or when you are editting as guest",
     "http_warring" : "Warning : If you are not on HTTPS connection, your information can be leaked. We won't response to that.",

+ 2 - 0
language/ko-KR.json

@@ -89,6 +89,8 @@
     "category": "분류",
     "send" : "전송",
     "reload" : "새로고침",
+    "password" : "암호",
+    "reconfirm" : "재확인",
     "authority_error": "권한이  부족합니다.",
     "no_login_error": "비 로그인 상태 입니다.",
     "no_exist_user_error": "계정이 없습니다.",