mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 09:59:49 -05:00
add language version check
This commit is contained in:
1 parent
81015a1fb5
commit
856cc47f39
1 file changed
+4
-4
@@ -73,14 +73,14 @@ public class TextManager {
|
||||
if (localOverrideFile.exists()) {
|
||||
override.loadFromString(Util.readToString(localOverrideFile));
|
||||
for (String key : override.getKeys(true)) {
|
||||
if(key.equals("language-version"))
|
||||
if (key.equals("language-version"))
|
||||
continue;
|
||||
configuration.set(key, override.get(key));
|
||||
}
|
||||
}
|
||||
Util.debugLog("Locale: " + availableLanguage + " has been successfully loaded.");
|
||||
|
||||
|
||||
Util.debugLog("Locale: " + availableLanguage + " has been successfully loaded.");
|
||||
if (configuration.getInt("language-version") < bundledLang.getInt("language-version"))
|
||||
Util.debugLog("Locale " + availableLanguage + " file version is outdated, some string will fallback to English.");
|
||||
} catch (CrowdinOTA.OTAException e) {
|
||||
plugin.getLogger().warning("Couldn't update the translation for locale " + availableLanguage + " because it not configured, please report to QuickShop");
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in new issue
Block a user