diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java index 8477a79c2..abc08c27e 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java @@ -209,6 +209,11 @@ public class DelegateBase implements DlgClickNotify, return LocUtils.getString( m_activity, resID, params ); } + protected String xlateLang( String langCode ) + { + return LocUtils.xlateLang( m_activity, langCode ); + } + protected String getQuantityString( int resID, int quantity, Object... params ) { diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictsDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictsDelegate.java index d2fbea9c8..c36836dbe 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictsDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictsDelegate.java @@ -187,8 +187,9 @@ public class DictsDelegate extends ListDelegateBase int langCode = DictLangCache.getLangLangCode( m_context, langName ); boolean expanded = ! m_closedLangs.contains( langName ); - String locLangName = LocUtils.xlateLang( m_context, langName ); - String name = getQuantityString( R.plurals.lang_name_fmt, info.m_numDicts, + String locLangName = xlateLang( langName ); + String name = getQuantityString( R.plurals.lang_name_fmt, + info.m_numDicts, locLangName, info.m_numDicts ); result = ListGroup.make( m_context, convertView, DictsDelegate.this, groupPos, name, diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java index 34a06f73a..861a14c6b 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java @@ -1920,8 +1920,7 @@ public class GamesListDelegate extends ListDelegateBase public void gotDictInfo( boolean success, String lang, String name ) { if ( success ) { - String locLang = - LocUtils.xlateLang( m_activity, lang ); + String locLang = xlateLang( lang ); String msg = getString( R.string.confirm_get_locdict_fmt, locLang ); diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/PrefsDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/PrefsDelegate.java index f0484be60..a5c1068ef 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/PrefsDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/PrefsDelegate.java @@ -251,7 +251,7 @@ public class PrefsDelegate extends DelegateBase String[] langs = DictLangCache.listLangs( m_activity ); String[] langsLoc = new String[langs.length]; for ( int ii = 0; ii < langs.length; ++ii ) { - langsLoc[ii] = LocUtils.xlateLang( m_activity, langs[ii] ); + langsLoc[ii] = xlateLang( langs[ii] ); } lp.setEntries( langsLoc ); lp.setDefaultValue( langsLoc[0] );