ソースを参照

랭귀지도 추가

Surplus_Up (2DU) 7 年 前
コミット
3f0b47a535
1 ファイル変更9 行追加1 行削除
  1. 9 1
      func.py

+ 9 - 1
func.py

@@ -130,6 +130,14 @@ def load_lang(data, num = 0):
                 return else_lang[data]
             else:
                 return data + ' (missing)'
+    elif num == 2:
+        curs.execute('select data from user_set where name = "lang" and id = ?', [ip_check()])
+        rep_data = curs.fetchall()
+        if not rep_data:
+            curs.execute("select data from other where name = 'language'")
+            rep_data = curs.fetchall()
+
+        return rep_data[0][0]
     else:
         curs.execute('select data from user_set where name = "lang" and id = ?', [ip_check()])
         rep_data = curs.fetchall()
@@ -390,7 +398,7 @@ def custom():
     else:
         user_name = load_lang('user')
 
-    return ['', '', user_icon, user_head, email, user_name]
+    return ['', '', user_icon, user_head, email, user_name, load_lang(num = 2)]
 
 def load_skin(data = ''):
     div2 = ''