Home | History | Annotate | Download | only in res

Lines Matching refs:locale

24 import java.util.Locale;
50 * Return a named ResourceBundle for a particular locale. This method mimics the behavior
54 * @param locale the locale to prefer when searching for the bundle
57 String className, Locale locale) throws MissingResourceException
60 String suffix = getResourceSuffix(locale);
66 // first try with the given locale
68 return (XResourceBundle) ResourceBundle.getBundle(resourceName, locale);
78 XSLT_RESOURCE, new Locale("en", "US"));
92 * Return the resource file suffic for the indicated locale
96 * @param locale the locale
99 private static final String getResourceSuffix(Locale locale)
102 String lang = locale.getLanguage();
103 String country = locale.getCountry();
104 String variant = locale.getVariant();
105 String suffix = "_" + locale.getLanguage();