code:
function setLang(sLanguage) {
Print(Script.Name + " " + Script.Version + "'s language is \"" + sLanguage + "\""); // if undefined: first-time run
if(!FileExists(MsgPlus.ScriptFilesPath + "\\Language\\" + sLanguage + ".js")) {
sLanguage = MsgPlus.UILangCode;
if(!FileExists(MsgPlus.ScriptFilesPath + "\\Language\\" + sLanguage + ".js")) {
sLanguage = "en";
}
}
LanguageLoaded = MsgPlus.LoadScriptFile(MsgPlus.ScriptFilesPath + "\\Language\\" + sLanguage + ".js");
Print(LanguageLoaded,PRIOR_NORMAL);
if(!LanguageLoaded) {
EnglishLoaded = MsgPlus.LoadScriptFile(MsgPlus.ScriptFilesPath + "\\Language\\en.js");
Print(EnglishLoaded,PRIOR_NORMAL);
}
Print(sLanguage,PRIOR_IMPORTANT);
Language();
}
code:
// nl.js
var DayVar = new Array();
var DVar = new Array();
var MonthArray = new Array();
var LngStr = new Array();
Language();
function Language() {
(chunk of code)
}
EDIT::
Hey, the [code /] seems to support tabs now