兼容tr以及翻译公会土耳其

This commit is contained in:
dragon
2024-11-26 18:48:27 +08:00
parent 156d956f06
commit 85a40558f8
25 changed files with 390 additions and 14 deletions

View File

@@ -740,7 +740,7 @@ function getInfoFromClient() {
} else {
// 非app环境调试参数
pubInfo.uid = sessionStorage.getItem("uid") ? sessionStorage.getItem("uid") : '';
pubInfo.uid = sessionStorage.getItem("uid") ? sessionStorage.getItem("uid") : '2615';
// pubInfo.ticket = sessionStorage.getItem("ticket") ? sessionStorage.getItem("ticket") : '';
pubInfo.h5_token = sessionStorage.getItem("ticket") ? sessionStorage.getItem("ticket") : '';
pubInfo.deviceId = "0";

View File

@@ -1,7 +1,7 @@
/**
* 初始化当前语言
*/
function initLocalLang () {
function initLocalLang() {
const lang = localStorage.getItem('lang')
// if (lang === 'zh' || window.location.href.match('=zh-CN')) {
// console.log("langHandler" + '简体')
@@ -10,7 +10,7 @@ function initLocalLang () {
// window.lang.code = 'zh-CN'
// window.lang.defaults = false
// } else
if (lang === 'zh' || window.location.href.match('=zh')) {
if (lang === 'zh' || window.location.href.match('=zh')) {
console.log("langHandler" + '繁体')
window.lang = langZh
window.lang.code = 'zh'
@@ -33,16 +33,19 @@ function initLocalLang () {
window.lang = langId
window.lang.code = 'id'
window.lang.defaults = false
}else if (lang === 'tr' || window.location.href.match('=tr')) {
// 土耳其
// console.log("langHandler" + '土耳其')
// window.lang = langTr
// window.lang.code = 'tr'
// window.lang.defaults = false
console.log("langHandler" + '英语/土耳其')
window.lang = langEn
window.lang.code = 'en'
window.lang.defaults = false
} else if (lang === 'tr' || window.location.href.match('=tr')) {
if (window.location.href.match('guild-ar')) {
// 土耳其
console.log("langHandler" + '土耳其')
window.lang = langTr
window.lang.code = 'tr'
window.lang.defaults = false
} else {
console.log("langHandler" + '英语/土耳其')
window.lang = langEn
window.lang.code = 'en'
window.lang.defaults = false
}
} else {
console.log("langHandler" + '默认英语')
window.lang = langEn

View File

@@ -75,6 +75,7 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/BANK.js"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -59,6 +59,7 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/PAYONNER.js"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -55,6 +55,7 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/USDT.js"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -54,6 +54,7 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/VODAFONE.js"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -58,5 +58,6 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/adminSet.js"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -58,5 +58,6 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/adminSet2.js"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -80,5 +80,6 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/agencyDiamondIncome.js"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -58,6 +58,7 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/bill.js"></script>
<script src="../../common/local/langHandler.js"></script>
</body>

View File

@@ -62,5 +62,6 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/diamondWithdraw.js"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -39,6 +39,7 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<!-- <script src="./js/guide.js"></script> -->
<script src="../../common/local/langHandler.js"></script>
<script>

View File

@@ -86,5 +86,6 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/guild.js?v=1.0"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -68,5 +68,6 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/guildInfoSet.js"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -189,5 +189,6 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/index.js?v=1.11"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -58,5 +58,6 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/invitation.js?v=1.0"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -65,6 +65,9 @@ $(function () {
}, 100)
})
function translateFun() {
if (getQueryString().lang == "tr") {
$('.headerBox .headerBox_in div .why').hide();
}
var langReplace = window.lang.replace;
var localLang = window.lang;
$('.text1').text(langReplace(localLang.demoModule.text1));
@@ -412,4 +415,4 @@ $(`.myWages`).click(function (params) {
// $('.guildList .top').on('blur', 'input', () => {
// console.log("失焦");
// $('.headerBox').css('margin','-0.4rem auto 0rem')
// });
// });

View File

@@ -0,0 +1,349 @@
langTr = {
demoModule: {
layerIndex1: `Yükleniyor...`,
layerIndex2: `Başarı`,
layerIndex3: `Ağ hatası`,
text1: `Ajans Adı`,
text2: `Ajans Adı`,
text3: `Yönetici`,
text4: `Ayarlar`,
text5: `Gelir`,
text6: `Davet Et`,
text7: `Detaylar`,
text8: `Ajans Adı`,
text9: `İptal`,
text10: `Onayla`,
text11: 'Guild Adı:',
text12: `Usta`,
text13: `Yönetici`,
text14: `Sil`,
text15: `Bu kişiyi kaldırmak istediğinize emin misiniz?`,
text16: `MoliStar ID`,
texts1: "Madeni Para Gelir İstatistikleri",
texts2: "Maaş Gelir İstatistikleri",
texts3: "Ajans Ayarları",
texts4: "Yönetici Ayarları",
texts5: "Benim Maaşım",
newtext1: "Benim Gelirim",
newtext2: "Maaş Hesabı",
newtext3: "Guild Bilgisi",
newtext4: "Guild Yönetici",
newtext5: "Ajans Seviyesi",
newtext6: "Geçerli Ajans Seviyesi:",
newtext7: "Bir Sonraki Seviye İçin Gereken:",
coins: "Madeni Paralar",
transfer_salary: "Maaş Transferi:",
audit: 'Denetim Aşamasında',
weeklyRewardsText1: 'Haftalık Ödülleri Ev Sahibi',
weeklyRewardsText2: 'Toplamda 2240000 madeni para kazanabilirsiniz.',
weeklyRewardsText3: 'Al',
weeklyRewardsText33: 'Alındı',
weeklyRewardsText4: 'Ev Sahibi Seviyesi',
weeklyRewardsText5: 'Sıfırlama Zamanı: Pazartesi 0:00 (GMT+3)',
},
adminSet: {
text1: `Yönetici`,
text2: `Bul`,
text3: `Veri Yok`,
text4: `Yönetici Atansın mı?`,
text5: `İptal`,
text6: `Onayla`,
text7: `Ekle`,
text8: `Eklendi`,
},
adminSet2: {
text1: `Yönetici`,
text2: `Ayarlar`,
text3: `Yönetici Ekle`,
text4: `Veri Yok`,
text5: `Yöneticiyi Kaldıralım mı?`,
text6: `İptal`,
text7: `Onayla`,
text8: `Usta`,
text9: `Yönetici`,
text10: `Sil`,
text11: 'Kaldırıldı',
},
guild: {
text1: `Tümü`,
text2: `Tümü`,
text3: `Ajans`,
text4: `Katılmak için başvuru yapalım mı?`,
text5: `İptal`,
text6: `Onayla`,
text7: `Ekle`,
text8: 'Gönderildi',
},
guildInfoSet: {
text1: `Ajans Ayarları`,
text2: `Ajans Ayarları`,
text3: `Ad: `,
text4: `Ad`,
text5: `Arka Plan:`,
text6: `Sil`,
text7: `Kaydet`,
text8: `Yüklendi`,
textConte1: `Kaydet`,
textConte2: `Düzenle`,
textConte3: `Ekle`,
textConte4: `Ödeme Hesabı`,
text55: `Guild Avatarı`,
toastMsgText1: `GIF yüklemesi şu anda desteklenmiyor`,
},
invitation: {
text1: `Bul`,
text2: `MoliStarID Bul`,
text3: `Bul`,
text4: `İçerik Yok`,
text5: `Guild'e Davet Et?`,
text6: `İptal`,
text7: `Onayla`,
text8: `Ekle`,
text9: `Veri Yok`,
text10: 'Davet Gönderildi',
},
memberFlow: {
text1: `Gelir İstatistikleri`,
text2: `Toplam Madeni Para Geliri`,
text3: `Üye Madeni Para Geliri`,
text4: `Başlangıç zamanı bitiş zamanından sonra olamaz`,
text5: `Seçilen zaman dilimi 90 günü geçemez`,
text6: `Madeni Para Geliri`,
text7: `Süre`,
text8: `Verici Sayısı`,
text9: `Ben`,
},
memberFlow2: {
text1: `Maaş İstatistikleri`,
text2: `Önceki`,
text3: `Sonraki`,
text4: `Benim Maaşım`,
text5: `Madeni Para Maaşı`,
text6: `Komisyon`,
text7: `Kalan Elmaslar`,
text8: `Üye Maaşları`,
text9: `Ay`,
text10: `Üye`,
text11: `Geçerli günler`,
text12: `Madeni Para Geliri`,
text13: `Madeni Para Maaşı`,
text14: `Kalan Elmaslar`,
text15: `Görüntüle`,
text16: `Detaylar`,
text17: `Geçerli`,
textss: 'Toplam Madeni Para Maaşı'
},
memberFlow22: {
text1: `Üye Maaşı`,
text2: `Önceki`,
text3: `Sonraki`,
text4: `Madeni Para Maaşı`,
text5: `Madeni Para Geliri`,
text6: `Geçerli Günler`,
text7: `Kalan Elmaslar`,
text8: `Günlük Detaylar`,
text9: ``,
text10: `Tarih`,
text11: `Süre`,
text12: `Günlük Gelir`,
text13: `Aylık Gelir`,
text14: `Madeni Para Maaşı`,
},
memberFlow222: {
text1: `Üye Maaşı`,
text2: `Önceki`,
text3: `Sonraki`,
text4: `Madeni Para Maaşı`,
text5: `Madeni Para Geliri`,
text6: `Geçerli Günler`,
text7: `Kalan Elmaslar`,
text8: `Günlük Detaylar`,
text9: ``,
text10: `Tarih`,
text11: `Süre`,
text12: `Günlük Gelir`,
text13: `Aylık Gelir`,
text14: `Madeni Para Maaşı`,
},
search: {
text1: `Bul`,
text2: `MoliStarID Bul`,
text3: `Bul`,
text4: `İçerik Yok`,
text5: `Katılmak için başvuru yapalım mı?`,
text6: `Sil`,
text7: `İptal`,
text8: 'Gönderildi',
},
lay: {
ok: 'Onayla',
close: 'İptal',
departed: 'Ayrıldılar',
},
personal: {
text1: `Kişisel<span></span>`,
text2: `Ajans<span></span>`,
text3: `Benim elmasım:`,
text4: `Çekim Yap`,
text5: `Maaş Hesabıma Gir`,
text6: `Bu Dönem Geliri`,
text7: `(Bu dönemde maaş hesabına çekilen elmaslardan elde edilen toplam gelir)`,
text8: `Toplam gelir`,
text9: `Hesaplanan gelir`,
text10: `Kalan gelir`,
text11: `Son dönem geliri`,
text12: `Toplam gelir`,
text13: `Hesaplanan gelir`,
text14: `Kalan gelir`,
text15: `Ajan maaşı`,
text16: `Ajan maaşı`,
text17: `Elmas geliri`,
text18: `Ajan gelir oranı`,
text19: `Anchor verileri`,
text20: `Elmas geliri`,
},
diamondWithdraw: {
text1: `Elmas Çekim `,
text2: `Onayla`,
text3: `Başarıyla Çekildi`,
text4: `Maaş Hesabına Gir`,
text5: `İptal`,
text6: `Madeni Paraların Güncellenmesi`,
text7: `Kaydedildi`,
text8: 'Başarıyla Çekildi',
},
salary: {
text1: `Maaş Hesabı`,
text2: `Benim Maaşım:`,
text3: `Fatura`,
text4: `Kişisel`,
text5: `Ajans`,
text6: `Transfer Yöntemi`,
text7: `Transfer Dolarları`,
text8: `Onayla`,
text9: `Ajans Yükle`,
text10: `Bu alanda ajans yüklemesi yok`,
text11: `İptal`,
text12: `Onayla`,
text13: `Ajans Yükle`,
text14: `Ajansa <b></b> göndermek istediğinize emin misiniz?`,
text15: `Özel Tutar`,
text16: `Hepsi`,
text17: `<b>0</b> altın madeni paraya dönüştürülebilir`,
text18: `(1:<b>7000</b> oranında değişim)`,
text19: `Madeni Para Dönüştür`,
text20: `Çekim`,
text21: `Çekim kanalı her ayın 1. ve 2. günü açılır.`,
text22: `Ajans Hesaplaşması`,
text23: `Ajans Yükleme Hesaplaşması`,
text24: `Lütfen bozdurulacak miktarı girin`,
text25: `Madeni Paralar`,
textnew1: `Çekim Hesabı`,
textnew2: `Bağlanmamış`,
textnew3: `Hesap Seç`,
textnew4: `Çekim`,
textnew5: `Çekim Miktarı`,
textnew6: `İşlem Ücreti Oranı`,
textnew7: `İşlem Ücreti`,
textnew8: `USD to EGP döviz kuru: 1:`,
textnew9: `Tahmini Miktar`,
textnew10: `Not: Tahmini varış miktarı banka döviz kuru gibi faktörlerden etkilenebilir.`,
textnew11: `Çekim`,
textnew12: `İptal`,
textnew13: `Lütfen bir çekim hesabı seçin`,
textnew14: `Maksimum transfer edilebilir miktardan fazla.`,
textnew15: `Başarı`,
textnew16: `Çekim taleplerinin işlenme süresi her ayın 3'ü ile 10'u arasındadır.`,
textnew17: `Tamam`,
},
bill: {
text1: `Fatura`,
text2: `Gelir`,
text3: `Giderler`,
text4: `Maaş:`,
text5: `Elmas Çekimi`,
text6: `Resmi Çekim`,
text7: `Maaşın madeni para ile değiştirilmesi`,
text8: `Maaş Transferi`,
text9: `Ajans Maaşı`,
text10: `İnceleme Aşamasında`,
text11: `Verildi`,
text12: `Reddedildi`,
text13: ``,
},
success: {
text1: `Hesaplaşma Başarılı`,
text2: `Değişim Başarılı`,
text3: `Maaş`,
text4: `Mevcut Durum`,
text5: `Değişim Başarılı`,
text6: `Değişim Hesabı`,
text7: `Madeni Para Değişimi`,
text8: `Değişim Zamanı`,
text9: `Sipariş`,
text10: ``,
text11: `Mevcut Durum`,
text12: `Başarılı`,
text13: `Hesap`,
text14: `Hesaplaşma Hesabı`,
text15: `Zaman`,
text16: `Sipariş`,
},
payonner: {
text1: `Payonner`,
text2: `Onayla`,
text3: `Bağlantıyı Kaldır`,
text4: `Ülke`,
text5: `Tamam`,
text6: `Para Birimi Türü:`,
text7: `Ülke`,
text8: `alıcıHesapNo`,
text9: `alıcıAdı`,
text10: `Zorunlu alanlar boş bırakılamaz`,
},
bank: {
text1: `Onayla`,
text2: `Bağlantıyı Kaldır`,
text3: `Ülke`,
text4: `Tamam`,
text5: `Ülke`,
text6: `alıcıHesapNo`,
text7: `Banka Adı`,
text8: `SWIFT Kodu`,
text9: `alıcıAdı`,
text10: `Adres`,
},
pTitle: {
p1: `Ülke`,
p2: `alıcıHesapNo`,
p3: `Banka Adı (Sadece İngilizce Girin)`,
p4: `SWIFT Kodu (Sadece İngilizce Girin)`,
p5: `alıcıAdı (Sadece İngilizce Girin)`,
p6: `Adres (Sadece İngilizce Girin)`,
p7: `alıcıHesap (E-posta formatında)`,
},
weeklyRewards: {
text1: `Ev Sahibi Haftalık Ödülleri`,
text2: `Toplamda <b>2240000</b> madeni para kazanabilirsiniz.`,
text3: `Al`,
text4: `Ev Sahibi Seviyesi`,
text5: `Alındı`,
},
weeklyRewardsRule: {
text1: `Kurallar`,
text2: `<p>1 Aktivite Zamanı: Her hafta 0:00-23:59 (GMT+3)</p>
<p>2 Madeni Para Ödülleri: Kullanıcının elmas gelirleri her hafta hesaplanır, belirli bir seviyeye ulaştığında karşılık gelen madeni paralar verilir.</p>
<p>3 Madeni Para Ödül Gradyanı</p>`,
text3: `./images/weeklyRewardsRule2.png`,
},
agencyDiamondIncome: {
text1: `Ajans Elmas Geliri`,
text2: `Bir guild kurarak, istediğiniz zaman elmas gelirinizi arayabilirsiniz.`,
text3: `Kullanıcı ajansı terk ettiğinde veri değişiklikleri olabilir.`,
text4: `Denetim`,
text5: `Tarih Seçimi`,
text6: `Onayla`,
text7: `Ara`,
}
};

View File

@@ -127,5 +127,6 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/personal.js?v=1.1"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -45,6 +45,7 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/record.js"></script>
<script src="../../common/local/langHandler.js"></script>
</body>

View File

@@ -223,6 +223,7 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/salary.js"></script>
<script src="../../common/local/langHandler.js"></script>
</body>

View File

@@ -58,5 +58,6 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/search.js"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -94,6 +94,7 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="../../common/js/jquery.copy.min.js"></script>
<script src="./js/success.js"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -58,5 +58,6 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/weeklyRewards.js?v=1.11"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -34,5 +34,6 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/weeklyRewardsRule.js"></script>
<script src="../../common/local/langHandler.js"></script>