@DefaultKey(value="l10n")
public class LocalizationTool
extends org.apache.velocity.tools.generic.ResourceTool
ResourceBundle
and formatting messages therein.Constructor and Description |
---|
LocalizationTool() |
Modifier and Type | Method and Description |
---|---|
Object |
get(Object code,
String[] resourceNamePrefixes,
Object locale) |
protected ResourceBundle |
getBundle(String baseName,
Object loc)
To be able to load resource bundles outside the class path we need to override this method
|
static ResourceBundle |
getDefaultResourceBundle() |
void |
setLocale(Locale locale)
Its need to override base class method to be able to change its locale property outside the
class hierarchy
|
bundle, configure, get, get, get, getDefaultBundle, getDefaultLocale, getKeys, getKeys, getKeys, insert, insert, insert, insert, locale, render, setDefaultBundle, setDefaultLocale, setDeprecationSupportMode
public void setLocale(Locale locale)
setLocale
in class org.apache.velocity.tools.generic.LocaleConfig
LocaleConfig.setLocale(Locale locale)
public static ResourceBundle getDefaultResourceBundle()
protected ResourceBundle getBundle(String baseName, Object loc)
getBundle
in class org.apache.velocity.tools.generic.ResourceTool
ResourceTool.getBundle(java.lang.String,
java.lang.Object)
Copyright © 2024 OpenMRS Inc.. All rights reserved.