Home | History | Annotate | Download | only in configuration

Lines Matching defs:Locale

31 public class Locale {
38 * A locale which matches any language and region
40 public static final Locale ANY = new Locale(ANY_QUALIFIER);
43 * The locale qualifier, or {@link #ANY_QUALIFIER} if this locale matches
44 * any locale
50 * Constructs a new {@linkplain Locale} matching a given language in a given
51 * locale.
53 * @param locale the locale
55 private Locale(@NonNull
56 LocaleQualifier locale) {
57 qualifier = locale;
61 * Constructs a new {@linkplain Locale} matching a given language in a given
62 * specific locale.
64 * @param locale the locale
65 * @return a locale with the given locale
68 public static Locale create(@NonNull
69 LocaleQualifier locale) {
70 return new Locale(locale);
74 * Constructs a new {@linkplain Locale} for the given folder configuration
77 * @return a locale with the given language and region
79 public static Locale create(FolderConfiguration folder) {
80 LocaleQualifier locale = folder.getLocaleQualifier();
81 if (locale == null) {
84 return new Locale(locale);
89 * Constructs a new {@linkplain Locale} for the given locale string, e.g.
92 * @param localeString the locale description
93 * @return the corresponding locale
96 public static Locale create(@NonNull
98 // Load locale. Note that this can get overwritten by the
103 return new Locale(qualifier);
110 * Returns a flag image to use for this locale
131 * Returns true if this locale specifies a specific language. This is true
134 * @return true if this locale specifies a specific language
141 * Returns true if this locale specifies a specific region
143 * @return true if this locale specifies a region
150 * Returns the locale formatted as language-region. If region is not set,
174 Locale other = (Locale) obj;