This commit is contained in:
Victor Shcherb 2016-11-20 22:57:55 +01:00
parent b164ca0dd6
commit e721c68976

View file

@ -707,7 +707,7 @@ public class OsmandApplication extends MultiDexApplication {
} else { } else {
lang = Locale.getDefault().getLanguage(); lang = Locale.getDefault().getLanguage();
} }
if (lang != null && lang.length() > 2) { if (lang != null && lang.length() > 3) {
lang = lang.substring(0, 2).toLowerCase(); lang = lang.substring(0, 2).toLowerCase();
} }
return lang; return lang;