Package org.apache.felix.webconsole.i18n
Class LocalizationHelper
- java.lang.Object
-
- org.apache.felix.webconsole.i18n.LocalizationHelper
-
public class LocalizationHelper extends Object
The localization helper is supposed to be used from the bundle info providers. It will allow them to provide locale-specific names and descriptions of the bundle information entries.- Author:
- Valentin Valchev
-
-
Constructor Summary
Constructors Constructor Description LocalizationHelper(org.osgi.framework.Bundle bundle)
Creates a new helper instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceBundle
getResourceBundle(Locale locale)
Used to retrieve the resource bundle for the specified locale.
-
-
-
Method Detail
-
getResourceBundle
public ResourceBundle getResourceBundle(Locale locale)
Used to retrieve the resource bundle for the specified locale.- Parameters:
locale
- the requested locale.- Returns:
- the resource bundle (could be empty, but never
null
)
-
-