Merge "Capitalize the names of languages in the dictionary picker."
commit
30a7315878
|
@ -70,7 +70,7 @@ public class InputLanguageSelection extends PreferenceActivity {
|
||||||
for (int i = 0; i < mAvailableLanguages.size(); i++) {
|
for (int i = 0; i < mAvailableLanguages.size(); i++) {
|
||||||
CheckBoxPreference pref = new CheckBoxPreference(this);
|
CheckBoxPreference pref = new CheckBoxPreference(this);
|
||||||
Locale locale = mAvailableLanguages.get(i).locale;
|
Locale locale = mAvailableLanguages.get(i).locale;
|
||||||
pref.setTitle(locale.getDisplayName(locale));
|
pref.setTitle(toTitleCase(locale.getDisplayName(locale)));
|
||||||
boolean checked = isLocaleIn(locale, languageList);
|
boolean checked = isLocaleIn(locale, languageList);
|
||||||
pref.setChecked(checked);
|
pref.setChecked(checked);
|
||||||
parent.addPreference(pref);
|
parent.addPreference(pref);
|
||||||
|
|
Loading…
Reference in New Issue