Lines Matching defs:locale
29 private static Locale locale;
40 if (locale == null) locale = Locale.getDefault();
41 resource_bundle = ResourceBundle.getBundle("com/ibm/rbm/resources/RBManager", locale);
43 System.err.println("Missing Resource for default locale, " + Locale.getDefault().toString());
49 * Set the locale to be used when making a query on the resource
52 public static void setLocale(Locale locale) {
54 Resources.locale = locale;
55 Resources.resource_bundle = ResourceBundle.getBundle("com/ibm/rbm/resources/RBManager", locale);
57 System.err.println("Missing Resource for locale, " + locale.toString());
67 if (Resources.locale == null) Resources.initBundle();
68 return Resources.locale;
72 * Returns an array of strings containing the locale encoding (e.g. 'en_US', 'de', etc.)
74 * which unique translation of resource bundle items are possible. If a locale encoding is
146 * Given a locale encoding, returns the language portion of that encoding.
158 * Given a locale encoding, returns the country portion of that encoding.
174 * Given a locale encoding, returns the variant portion of that encoding.
192 * Gets a translation given the currently set locale, a lookup key, and a single lookup item replacement.
209 * Gets a translation given the currently set locale, a lookup key, and zero or more lookup item replacements.