forked from lordfriky/web-cfw-loader
-
Notifications
You must be signed in to change notification settings - Fork 2
/
i18n.js
68 lines (53 loc) · 2.63 KB
/
i18n.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
function setPageLanguage(lang) {
var langObj = null;
if (lang === "en-US")
langObj = enUS;
else if (lang === "it-IT")
langObj = itIT;
else if (lang === "pt-BR")
langObj = ptBR;
else if (lang === "de-DE")
langObj = deDE;
else if (lang === "es-MX")
langObj = esMX;
else if (lang === "pl-PL")
langObj = plPL;
else if (lang === "zh-CN")
langObj = zhCN;
else if (lang === "zh-TW")
langObj = zhTW;
else if (lang === "ru-RU")
langObj = ruRU;
else if (lang === "fr-FR")
langObj = frFR;
else if (lang === "du-NL")
langObj = duNL;
else
langObj = enUS;
document.getElementById("pageTitle").innerHTML = langObj.pageTitle;
document.getElementById("pageSubtitle").innerHTML = langObj.pageSubtitle;
document.getElementById("dangerDanger").innerHTML = langObj.dangerDanger;
document.getElementById("warningWindows").innerHTML = langObj.warningWindows;
document.getElementById("warningBrowser").innerHTML = langObj.warningBrowser;
document.getElementById("warningLinux").innerHTML = langObj.warningLinux;
document.getElementById("warningTested").innerHTML = langObj.warningTested;
document.getElementById("labelInstructions").innerHTML = langObj.labelInstructions;
if (langObj.labelAddPayload != null) document.getElementById("labelAddPayload").innerHTML = langObj.labelAddPayload;
document.getElementById("liRCM").innerHTML = langObj.liRCM;
document.getElementById("liSelect").innerHTML = langObj.liSelect;
document.getElementById("liPress").innerHTML = langObj.liPress;
document.getElementById("liAPX").innerHTML = langObj.liAPX;
document.getElementById("liLaunch").innerHTML = langObj.liLaunch;
document.getElementById("labelContribute").innerHTML = langObj.labelContribute;
document.getElementById("h1SetupDelivery").innerHTML = langObj.h1SetupDelivery;
document.getElementById("h4SelectPayload").innerHTML = langObj.h4SelectPayload;
document.getElementById("optionCTCaerHekate").innerHTML = langObj.optionCTCaerHekate;
document.getElementById("optionUpload").innerHTML = langObj.optionUpload;
document.getElementById("h4GetByteArray").innerHTML = langObj.h4GetByteArray;
document.getElementById("h3Log").innerHTML = langObj.h3Log;
document.getElementById("goButton").innerHTML = langObj.goButton;
document.getElementById("clearlogsbutton").innerHTML = langObj.clearlogsbutton;
document.getElementById("disclaimer1").innerHTML = langObj.disclaimer1;
document.getElementById("disclaimer3").innerHTML = langObj.disclaimer3;
document.getElementById("disclaimer4").innerHTML = langObj.disclaimer4;
}