Update utility.tscript

fix for languageMap paths and extension
This commit is contained in:
Sir-Skurpsalot 2025-12-12 20:34:08 -07:00 committed by GitHub
parent d80e0aeef4
commit 6470b91d0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -182,11 +182,11 @@ function addLanguage(%langTable, %filename, %alias)
{ {
// generate an .lso file and if a languageMap file does not exist, it as well // generate an .lso file and if a languageMap file does not exist, it as well
%needLangMap = true; %needLangMap = true;
if(isFile("data/UI/langs/languageMap")) if(isFile("./langs/languageMap"))
%needLangMap = false; %needLangMap = false;
CompileLanguage("data/UI/langs/"@ %filename @".txt", %needLangMap); CompileLanguage("./langs/"@ %filename @".tscript", %needLangMap);
%langTable.addLanguage("data/UI/langs/"@ %filename @".lso", %alias); %langTable.addLanguage("./langs/"@ %filename @".lso", %alias);
} }
function switchLanguage(%language) //use here the #n as it's the order of inclusion function switchLanguage(%language) //use here the #n as it's the order of inclusion