Lines Matching refs:language
104 * the German language (de) in Switzerland (CH). If you want to only
223 * // default (English language, United States)
242 * // German language
859 * locale's language, script, country, and variant are all empty strings,
862 * specified locale (language, script, country and variant) and appended to
866 * baseName + "_" + language + "_" + script + "_" + country + "_" + variant
867 * baseName + "_" + language + "_" + script + "_" + country
868 * baseName + "_" + language + "_" + script
869 * baseName + "_" + language + "_" + country + "_" + variant
870 * baseName + "_" + language + "_" + country
871 * baseName + "_" + language
878 * including script are omitted. For example, a locale with language "de"
890 * original variant. For example, for a locale with language "en", script
2149 * respectively represent non-empty language, script, country, and
2151 * <code>Locale</code> that has non-empty values only for language and
2153 * language value is "xx". For all cases, <code>Locale</code>s whose
2169 * up to language, then append candidates generated from the
2202 * language "zh" (Chinese) and an empty script value, either "Hans" (Simplified) or
2228 * Nynorsk. When a locale's language is "nn", the standard candidate
2242 * <p>Also, Java treats the language "no" as a synonym of Norwegian
2245 * has language "no" or "nb", candidate <code>Locale</code>s with
2246 * language code "no" and "nb" are interleaved, first using the
2247 * requested language, then using its synonym. For example,
2311 String language = base.getLanguage();
2319 if (language.equals("no")) {
2327 if (language.equals("nb") || isNorwegianBokmal) {
2340 } else if (language.equals("nn") || isNorwegianNynorsk) {
2350 else if (language.equals("zh")) {
2370 return getDefaultList(language, script, region, variant);
2373 private static List<Locale> getDefaultList(String language, String script, String region, String variant) {
2389 list.add(Locale.getInstance(language, script, region, v, null));
2393 list.add(Locale.getInstance(language, script, region, "", null));
2396 list.add(Locale.getInstance(language, script, "", "", null));
2402 list.add(Locale.getInstance(language, "", region, v, null));
2406 list.add(Locale.getInstance(language, "", region, "", null));
2409 if (language.length() > 0) {
2410 list.add(Locale.getInstance(language, "", "", "", null));
2774 * baseName + "_" + language + "_" + script + "_" + country + "_" + variant
2776 * where <code>language</code>, <code>script</code>, <code>country</code>,
2777 * and <code>variant</code> are the language, script, country, and variant
2811 String language = locale.getLanguage();
2816 if (language == "" && country == "" && variant == "") {
2824 sb.append(language).append('_').append(script).append('_').append(country).append('_').append(variant);
2826 sb.append(language).append('_').append(script).append('_').append(country);
2828 sb.append(language).append('_').append(script);
2832 sb.append(language).append('_').append(country).append('_').append(variant);
2834 sb.append(language).append('_').append(country);
2836 sb.append(language);