mirror of
https://github.com/lordfriky/web-cfw-loader.git
synced 2024-12-29 08:31:56 +00:00
50 lines
2.5 KiB
JavaScript
50 lines
2.5 KiB
JavaScript
|
|
||
|
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
|
||
|
langObj = enUS;
|
||
|
|
||
|
|
||
|
document.getElementById("pageTitle").innerHTML = langObj.pageTitle;
|
||
|
document.getElementById("pageSubtitle").innerHTML = langObj.pageSubtitle;
|
||
|
document.getElementById("dangerUpload").innerHTML = langObj.dangerUpload;
|
||
|
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;
|
||
|
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("h1SetupDelivery").innerHTML = langObj.h1SetupDelivery;
|
||
|
document.getElementById("h4SelectPayload").innerHTML = langObj.h4SelectPayload;
|
||
|
document.getElementById("optionInstantV5").innerHTML = langObj.optionInstantV5;
|
||
|
document.getElementById("optionInstantV4").innerHTML = langObj.optionInstantV4;
|
||
|
document.getElementById("optionHekateV5").innerHTML = langObj.optionHekateV5;
|
||
|
document.getElementById("optionHekateV4").innerHTML = langObj.optionHekateV4;
|
||
|
document.getElementById("optionFusee").innerHTML = langObj.optionFusee;
|
||
|
document.getElementById("optionUpload").innerHTML = langObj.optionUpload;
|
||
|
document.getElementById("h4GetByteArray").innerHTML = langObj.h4GetByteArray;
|
||
|
document.getElementById("goButton").innerHTML = langObj.goButton;
|
||
|
document.getElementById("clearlogsbutton").innerHTML = langObj.clearlogsbutton;
|
||
|
document.getElementById("disclaimer1").innerHTML = langObj.disclaimer1;
|
||
|
document.getElementById("disclaimer2").innerHTML = langObj.disclaimer2;
|
||
|
document.getElementById("disclaimer3").innerHTML = langObj.disclaimer3;
|
||
|
document.getElementById("disclaimer4").innerHTML = langObj.disclaimer4;
|
||
|
}
|