Class DefaultI18N
java.lang.Object
org.codehaus.plexus.i18n.DefaultI18N
- All Implemented Interfaces:
I18N
-
Field Summary
Fields inherited from interface I18N
ACCEPT_LANGUAGE, ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLooks up the value forkeyin theResourceBundlereferenced bybundleName, then formats that value for the specifiedLocaleusingargs.This method returns a ResourceBundle given the bundle name and the Locale information supplied in the HTTP "Accept-Language" header.This method returns a ResourceBundle for the given bundle name and the given Locale.String[]protected final StringgetStringOrNull(ResourceBundle rb, String key) Gets localized text from a bundle if it's there.voidCalled the first time the Service is used.protected void
-
Constructor Details
-
DefaultI18N
public DefaultI18N() -
DefaultI18N
-
-
Method Details
-
getDefaultLanguage
- Specified by:
getDefaultLanguagein interfaceI18N
-
getDefaultCountry
- Specified by:
getDefaultCountryin interfaceI18N
-
getDefaultBundleName
- Specified by:
getDefaultBundleNamein interfaceI18N
-
getBundleNames
- Specified by:
getBundleNamesin interfaceI18N
-
getBundle
-
getBundle
-
getBundle
This method returns a ResourceBundle given the bundle name and the Locale information supplied in the HTTP "Accept-Language" header. -
getBundle
This method returns a ResourceBundle for the given bundle name and the given Locale. -
getLocale
-
getString
-
getString
-
getString
-
format
-
format
-
format
-
format
-
format
Looks up the value forkeyin theResourceBundlereferenced bybundleName, then formats that value for the specifiedLocaleusingargs. -
initialize
public void initialize()Called the first time the Service is used. -
initializeBundleNames
protected void initializeBundleNames() -
getStringOrNull
Gets localized text from a bundle if it's there. Otherwise, returnsnull(ignoring a possibleMissingResourceException).
-