Class ResourceBundlesCollector
java.lang.Object
com.atlassian.confluence.util.i18n.ResourceBundlesCollector
Class that:
- takes a map of resource bundles (keyed by locale) or single resource bundles
- sorts them by locale
- combines all bundles keyed by the same locale into one CombinedResourceBundle
- and returns a list of CombinedResourceBundles in the correct locale order (most specific locales come first. e.g. fr_FR -> fr -> <NOLOCALE>)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBundle
(ResourceBundle bundle) Adds a resource bundle that is not tied to any particular localevoid
addBundles
(Map<String, ResourceBundle> bundlesByLocale)
-
Constructor Details
-
ResourceBundlesCollector
public ResourceBundlesCollector()
-
-
Method Details
-
addBundle
Adds a resource bundle that is not tied to any particular locale- Parameters:
bundle
- resource bundle to add
-
addBundles
-
getCombinedResourceBundles
-