Lines Matching refs:locale

48      * IETF BCP47</a> language code and the given locale that is appropriate for
50 * For example, if <code>languageCode</code> is "fr" and <code>locale</code>
52 * is "en" and <code>locale</code> is fr_FR, getDisplayLanguage() will return "anglais".
53 * If the name returned cannot be localized according to <code>locale</code>,
58 * @param locale the desired locale
59 * @return the name of the given language code for the specified locale, or null if it's not
61 * @exception NullPointerException if <code>languageCode</code> or <code>locale</code> is null
63 * two or three lower-case letters, or <code>locale</code> isn't
69 public abstract String getDisplayLanguage(String languageCode, Locale locale);
73 * IETF BCP47</a> script code and the given locale that is appropriate for
75 * For example, if <code>scriptCode</code> is "Latn" and <code>locale</code>
77 * is "Cyrl" and <code>locale</code> is fr_FR, getDisplayScript() will return "cyrillique".
78 * If the name returned cannot be localized according to <code>locale</code>,
85 * @param locale the desired locale
86 * @return the name of the given script code for the specified locale, or null if it's not
88 * @exception NullPointerException if <code>scriptCode</code> or <code>locale</code> is null
90 * four title case letters, or <code>locale</code> isn't
97 public String getDisplayScript(String scriptCode, Locale locale) {
104 * codes) and the given locale that is appropriate for display to the user.
105 * For example, if <code>countryCode</code> is "FR" and <code>locale</code>
107 * is "US" and <code>locale</code> is fr_FR, getDisplayCountry() will return "Etats-Unis".
108 * If the name returned cannot be localized according to <code>locale</code>,
114 * @param locale the desired locale
115 * @return the name of the given country code for the specified locale, or null if it's not
117 * @exception NullPointerException if <code>countryCode</code> or <code>locale</code> is null
119 * two upper-case letters or three digit letters, or <code>locale</code> isn't
125 public abstract String getDisplayCountry(String countryCode, Locale locale);
128 * Returns a localized name for the given variant code and the given locale that
130 * If the name returned cannot be localized according to <code>locale</code>,
133 * @param locale the desired locale
134 * @return the name of the given variant string for the specified locale, or null if it's not
136 * @exception NullPointerException if <code>variant</code> or <code>locale</code> is null
137 * @exception IllegalArgumentException if <code>locale</code> isn't
143 public abstract String getDisplayVariant(String variant, Locale locale);