Lines Matching defs:xmlLang
315 protected static Locale xmlLangToLocale(String xmlLang) {
316 if (xmlLang == null) {
321 int index = xmlLang.indexOf("-");
325 index = xmlLang.indexOf("_");
330 return new Locale(xmlLang, "");
333 String language = xmlLang.substring(0, index);
334 String country = xmlLang.substring(index + 1);
339 String xmlLang = locale.getLanguage();
342 xmlLang += "-" + country;
344 return xmlLang;