Class TeamAppsResourceBundleControl
java.lang.Object
java.util.ResourceBundle.Control
org.teamapps.ux.i18n.TeamAppsResourceBundleControl
Handles UTF-8 resource bundles (properties files only).
Makes fallback locale explicitly configurable.
-
Field Summary
Fields inherited from class java.util.ResourceBundle.Control
FORMAT_CLASS, FORMAT_DEFAULT, FORMAT_PROPERTIES, TTL_DONT_CACHE, TTL_NO_EXPIRATION_CONTROL -
Constructor Summary
ConstructorsConstructorDescriptionTeamAppsResourceBundleControl(String resourceFileSuffix, Locale fallbackLocale) -
Method Summary
Modifier and TypeMethodDescriptiongetCandidateLocales(String baseName, Locale locale) getFallbackLocale(String baseName, Locale locale) newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) Methods inherited from class java.util.ResourceBundle.Control
getControl, getFormats, getNoFallbackControl, getTimeToLive, needsReload, toBundleName, toResourceName
-
Constructor Details
-
TeamAppsResourceBundleControl
-
-
Method Details
-
newBundle
public ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IOException - Overrides:
newBundlein classResourceBundle.Control- Throws:
IOException
-
getFallbackLocale
- Overrides:
getFallbackLocalein classResourceBundle.Control
-
getCandidateLocales
- Overrides:
getCandidateLocalesin classResourceBundle.Control
-