/** * Returns the locale that's used when creating or comparing subformats. * * @return the locale used when creating or comparing subformats * @stable ICU 3.0 */ public Locale getLocale() { return messageFormat.getLocale(); }
/** * Returns the locale that's used when creating or comparing subformats. * * @return the locale used when creating or comparing subformats * @stable ICU 3.0 */ public Locale getLocale() { return messageFormat.getLocale(); }
/** * If a class loader is not passed in, I will only be able to fetch ResourceBundles that * are reachable from MY class loader. This is due to a bug in ResourceBundle that * goes up the stack only 2 levels in order to find the appropriate class loader. * Since I provide a level of indirection, I will ALWAYS be the callee, and therefore * at the 2nd level. * See source for ResourceBundle.getBundle() ResourceBundle.getLoader(). * * @param baseName */ public void init(String baseName, ClassLoader classLoader) { rb = ResourceBundle.getBundle(baseName, mf.getLocale(), classLoader); }
/** * If a class loader is not passed in, I will only be able to fetch ResourceBundles that * are reachable from MY class loader. This is due to a bug in ResourceBundle that * goes up the stack only 2 levels in order to find the appropriate class loader. * Since I provide a level of indirection, I will ALWAYS be the callee, and therefore * at the 2nd level. * See source for ResourceBundle.getBundle() ResourceBundle.getLoader(). * * @param baseName */ public void init(String baseName, ClassLoader classLoader) { rb = ResourceBundle.getBundle(baseName, mf.getLocale(), classLoader); }
/** * If a class loader is not passed in, I will only be able to fetch ResourceBundles that * are reachable from MY class loader. This is due to a bug in ResourceBundle that * goes up the stack only 2 levels in order to find the appropriate class loader. * Since I provide a level of indirection, I will ALWAYS be the callee, and therefore * at the 2nd level. * See source for ResourceBundle.getBundle() ResourceBundle.getLoader(). * * @param baseName */ public void init(String baseName, ClassLoader classLoader) { rb = ResourceBundle.getBundle(baseName, mf.getLocale(), classLoader); }
/** * {@icu} Returns the locale that's used when creating or comparing subformats. * * @return the locale used when creating or comparing subformats * @stable ICU 3.2 */ public ULocale getULocale() { return ULocale.forLocale(messageFormat.getLocale()); }
/** * {@icu} Returns the locale that's used when creating or comparing subformats. * * @return the locale used when creating or comparing subformats * @stable ICU 3.2 */ public ULocale getULocale() { return ULocale.forLocale(messageFormat.getLocale()); }