diff --git a/xwords4/android/XWords4/archive/R.java b/xwords4/android/XWords4/archive/R.java index b2ebacbd7..69290144a 100644 --- a/xwords4/android/XWords4/archive/R.java +++ b/xwords4/android/XWords4/archive/R.java @@ -1420,6 +1420,7 @@ public final class R { */ public static final int lang_label=0x7f0600c6; public static final int lang_name_fmt=0x7f0602c1; + public static final int lang_unknown=0x7f0602c2; public static final int langdict_label=0x7f0600c7; public static final int list_group_default=0x7f06026c; public static final int list_group_delete=0x7f06026a; diff --git a/xwords4/android/XWords4/res/values/common_rsrc.xml b/xwords4/android/XWords4/res/values/common_rsrc.xml index dc0bc240d..a9884b8fe 100644 --- a/xwords4/android/XWords4/res/values/common_rsrc.xml +++ b/xwords4/android/XWords4/res/values/common_rsrc.xml @@ -214,7 +214,7 @@ - + @string/lang_unknown English French German diff --git a/xwords4/android/XWords4/res/values/strings.xml b/xwords4/android/XWords4/res/values/strings.xml index 63cfab092..f4be87e46 100644 --- a/xwords4/android/XWords4/res/values/strings.xml +++ b/xwords4/android/XWords4/res/values/strings.xml @@ -2268,4 +2268,6 @@ (None) Downloadable %1$s (%2$d wordlists) + + Unknown diff --git a/xwords4/android/XWords4/res_src/values-ba_CK/strings.xml b/xwords4/android/XWords4/res_src/values-ba_CK/strings.xml index e88c31ecf..77709cddf 100644 --- a/xwords4/android/XWords4/res_src/values-ba_CK/strings.xml +++ b/xwords4/android/XWords4/res_src/values-ba_CK/strings.xml @@ -1941,4 +1941,5 @@ )Enon( Elbadaolnwod %1$s (%2$d )stsildrow + Nwonknu diff --git a/xwords4/android/XWords4/res_src/values-ca_PS/strings.xml b/xwords4/android/XWords4/res_src/values-ca_PS/strings.xml index f08f497e4..4330147c1 100644 --- a/xwords4/android/XWords4/res_src/values-ca_PS/strings.xml +++ b/xwords4/android/XWords4/res_src/values-ca_PS/strings.xml @@ -1941,4 +1941,5 @@ (NONE) DOWNLOADABLE %1$s (%2$d WORDLISTS) + UNKNOWN diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictLangCache.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictLangCache.java index 6b2487fa3..bae7d9382 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictLangCache.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictLangCache.java @@ -184,7 +184,11 @@ public class DictLangCache { DictAndLoc[] dals = DictUtils.dictList( context ); for ( DictAndLoc dal : dals ) { DictInfo info = getInfo( context, dal ); - if ( null != info && code == info.langCode ) { + int langCode = info.langCode; + if ( langCode >= s_langNames.length ) { + langCode = 0; + } + if ( null != info && code == langCode ) { al.add( dal ); } }