pubgv3/assets/scripts/language.js
zhuguoqing 62d8fb825e update
2022-05-28 11:15:04 +08:00

1146 lines
22 KiB
JavaScript

var ltype = "en";
var lgcfg = {
sylb: {
cn: "loudspeakers:",
en: "loudspeakers:",
},
sylb2: {
cn: "loudspeakers",
en: "loudspeakers:",
},
lbbz: {
cn: "Not enough speakers",
en: "Not enough speakers",
},
ditu: {
cn: "map",
en: "map",
},
duiwu: {
cn: "team",
en: "team",
},
xuanzepindao: {
cn: "Please select channel to send",
en: "Please select channel to send",
},
kuaishangche: {
cn: "Let's go,",
en: "Let's go",
},
shuohuataikuai: {
cn: "You speak too fast, please wait %1 seconds to continue",
en: "You speak too fast, please wait %1 seconds to continue",
},
neitongweikong: {
cn: "end content cannot be empty",
en: "Send content cannot be empty",
},
haoyoushuliang: {
cn: "friend: %1/30",
en: "friend: %1/30",
},
yusheiliaotian: {
cn: "Chat with %1",
en: "Chat with %1",
},
duquan: {
cn: "The poison circle",
en: "The poison circle",
},
ziji: {
cn: "yourself",
en: "yourself",
},
morenmingzi: {
cn: "player",
en: "player",
},
bianshen: {
cn: "transform",
en: "transform",
},
jijiangkaishi: {
cn: "Start time ",
en: "Start time ",
},
jinrufangjian: {
cn: "",
en: "get into the room",
},
youxikaishi: {
cn: "",
en: "Start",
},
duquankuosan1: {
cn: "",
en: "There's %1 second left for the circle to spread",
},
duquankuosan2: {
cn: "",
en: "The poison circle begins to spread",
},
chiji1: {
cn: "Winner winner,chicked dinner",
en: "Winner winner,chicked dinner",
},
jiesuan1: {
cn: "I swear, I'll never land in a box again!",
en: "I swear, I'll never land in a box again!",
},
jiesuan2: {
cn: "What a pity! The next game is sure to win!",
en: "What a pity! The next game is sure to win!",
},
jiesuan3: {
cn: "One step away from winning!",
en: "One step away from winning!",
},
jifenkongge: {
cn: "Score ",
en: "Score",
},
bianshenfuhuo: {
cn: "",
en: "Resurrection",
},
dianjuanbuzu: {
cn: "",
en: "There is not enough money",
},
shengyushijian: {
cn: "",
en: "Time:",
},
anquanshijian: {
cn: "",
en: "Safe time ",
},
duquanshijian: {
cn: "",
en: "Spread time ",
},
julikaishi: {
cn: "starts after %1 seconds",
en: "starts after %1 seconds",
},
duankailianjie: {
cn: "",
en: "",
},
buzaifanwei: {
cn: "Disconnect",
en: "Disconnect",
},
shangtang: {
cn: "Loading",
en: "Loading",
},
beigandiao3: {
cn: "You were killed by %1",
en: "You were killed by %1",
},
beigandiao4: {
cn: "You were killed by yourself",
en: "You were killed by yourself",
},
zhuantian: {
cn: "Filling",
en: "Filling",
},
zhiliao: {
cn: "treatment",
en: "treatment",
},
jiuyuan: {
cn: "Rescuing",
en: "Rescuing",
},
fuhuohua1: {
cn: "",
en: "",
},
fuhuohua2: {
cn: "",
en: "I can still be saved. \nDo you have any medicine?",
},
fuhuohua3: {
cn: "",
en: "Come on!!! ~N click Resurrection",
},
beigandiao1: {
cn: "",
en: "<outline color=black width=2><color=#ffe288>You were killed by the </color><color=#f32323>ring</color>",
},
beigandiao2: {
cn: "",
en: "<outline color=black width=2><color=#ffe288>You were killed by </color><color=#f32323>yourself</color>",
},
nickname: {
cn: "",
en: "player",
},
season: {
cn: "",
en: "season",
},
cailiaobuzu: {
cn: "",
en: "There is not enough material",
},
chongzhisuccess: {
cn: "",
en: "Recharge success",
},
fighting: {
cn: "",
en: "In battle",
},
online: {
cn: "",
en: "on-line",
},
offline: {
cn: "",
en: "off-line",
},
lastthreeday: {
cn: "",
en: "Last online 3 days ago",
},
lastdayonline: {
cn: "",
en: "Last online %1 days ago",
},
lasthouronline: {
cn: "",
en: "Last online %1 hours ago",
},
lastminonline: {
cn: "",
en: "Last online %1 hours ago",
},
lastonemin: {
cn: "",
en: "Last online 1 minute ago",
},
kickoutguild: {
cn: "",
en: "Get rid of the team",
},
guildontrue: {
cn: "",
en: "Are you sure you want to",
},
kickoutguildma: {
cn: "",
en: "Kick out the team?",
},
leaveoutguild: {
cn: "",
en: "Quit the team",
},
leaveoutguildma: {
cn: "",
en: "Are you sure you want to quit the team?",
},
turncapter: {
cn: "",
en: "Transfer team leader",
},
turncapterma: {
cn: "",
en: "Are you sure you want to transfer the team leader to",
},
ma: {
cn: "",
en: "?",
},
clenup: {
cn: "",
en: "One click cleaning",
},
clenupguildapply: {
cn: "",
en: "Are you sure you want to delete all the application information?",
},
nottimeaddsameplayer: {
cn: "",
en: "Don't add the same player frequently",
},
createguildsuccess: {
cn: "",
en: "Congratulations on the success of creating the team",
},
updatetips: {
cn: "",
en: "Update tips",
},
newbanben: {
cn: "",
en: "The new version is ready. Do you want to restart the application?",
},
notad: {
cn: "",
en: "No ads for now, please try again later",
},
watchoverreward: {
cn: "",
en: "After watching the video, there will be a reward",
},
sharezu: {
cn: "",
en: "Please share with different groups",
},
share: {
cn: "",
en: "share",
},
updongzuomax: {
cn: "",
en: "The equipment position is full, please remove it first",
},
upweizhuangmax: {
cn: "",
en: "The equipment position is full, please remove it first",
},
weijinzi: {
cn: "The content you entered is illegal",
en: "The content you entered is illegal",
},
changesuccess: {
cn: "Changed successfully",
en: "Changed successfully",
},
repeatname: {
cn: "Duplicate character name, please re-enter",
en: "Duplicate character name, please re-enter",
},
changenamenot: {
cn: "Insufficient number of renaming cards",
en: "Insufficient number of renaming cards",
},
shengyugaimingka: {
cn: "Number of renaming cards: ",
en: "Number of renaming cards: ",
},
changename: {
cn: "Change name",
en: "Change name",
},
changehead: {
cn: "Change avatar",
en: "Change avatar",
},
strnotkong: {
cn: "",
en: "The input content cannot be empty",
},
notgethead: {
cn: "",
en: "Did not get the avatar",
},
connectserver: {
cn: "",
en: "Connecting to server",
},
morenheadkuang: {
cn: "",
en: "Default",
},
tequangive: {
cn: "",
en: "Privilege package",
},
seasongive: {
cn: "",
en: "Season award",
},
zhe: {
cn: "",
en: "dis",
},
hour: {
cn: "",
en: "h",
},
min: {
cn: "",
en: "m",
},
second: {
cn: "",
en: "s",
},
forever: {
cn: "",
en: "perm",
},
daojishi: {
cn: "",
en: "count down:",
},
rmbnumnot: {
cn: "",
en: "There is not enough money",
},
atk: {
cn: "",
en: "attack: ",
},
hp: {
cn: "",
en: "life: ",
},
clip: {
cn: "",
en: "clip: ",
},
firerate: {
cn: "",
en: "Rate of fire:: ",
},
fixedview: {
cn: "",
en: "Vision: ",
},
reloadtime: {
cn: "",
en: "Reload: ",
},
get: {
cn: "",
en: "receive",
},
close: {
cn: "",
en: "close",
},
secondcanget: {
cn: "",
en: " seconds",
},
notissetteam: {
cn: "",
en: "Team invalid",
},
duihuansuccess: {
cn: "",
en: "Successful exchange",
},
guild: {
cn: "",
en: "clan",
},
normaljob: {
cn: "",
en: "Ordinary member",
},
captal: {
cn: "",
en: "team leader",
},
fucaptal: {
cn: "",
en: "vice captain",
},
jingying: {
cn: "",
en: "Elite members",
},
hasinvite: {
cn: "",
en: "Invitation sent",
},
baiyin: {
cn: "",
en: "Silver",
},
rankxuqiu: {
cn: "",
en: "More than %1 segments are required",
},
level: {
cn: "",
en: "lv.",
},
gettimes: {
cn: "",
en: "Collection times: ",
},
acttime: {
cn: "",
en: "Activity time: ",
},
gettimesnot: {
cn: "",
en: "Insufficient collection times, please go to recharge",
},
shengyuflushtimes: {
cn: "",
en: "Remaining refresh times: ",
},
secondfree: {
cn: "",
en: " seconds",
},
yougreat: {
cn: "",
en: "You're too good. You've finished the prize pool!",
},
notreward: {
cn: "",
en: "There is no reward to get!",
},
sumdraw: {
cn: "",
en: "Accumulated lottery",
},
draw: {
cn: "",
en: "lottery",
},
friendnummax: {
cn: "",
en: "The number of friends has reached the limit",
},
xiangou: {
cn: "",
en: "limit",
},
nowprice: {
cn: "",
en: "Current price: ",
},
todayviewtimes: {
cn: "",
en: "Viewing times today: ",
},
sumviewtimes: {
cn: "",
en: "Cumulative viewing times: ",
},
free: {
cn: "",
en: "free",
},
yuan: {
cn: "",
en: "",
},
extrasong: {
cn: "",
en: "Extra gift",
},
vipprice: {
cn: "",
en: "VIP Special: ",
},
notquanxian: {
cn: "",
en: "Insufficient permissions",
},
randmap: {
cn: "",
en: "Random",
},
randmapdes: {
cn: "",
en: "",
},
friendnum: {
cn: ": ",
en: "Friends",
},
blacknum: {
cn: ": ",
en: "Blacklist",
},
notplayer: {
cn: "",
en: "Player does not exist",
},
addsuccess: {
cn: "",
en: "Added successfully",
},
deletesuccess: {
cn: "",
en: "Successfully deleted",
},
notrank: {
cn: "",
en: "Your rank is insufficient",
},
notxianzhi: {
cn: "",
en: "unlimited",
},
qingtongup: {
cn: "",
en: "more than Heroic Bronze",
},
baiyinup: {
cn: "",
en: "more than Unyielding Silver",
},
huangjinup: {
cn: "",
en: "more than Glory Gold",
},
baijinup: {
cn: "",
en: "more than Luxurious platinum",
},
zuanshiup: {
cn: "",
en: "more than Brilliant Diamond",
},
xingyaoup: {
cn: "",
en: "more than Supreme Star",
},
wangzhe: {
cn: "",
en: "The strongest king",
},
hasapply: {
cn: "",
en: "Application sent",
},
buysuccess: {
cn: "",
en: "Successful purchase",
},
notguildcoin: {
cn: "",
en: "Team contribution is insufficient",
},
not: {
cn: "",
en: "unlimited",
},
haskandao0: {
cn: "",
en: "The price has been cut to 0 points",
},
acttimenot: {
cn: "later...",
en: "later...",
},
seasonend: {
cn: "The end of the season:: ",
en: "The end of the season:",
},
costrmbnextlv: {
cn: "Spend %1 coupon to next level",
en: "Spend %1 coupon to next level",
},
todayexp: {
cn: "Gain experience today",
en: "Gain experience today",
},
buy: {
cn: "buy",
en: "buy",
},
tequanshengyu: {
cn: "Days Remaining: %1",
en: "Days Remaining: %1",
},
daylibao: {
cn: "Day",
en: "Day",
},
foreverlibao: {
cn: "Permanent",
en: "Permanent",
},
shengji: {
cn: "upgrade",
en: "upgrade",
},
forevertequan: {
cn: "Permanent privilege",
en: "Permanent privilege",
},
recnextvip: {
cn: "Recharge %1 to VIP %2",
en: "Recharge %1 to VIP %2",
},
todayshengyu: {
cn: "Number of times left today: : ",
en: "Number of times left today: ",
},
days: {
cn: "Day %1",
en: "Day %1",
},
gongxihuode: {
cn: "Congratulations",
en: "Congratulations",
},
lixianjiangli: {
cn: "Offline rewards",
en: "Offline rewards",
},
recsuccessgetrmbnum: {
cn: "Recharge completed, reward %1 coupon",
en: "Recharge completed, reward %1 coupon",
},
recmaxnum: {
cn: "It's best to recharge %1",
en: "It's best to recharge %1",
},
biomode: {
cn: "Biochemical Mode",
en: "Biochemical Mode",
},
normalmode: {
cn: "Battle Royale mode",
en: "Battle Royale mode",
},
libao: {
cn: "Gift bag",
en: "Gift bag",
},
zhuanshu: {
cn: "exclusive",
en: "exclusive",
},
tequan: {
cn: "privilege",
en: "privilege",
},
fuli: {
cn: "welfare",
en: "welfare",
},
notguild: {
cn: "I haven't joined any teams",
en: "I haven't joined any teams",
},
tehuishop: {
cn: "Special Shop",
en: "Special Shop",
},
chongzhireward: {
cn: "Recharge polite",
en: "Recharge polite",
},
haolidafangsong: {
cn: "Hao Li big show",
en: "Hao Li big show",
},
jiesuanreward: {
cn: "GameOver Reward",
en: "GameOver Reward",
},
sendsuccess: {
cn: "Send Success",
en: "Send Success",
},
test: {
cn: "ask%1,%2",
en: "ask%1,%2",
},
fighttips1: {
cn: "%1 use %2 kill %3",
en: "%1 use %2 kill %3",
},
fighttips2: {
cn: "%1 Be killed by a poison ring",
en: "%1 Be killed by a poison ring",
},
};
var language = function () {
this.robotname = {
cn: [
"Kipling",
"Guy",
"Henry",
"Wells",
"Ann",
"Abraham",
"Hoover",
"Richardson",
"Child",
"Valentine",
"Hemingway",
"Keynes",
"Silas",
"Joshua",
"Piers",
"Rhodes",
"Louisa",
"Howard",
"Rob",
"Edie",
"Landon",
"Partridge",
"Hart",
"Harrison",
"",
"Bertram",
"Horatio",
"Wilson",
"Rayleign",
"Southey",
"Dunlop",
"Gabriel",
"Barton",
"Jenny",
"Warren",
"William",
"",
"George",
"Dulles",
"Bill",
"Geoffrey",
"Thoreau",
"Milne",
"Bertha",
"Saul",
"Gracie",
"Zacharias",
"Thomas",
"Dickey",
"Henrietta",
"Lou(ie)",
"Morgan",
"Hudson",
"Browne",
"Lizzie",
"Pollitt",
"Pope",
"Kitto",
"Herty",
"Belle",
"Ferguson",
"Johnston(e)",
"Hansen",
"Lawrence",
"Tyler",
"Fast",
"Judson",
"Charlotte",
"Bloomfield",
"Warner",
"Nixon",
"Copperfield",
"Kingsley",
"Marion",
"Hazlitt",
"May",
"Turner",
"Louis",
"Masefield",
"Mackintosh",
],
en: [
"Kipling",
"Guy",
"Henry",
"Wells",
"Ann",
"Abraham",
"Hoover",
"Richardson",
"Child",
"Valentine",
"Hemingway",
"Keynes",
"Silas",
"Joshua",
"Piers",
"Rhodes",
"Louisa",
"Howard",
"Rob",
"Edie",
"Landon",
"Partridge",
"Hart",
"Harrison",
"",
"Bertram",
"Horatio",
"Wilson",
"Rayleign",
"Southey",
"Dunlop",
"Gabriel",
"Barton",
"Jenny",
"Warren",
"William",
"",
"George",
"Dulles",
"Bill",
"Geoffrey",
"Thoreau",
"Milne",
"Bertha",
"Saul",
"Gracie",
"Zacharias",
"Thomas",
"Dickey",
"Henrietta",
"Lou(ie)",
"Morgan",
"Hudson",
"Browne",
"Lizzie",
"Pollitt",
"Pope",
"Kitto",
"Herty",
"Belle",
"Ferguson",
"Johnston(e)",
"Hansen",
"Lawrence",
"Tyler",
"Fast",
"Judson",
"Charlotte",
"Bloomfield",
"Warner",
"Nixon",
"Copperfield",
"Kingsley",
"Marion",
"Hazlitt",
"May",
"Turner",
"Louis",
"Masefield",
"Mackintosh",
],
};
this.randgun = {
cn: [
"Shotgun",
"Shotgun",
"Shotgun",
"Submachine gun",
"Assault rifle",
"Automatic rifle",
"Light machine gun",
"Barrett",
],
en: [
"Shotgun",
"Shotgun",
"Shotgun",
"Submachine gun",
"Assault rifle",
"Automatic rifle",
"Light machine gun",
"Barrett",
],
};
this.getstr = function (k) {
var data = lgcfg[k];
if (!data) {
return k;
}
return data[ltype];
};
this.format = function (str, arr) {
var n = str.search("%");
if (n != -1 && arr) {
var idx = Number(str[n + 1]);
str = str.replace("%" + idx, arr[idx - 1]);
str = this.format(str, arr);
}
return str;
};
this.stringformat = function (key, arr) {
var str = this.getstr(key);
str = this.format(str, arr);
return str;
};
this.getrobot = function () {
return this.robotname[ltype];
};
this.getrangun = function () {
return this.randgun[ltype];
};
this.check = function () {
var temp = {};
for (var k in lgcfg) {
var str = lgcfg[k].cn;
if (!temp[str]) {
temp[str] = 1;
} else {
}
}
};
};
cc.language = new language();
//cc.language.stringformat("test",["aaa","bbb"])