Package info.freelibrary.util
Class I18nObject
- java.lang.Object
-
- info.freelibrary.util.I18nObject
-
- Direct Known Subclasses:
Logger
public class I18nObject extends Object
A generic object with baked-in "default Locale" I18N support. It wraps aResourceBundle
and provides an easy way to get access to internationalized strings.
-
-
Constructor Summary
Constructors Constructor Description I18nObject(String aBundleName)
Constructor for an I18nObject that takes aResourceBundle
name as an argument.I18nObject(String aBundleName, Locale aLocale)
Constructor for an I18nObject that takes aResourceBundle
name as an argument.
-
-
-
Constructor Detail
-
I18nObject
public I18nObject(String aBundleName)
Constructor for an I18nObject that takes aResourceBundle
name as an argument. The name should be something specific to the package that's extending theI18nObject
.- Parameters:
aBundleName
- The name of aResourceBundle
that gets lower cased automatically
-
I18nObject
public I18nObject(String aBundleName, Locale aLocale)
Constructor for an I18nObject that takes aResourceBundle
name as an argument. The name should be something specific to the package that's extending theI18nObject
.- Parameters:
aBundleName
- The name of aResourceBundle
that gets lower cased automaticallyaLocale
- The locale of the desired bundle.
-
-