瀏覽代碼

18国语言切换上传

chenting 1 月之前
父節點
當前提交
f1e39d0ee2

+ 1 - 1
luckypot_sp/assets/Lobby/scripts/homesence/homeHeadInfo.js

@@ -259,7 +259,7 @@ cc.Class({
         if (phoneNumber == "11111111111" || phoneNumber == 0) { // 统一默认手机号
             phoneNumber = "";
             label_number.color = new cc.color("#556EC3");
-            label_number.getComponent(cc.RichText).string = LanguageKey.t("pubWords.mylx");
+            label_number.getComponent(cc.RichText).string = LanguageKey.t("NV.个人中心-没有号码");
             cc.find("self_info_node/rootNode/mobile_node/btn_bind", this.node).active = true;
         } else {
             label_number.color = new cc.color("#FFFFFF");

+ 16 - 2
luckypot_sp/assets/Lobby/scripts/homesence/homeSet.js

@@ -14,6 +14,7 @@ cc.Class({
         _aboutUs: cc.Node,
         _logout: cc.Node,
         mClientVersion: cc.Label,
+        mLangueageNode: cc.Node,
     },
 
     onLoad: function () {
@@ -105,8 +106,9 @@ cc.Class({
     },
 
     initLanguageToggleListener: function () {
-        let toggleContainer = this.node.getChildByName("rootNode").getChildByName("language_node");
+        // let toggleContainer = this.node.getChildByName("rootNode").getChildByName("language_node");
 
+        let toggleContainer = this.mLangueageNode.getChildByName("btnNode");
         for (let toggle of toggleContainer.children) {
             if (toggle.active) {
                 let languageStr = toggle.name.slice(4);
@@ -214,6 +216,7 @@ cc.Class({
             if (saveLang != "")
                 topTipMsg.showTopTipMsg(LanguageKey.t("set.switch_success"));
         }
+        this.hideLanguagePanel();
     },
 
     showSet: function () {
@@ -221,8 +224,10 @@ cc.Class({
         this.refreshSound();
 
         let languageKey = Global.getLocalStorageVaule("LanguageKey");
+        // if(languageKey)
+        //     cc.find("rootNode/language_node/btn_" + languageKey, this.node).getComponent(cc.Toggle).check();
         if(languageKey)
-            cc.find("rootNode/language_node/btn_" + languageKey, this.node).getComponent(cc.Toggle).check();
+            cc.find("rootNode/LangueageNode/btnNode/btn_" + languageKey, this.node).getComponent(cc.Toggle).check();
 
         var animation = this.node.getComponent(cc.Animation);
         animation.play("ShowSet");
@@ -237,6 +242,15 @@ cc.Class({
         // cc.find("rootNode/language_node/btn_" + languageKey, this.node).getComponent(cc.Toggle).check();
     },
 
+    showLanguagePanel: function () {
+        this.mLangueageNode.active = true;
+    },
+    hideLanguagePanel: function () {
+        this.mLangueageNode.active = false;
+    },
+
+
+
     
 });
 

+ 1 - 1
luckypot_sp/assets/Lobby/scripts/homesence/homeStartDev.js

@@ -311,7 +311,7 @@ cc.Class({
         }
         let nickName = cc.vv.globalUserInfo.getNickName();
         this.labelName.string = Global.subStr(nickName, 12);
-        this.labelID.string = `UID:${cc.vv.globalUserInfo.getGameID()}`;
+        this.labelID.string = LanguageKey.t("NV.个人中心-ID")+`${cc.vv.globalUserInfo.getGameID()}`;
         this.labelGold.string = Global.formatString2Score(cc.vv.globalUserInfo.getUserScore());
         let roomGold = cc.find("button_gold/LabelGold", this.secondaryGameList);
         roomGold.getComponent(cc.Label).string = Global.formatString2Score(cc.vv.globalUserInfo.getUserScore());

文件差異過大導致無法顯示
+ 181 - 139
luckypot_sp/assets/resources/GamePrefabs/homescence/headInfo.prefab


文件差異過大導致無法顯示
+ 9875 - 128
luckypot_sp/assets/resources/GamePrefabs/homescence/set.prefab


+ 10 - 2
luckypot_sp/assets/resources/i18n/ar.js

@@ -7,7 +7,7 @@ if (!window.i18n) {
 if (!window.i18n.languages) {
     window.i18n.languages = {};
 }
-window.i18n.languages['zh'] = {
+window.i18n.languages['ar'] = {
     // write your key value pairs here
     "label_text": {
         "hello": "你好!",
@@ -869,6 +869,14 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
+        "当前语言": "عربي",
+        "个人中心-个人资料": "معلومات شخصية",
+        "个人中心-更换头像": "يستبدل",
+        "个人中心-昵称": "كنية",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "رقم التليفون",
+        "个人中心-没有号码": "لا يوجد رقم",
+        "个人中心-连线": "ملزم",
+        "个人中心-登出": "تسجيل الخروج"
     },
 };

+ 12 - 3
luckypot_sp/assets/resources/i18n/de.js

@@ -7,7 +7,7 @@ if (!window.i18n) {
 if (!window.i18n.languages) {
     window.i18n.languages = {};
 }
-window.i18n.languages['zh'] = {
+window.i18n.languages['de'] = {
     // write your key value pairs here
     "label_text": {
         "hello": "你好!",
@@ -869,6 +869,15 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
-    },
+        "当前语言": "Deutsch",
+        "个人中心-个人资料": "Persönliche Informationen",
+        "个人中心-更换头像": "ersetzen",
+        "个人中心-昵称": "Spitzname",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "Telefonnummer",
+        "个人中心-没有号码": "Keine Nummer",
+        "个人中心-连线": "Verbinden",
+        "个人中心-登出": "Abmelden"
+    }
+
 };

+ 12 - 3
luckypot_sp/assets/resources/i18n/eb.js

@@ -7,7 +7,7 @@ if (!window.i18n) {
 if (!window.i18n.languages) {
     window.i18n.languages = {};
 }
-window.i18n.languages['zh'] = {
+window.i18n.languages['eb'] = {
     // write your key value pairs here
     "label_text": {
         "hello": "你好!",
@@ -869,6 +869,15 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
-    },
+        "当前语言": "বাংলা",
+        "个人中心-个人资料": "ব্যক্তিগত তথ্য",
+        "个人中心-更换头像": "প্রতিস্থাপন",
+        "个人中心-昵称": "ডাক নাম",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "ফোন নম্বর",
+        "个人中心-没有号码": "নম্বর নেই",
+        "个人中心-连线": "বাঁধাই",
+        "个人中心-登出": "সাইন আউট করুন"
+    }
+
 };

+ 10 - 1
luckypot_sp/assets/resources/i18n/en.js

@@ -927,7 +927,16 @@ window.i18n.languages['en'] = {
         "not_exit_game": "In game, please exit later",
     },
     "NV": {
-        "标题-设置": "Setup",
+        "当前语言": "English",
+        "个人中心-个人资料": "Personal Information",
+        "个人中心-更换头像": "Change avatar",
+        "个人中心-昵称": "Nick name",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "phone number",
+        "个人中心-没有号码": "No number",
+        "个人中心-连线": "Connect",
+        "个人中心-登出": "Sign out"
     },
+
     
 };

+ 10 - 2
luckypot_sp/assets/resources/i18n/fa.js

@@ -7,7 +7,7 @@ if (!window.i18n) {
 if (!window.i18n.languages) {
     window.i18n.languages = {};
 }
-window.i18n.languages['zh'] = {
+window.i18n.languages['fa'] = {
     // write your key value pairs here
     "label_text": {
         "hello": "你好!",
@@ -869,6 +869,14 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
+        "当前语言": "فارسی",
+        "个人中心-个人资料": "اطلاعات شخصی",
+        "个人中心-更换头像": "جایگزین کنید",
+        "个人中心-昵称": "نام مستعار",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "شماره تلفن",
+        "个人中心-没有号码": "بدون شماره",
+        "个人中心-连线": "اتصال",
+        "个人中心-登出": "از سیستم خارج شوید"
     },
 };

+ 11 - 2
luckypot_sp/assets/resources/i18n/fr.js

@@ -7,7 +7,7 @@ if (!window.i18n) {
 if (!window.i18n.languages) {
     window.i18n.languages = {};
 }
-window.i18n.languages['zh'] = {
+window.i18n.languages['fr'] = {
     // write your key value pairs here
     "label_text": {
         "hello": "你好!",
@@ -869,6 +869,15 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
+        "当前语言": "Français",
+        "个人中心-个人资料": "Informations Personnelles",
+        "个人中心-更换头像": "remplacer",
+        "个人中心-昵称": "Surnom",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "numéro de téléphone",
+        "个人中心-没有号码": "Pas de numéro",
+        "个人中心-连线": "Connecter",
+        "个人中心-登出": "se déconnecter"
     },
+
 };

+ 11 - 2
luckypot_sp/assets/resources/i18n/id.js

@@ -7,7 +7,7 @@ if (!window.i18n) {
 if (!window.i18n.languages) {
     window.i18n.languages = {};
 }
-window.i18n.languages['zh'] = {
+window.i18n.languages['id'] = {
     // write your key value pairs here
     "label_text": {
         "hello": "你好!",
@@ -869,6 +869,15 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
+        "当前语言": "Indonesia",
+        "个人中心-个人资料": "informasi pribadi",
+        "个人中心-更换头像": "mengganti",
+        "个人中心-昵称": "nama panggilan",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "nomor telepon",
+        "个人中心-没有号码": "Tidak ada nomor",
+        "个人中心-连线": "mengikat",
+        "个人中心-登出": "Keluar"
     },
+
 };

+ 13 - 1
luckypot_sp/assets/resources/i18n/ind.js

@@ -790,5 +790,17 @@ window.i18n.languages['ind'] = {
         "time_out_exit_tip": "Because you have not placed any bets for 5 consecutive rounds, you will automatically leave the room",
         "again_chip_not_data": "Please determine the area you want to bet on",
         "again_chip_not_score": "Not enough chips,you can't rebet",
-    }
+    },
+    "NV": {
+        "当前语言": "हिंदी",
+        "个人中心-个人资料": "व्यक्तिगत जानकारी",
+        "个人中心-更换头像": "प्रतिस्थापित करें",
+        "个人中心-昵称": "उपनाम",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "फ़ोन नंबर",
+        "个人中心-没有号码": "कोई संख्या नहीं",
+        "个人中心-连线": "जोड़ना",
+        "个人中心-登出": "साइन आउट"
+    },
+
 };

+ 11 - 2
luckypot_sp/assets/resources/i18n/it.js

@@ -7,7 +7,7 @@ if (!window.i18n) {
 if (!window.i18n.languages) {
     window.i18n.languages = {};
 }
-window.i18n.languages['zh'] = {
+window.i18n.languages['it'] = {
     // write your key value pairs here
     "label_text": {
         "hello": "你好!",
@@ -869,6 +869,15 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
+        "当前语言": "Italiano",
+        "个人中心-个人资料": "informazioni personali",
+        "个人中心-更换头像": "sostituire",
+        "个人中心-昵称": "Soprannome",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "numero di telefono",
+        "个人中心-没有号码": "Nessun numero",
+        "个人中心-连线": "legame",
+        "个人中心-登出": "disconnessione",
     },
+
 };

+ 11 - 2
luckypot_sp/assets/resources/i18n/jp.js

@@ -7,7 +7,7 @@ if (!window.i18n) {
 if (!window.i18n.languages) {
     window.i18n.languages = {};
 }
-window.i18n.languages['zh'] = {
+window.i18n.languages['jp'] = {
     // write your key value pairs here
     "label_text": {
         "hello": "你好!",
@@ -869,6 +869,15 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
+        "当前语言": "日本語",        
+        "个人中心-个人资料": "個人情報",
+        "个人中心-更换头像": "交換する",
+        "个人中心-昵称": "ユーザー名",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "電話番号",
+        "个人中心-没有号码": "番号なし",
+        "个人中心-连线": "接続",
+        "个人中心-登出": "サインアウト"
     },
+
 };

+ 11 - 2
luckypot_sp/assets/resources/i18n/ms.js

@@ -7,7 +7,7 @@ if (!window.i18n) {
 if (!window.i18n.languages) {
     window.i18n.languages = {};
 }
-window.i18n.languages['zh'] = {
+window.i18n.languages['ms'] = {
     // write your key value pairs here
     "label_text": {
         "hello": "你好!",
@@ -869,6 +869,15 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
+        "当前语言": "Melayu",
+        "个人中心-个人资料": "maklumat peribadi",
+        "个人中心-更换头像": "menggantikan",
+        "个人中心-昵称": "nama panggilan",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "nombor telefon",
+        "个人中心-没有号码": "Tiada nombor",
+        "个人中心-连线": "mengikat",
+        "个人中心-登出": "Log keluar"
     },
+
 };

+ 1 - 0
luckypot_sp/assets/resources/i18n/pr.js

@@ -875,6 +875,7 @@ window.i18n.languages['pr'] = {
     },
 
     "Cacheta": {
+        "当前语言": "",
         "no_select_card": "Please click to select a card",
         "not_pick_card": "You cannot touch Wildcards",
         "not_exit_game": "The game is in progress, cannot quit",

+ 13 - 1
luckypot_sp/assets/resources/i18n/pu.js

@@ -931,6 +931,18 @@ window.i18n.languages['pu'] = {
         "mylx":"sem ligação",
         "should_take":"Você precisa recarregar qualquer quantia,e transportarR${1},você pode apostar",
         "not_exit_game": "Em jogo, por favor saiam mais tarde",
-    }
+    },
+    "NV": {
+        "当前语言": "Português",
+        "个人中心-个人资料": "Informações Pessoais",
+        "个人中心-更换头像": "substituir",
+        "个人中心-昵称": "Apelido",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "número de telefone",
+        "个人中心-没有号码": "Sem número",
+        "个人中心-连线": "Conectar",
+        "个人中心-登出": "sair"
+    },
+
    
 };

+ 11 - 2
luckypot_sp/assets/resources/i18n/ru.js

@@ -7,7 +7,7 @@ if (!window.i18n) {
 if (!window.i18n.languages) {
     window.i18n.languages = {};
 }
-window.i18n.languages['zh'] = {
+window.i18n.languages['ru'] = {
     // write your key value pairs here
     "label_text": {
         "hello": "你好!",
@@ -869,6 +869,15 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
+        "当前语言": "Русский",
+        "个人中心-个人资料": "персональная информация",
+        "个人中心-更换头像": "заменять",
+        "个人中心-昵称": "Ник имя",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "номер телефона",
+        "个人中心-没有号码": "Нет номера",
+        "个人中心-连线": "Соединять",
+        "个人中心-登出": "выход"
     },
+
 };

+ 11 - 2
luckypot_sp/assets/resources/i18n/sp.js

@@ -933,7 +933,16 @@ window.i18n.languages['sp'] = {
         "not_exit_game": "Em jogo, por favor saiam mais tarde",
     },
     "NV": {
-        "标题-设置": "Configurações",
-    },
+        "当前语言": "español",
+        "个人中心-个人资料": "Información Personal",
+        "个人中心-更换头像": "Cambiar avatar",
+        "个人中心-昵称": "Apodo",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "número de teléfono",
+        "个人中心-没有号码": "Sin número",
+        "个人中心-连线": "Conectar",
+        "个人中心-登出": "desconectar"
+    }
+
    
 };

+ 11 - 2
luckypot_sp/assets/resources/i18n/th.js

@@ -7,7 +7,7 @@ if (!window.i18n) {
 if (!window.i18n.languages) {
     window.i18n.languages = {};
 }
-window.i18n.languages['zh'] = {
+window.i18n.languages['th'] = {
     // write your key value pairs here
     "label_text": {
         "hello": "你好!",
@@ -869,6 +869,15 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
+        "当前语言": "แบบไทย",
+        "个人中心-个人资料": "ข้อมูลส่วนบุคคล",
+        "个人中心-更换头像": "แทนที่",
+        "个人中心-昵称": "ชื่อนิค",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "หมายเลขโทรศัพท์",
+        "个人中心-没有号码": "ไม่มีหมายเลข",
+        "个人中心-连线": "เชื่อมต่อ",
+        "个人中心-登出": "ออกจากระบบ"
     },
+
 };

+ 12 - 3
luckypot_sp/assets/resources/i18n/tw.js

@@ -7,7 +7,7 @@ if (!window.i18n) {
 if (!window.i18n.languages) {
     window.i18n.languages = {};
 }
-window.i18n.languages['zh'] = {
+window.i18n.languages['tw'] = {
     // write your key value pairs here
     "label_text": {
         "hello": "你好!",
@@ -869,6 +869,15 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
-    },
+        "当前语言": "繁體中文",
+        "个人中心-个人资料": "個人資料",
+        "个人中心-更换头像": "更換頭像",
+        "个人中心-昵称": "暱稱",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "電話號碼",
+        "个人中心-没有号码": "沒有號碼",
+        "个人中心-连线": "連線",
+        "个人中心-登出": "登出"
+    }
+
 };

+ 10 - 2
luckypot_sp/assets/resources/i18n/uk.js

@@ -7,7 +7,7 @@ if (!window.i18n) {
 if (!window.i18n.languages) {
     window.i18n.languages = {};
 }
-window.i18n.languages['zh'] = {
+window.i18n.languages['uk'] = {
     // write your key value pairs here
     "label_text": {
         "hello": "你好!",
@@ -869,6 +869,14 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
+        "当前语言": "українська",
+        "个人中心-个人资料": "особиста інформація",
+        "个人中心-更换头像": "замінити",
+        "个人中心-昵称": "псевдонім",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "номер телефону",
+        "个人中心-没有号码": "Без номера",
+        "个人中心-连线": "прив'язка",
+        "个人中心-登出": "Вийти"
     },
 };

+ 10 - 2
luckypot_sp/assets/resources/i18n/vi.js

@@ -7,7 +7,7 @@ if (!window.i18n) {
 if (!window.i18n.languages) {
     window.i18n.languages = {};
 }
-window.i18n.languages['zh'] = {
+window.i18n.languages['vi'] = {
     // write your key value pairs here
     "label_text": {
         "hello": "你好!",
@@ -869,6 +869,14 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
+        "当前语言": "Tiếng Việt",
+        "个人中心-个人资料": "thông tin cá nhân",
+        "个人中心-更换头像": "thay thế",
+        "个人中心-昵称": "biệt danh",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "số điện thoại",
+        "个人中心-没有号码": "Không có số",
+        "个人中心-连线": "Kết nối",
+        "个人中心-登出": "Đăng xuất"
     },
 };

+ 9 - 1
luckypot_sp/assets/resources/i18n/zh.js

@@ -869,6 +869,14 @@ window.i18n.languages['zh'] = {
         "offline": "断线",
     },
     "NV": {
-        "标题-设置": "设置",
+        "当前语言": "简体中文",
+        "个人中心-个人资料": "个人资料",
+        "个人中心-更换头像": "更换头像",
+        "个人中心-昵称": "昵称",
+        "个人中心-ID": "ID:",
+        "个人中心-电话号码": "电话号码",
+        "个人中心-没有号码": "没有号码",
+        "个人中心-连线": "没有号码",
+        "个人中心-登出": "登出",
     },
 };

部分文件因文件數量過多而無法顯示