Package com.axelor.i18n
Class I18nBundle
java.lang.Object
java.util.ResourceBundle
com.axelor.i18n.I18nBundle
The database backed
ResourceBundle
that loads translations from the axelor database.-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
-
Field Summary
Fields inherited from class java.util.ResourceBundle
parent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) static String
Returns the messages hash for the given locale.getKeys()
protected Object
handleGetObject
(String key) static void
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, keySet, setParent
-
Constructor Details
-
I18nBundle
-
-
Method Details
-
handleGetObject
- Specified by:
handleGetObject
in classResourceBundle
-
handleKeySet
- Overrides:
handleKeySet
in classResourceBundle
-
getKeys
- Specified by:
getKeys
in classResourceBundle
-
containsKey
- Overrides:
containsKey
in classResourceBundle
-
getHash
Returns the messages hash for the given locale.- Parameters:
locale
- the locale- Returns:
- the messages hash
-
invalidate
public static void invalidate()
-