Home | History | Annotate | Download | only in customlocale2

Lines Matching refs:locale

20 import java.util.Locale;
29 * Helper class to change the system locale.
37 * Sets the system locale to the new one specified.
39 * @param locale A locale name in the form "ab_AB". Must not be null or empty.
40 * @return True if the locale was succesfully changed.
42 public static boolean changeSystemLocale(String locale) {
44 Log.d(TAG, "Change locale to: " + locale);
51 Locale loc = null;
53 String[] langCountry = locale.split("_");
55 loc = new Locale(langCountry[0], langCountry[1]);
57 loc = new Locale(locale);
60 config.locale = loc;
72 Log.e(TAG, "Change locale failed", e);