diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java index df80ad82e..f5b203587 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java @@ -568,6 +568,11 @@ public class LocUtils { } if ( null == lang ) { lang = Locale.getDefault().getLanguage(); + // sometimes I get "en-us" in this case, i.e. the locale's + // there too. Strip it. + if ( lang.contains( "-" ) ) { + lang = TextUtils.split(lang, "-")[0]; + } } s_curLang = lang; }