Lines Matching refs:language
46 private String language = "";
59 public InternalLocaleBuilder setLanguage(String language) throws LocaleSyntaxException {
60 if (LocaleUtils.isEmpty(language)) {
61 this.language = "";
63 if (!LanguageTag.isLanguage(language)) {
64 throw new LocaleSyntaxException("Ill-formed language: " + language, 0);
66 this.language = language;
346 * Reset Builder's internal state with the given language tag
351 language = langtag.getExtlangs().get(0);
355 language = lang;
377 String language = base.getLanguage();
385 if (language.equals("ja") && region.equals("JP") && variant.equals("JP")) {
392 else if (language.equals("th") && region.equals("TH") && variant.equals("TH")) {
399 else if (language.equals("no") && region.equals("NO") && variant.equals("NY")) {
401 // The build ignores the variant "NY" and change the language to "nn".
402 language = "nn";
409 if (language.length() > 0 && !LanguageTag.isLanguage(language)) {
410 throw new LocaleSyntaxException("Ill-formed language: " + language);
430 this.language = language;
467 language = "";
489 String language = this.language;
524 return BaseLocale.getInstance(language, script, region, variant);