Class I18NResourceBundlesLoader
- java.lang.Object
-
- com.atlassian.confluence.util.i18n.I18NResourceBundlesLoader
-
public class I18NResourceBundlesLoader extends Object
Simulates the behaviour of ResourceBundle.getBundle() and searches for all bundles for a locale from most specific to least specific
-
-
Constructor Summary
Constructors Constructor Description I18NResourceBundlesLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,ResourceBundle>
getResourceBundles(I18NResource i18NResource, Locale locale)
Get resource bundles keyed by locale.
-
-
-
Field Detail
-
NOLOCALE
public static final String NOLOCALE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getResourceBundles
public static Map<String,ResourceBundle> getResourceBundles(I18NResource i18NResource, Locale locale)
Get resource bundles keyed by locale. For example: Map: {en_GB -> ResourceBundle} {en -> ResourceBundle} {<NOLOCALE> -> ResourceBundle}- Parameters:
i18NResource
-locale
-
-
-