Small Cleanup

This commit is contained in:
NeeEoo
2024-04-10 19:07:54 +02:00
parent 244fddc3c7
commit 4f4a2c5e6a
@@ -124,15 +124,15 @@ class TranslationUtil
if(Assets.exists(path)) {
config = IniUtil.parseAsset(path, config);
langName = config["name"];
} else { // if there was no config.ini, use the file name as the language name
for(file in Paths.getFolderContent(mainPath + lang).sortAlphabetically()) {
if(Path.extension(path = '$lang/$file') == "xml") {
config["name"] = (langName = Path.withoutExtension(file));
config["name"] = Path.withoutExtension(file);
break;
}
}
}
langName = config["name"];
nameMap.set(lang, langName);
langConfigs.set(lang, config);
foundLanguages.push('$lang/$langName');