Skip to content

Commit 856cc47

Browse files
committed
add language version check
1 parent 81015a1 commit 856cc47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/maxgamer/quickshop/util/language/text/TextManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ public void load() {
7373
if (localOverrideFile.exists()) {
7474
override.loadFromString(Util.readToString(localOverrideFile));
7575
for (String key : override.getKeys(true)) {
76-
if(key.equals("language-version"))
76+
if (key.equals("language-version"))
7777
continue;
7878
configuration.set(key, override.get(key));
7979
}
8080
}
81-
Util.debugLog("Locale: " + availableLanguage + " has been successfully loaded.");
82-
83-
81+
Util.debugLog("Locale: " + availableLanguage + " has been successfully loaded.");
82+
if (configuration.getInt("language-version") < bundledLang.getInt("language-version"))
83+
Util.debugLog("Locale " + availableLanguage + " file version is outdated, some string will fallback to English.");
8484
} catch (CrowdinOTA.OTAException e) {
8585
plugin.getLogger().warning("Couldn't update the translation for locale " + availableLanguage + " because it not configured, please report to QuickShop");
8686
} catch (IOException e) {

0 commit comments

Comments
 (0)