java.lang.Object
com.googlecode.lanterna.bundle.BundleLocator
- Direct Known Subclasses:
LocalizedUIBundle
This class permits to deal easily with bundles.
- Author:
- silveryocha
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetBundleKeyValue(Locale locale, String key, Object... parameters) Method that centralizes the way to get the value associated to a bundle key.
-
Constructor Details
-
BundleLocator
Hidden constructor.- Parameters:
bundleName- the name of the bundle.
-
-
Method Details
-
getBundleKeyValue
Method that centralizes the way to get the value associated to a bundle key.- Parameters:
locale- the locale.key- the key searched for.parameters- the parameters to apply to the value associated to the key.- Returns:
- the formatted value associated to the given key. Empty string if no value exists for the given key.
-