Lines Matching refs:locale
134 String locale = data.getExtras().getString(NewLocaleDialog.INTENT_EXTRA_LOCALE); in onActivityResult() local
135 if (locale != null && locale.length() > 0) { in onActivityResult()
141 customLocales = locale; in onActivityResult()
143 customLocales += CUSTOM_LOCALES_SEP + locale; in onActivityResult()
153 getString(R.string.added_custom_locale_1s, locale), in onActivityResult()
161 checkLocaleInList(locale); in onActivityResult()
164 changeSystemLocale(locale); in onActivityResult()
215 for (String locale : locales) { in setupLocaleList()
216 if (locale != null && locale.length() > 0) { in setupLocaleList()
217 Locale loc = new Locale(locale); in setupLocaleList()
218 data.add(new LocaleInfo(locale, loc.getDisplayName())); in setupLocaleList()
228 for (String locale : customLocales.split(CUSTOM_LOCALES_SEP)) { in setupLocaleList()
229 if (locale != null && locale.length() > 0) { in setupLocaleList()
230 Locale loc = new Locale(locale); in setupLocaleList()
232 locale, in setupLocaleList()
253 private void changeSystemLocale(String locale) { in changeSystemLocale() argument
254 if (ChangeLocale.changeSystemLocale(locale)) { in changeSystemLocale()
256 getString(R.string.select_locale_1s, locale), in changeSystemLocale()
267 if (config.locale != null) { in displayCurrentLocale()
269 config.locale.toString(), in displayCurrentLocale()
270 config.locale.getDisplayName()); in displayCurrentLocale()
273 checkLocaleInList(config.locale.toString()); in displayCurrentLocale()
283 private void checkLocaleInList(String locale) { in checkLocaleInList() argument
289 if (code != null && code.equals(locale)) { in checkLocaleInList()
389 for (String locale : oldLocales.split(CUSTOM_LOCALES_SEP)) { in removeCustomLocale()
390 if (locale != null && locale.length() > 0 && !locale.equals(localeToRemove)) { in removeCustomLocale()
394 sb.append(locale); in removeCustomLocale()
424 public LocaleInfo(String locale, String displayName, boolean isCustom) { in LocaleInfo() argument
425 mLocale = locale; in LocaleInfo()
430 public LocaleInfo(String locale, String displayName) { in LocaleInfo() argument
431 this(locale, displayName, false /*custom*/); in LocaleInfo()