Correct locales logic to get some kind of ISO 639-3 support, update pom, make ja_ryu appear (unfortunately as 'Japanese' language and not as 'Central Okinawan')

This commit is contained in:
Dmitry Isaenko 2022-10-11 17:04:55 +03:00
parent 9aa4551ef0
commit 8b23b8967b
5 changed files with 15 additions and 15 deletions

View file

@ -32,7 +32,7 @@ public class AppPreferences {
private AppPreferences(){
this.preferences = Preferences.userRoot().node("NS-USBloader");
String localeCode = preferences.get("locale", Locale.getDefault().toString());
this.locale = new Locale(localeCode.substring(0, 2), localeCode.substring(3, 5));
this.locale = new Locale(localeCode.substring(0, 2), localeCode.substring(3));
}
public String getTheme(){