mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-02 20:46:15 +01:00
make description of human and robot wordlists in prefs localizable
This commit is contained in:
parent
27dde57660
commit
6a74cdba44
2 changed files with 7 additions and 7 deletions
|
@ -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
|
||||||
|
|
|
@ -135,12 +135,10 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue