make description of human and robot wordlists in prefs localizable

This commit is contained in:
Eric House 2015-04-02 06:47:35 -07:00
parent 27dde57660
commit 6a74cdba44
2 changed files with 7 additions and 7 deletions

View file

@ -2276,6 +2276,8 @@
<item quantity="other">%1$s (%2$d wordlists)</item> <item quantity="other">%1$s (%2$d wordlists)</item>
</plurals> </plurals>
<string name="dict_desc_fmt">%1$s (%2$s/%3$d words)</string>
<string name="lang_unknown">Unknown</string> <string name="lang_unknown">Unknown</string>
<string name="not_again_dicts">This screen lets you install new <string name="not_again_dicts">This screen lets you install new

View file

@ -135,13 +135,11 @@ public class DictLangCache {
int wordCount = info.wordCount; int wordCount = info.wordCount;
String langName = getLangName( context, dal.name ); String langName = getLangName( context, dal.name );
if ( 0 == wordCount ) { String locName = LocUtils.xlateLang( context, langName );
result = String.format( "%s (%s)", dal.name, langName ); result = LocUtils.getString( context, R.string.dict_desc_fmt,
} else { dal.name, locName,
result = String.format( "%s (%s/%d)", dal.name, langName,
wordCount ); wordCount );
} }
}
return result; return result;
} }