@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 |
---|---|
java.lang.Object |
get(java.lang.Object code,
java.lang.String[] resourceNamePrefixes,
java.lang.Object locale) |
protected java.util.ResourceBundle |
getBundle(java.lang.String baseName,
java.lang.Object loc)
To be able to load resource bundles outside the class path we need to override this method
|
static java.util.ResourceBundle |
getDefaultResourceBundle() |
void |
setLocale(java.util.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(java.util.Locale locale)
setLocale
in class org.apache.velocity.tools.generic.LocaleConfig
LocaleConfig.setLocale(Locale locale)
public static java.util.ResourceBundle getDefaultResourceBundle()
protected java.util.ResourceBundle getBundle(java.lang.String baseName, java.lang.Object loc)
getBundle
in class org.apache.velocity.tools.generic.ResourceTool
ResourceTool.getBundle(java.lang.String,
java.lang.Object)
public java.lang.Object get(java.lang.Object code, java.lang.String[] resourceNamePrefixes, java.lang.Object locale)
get
in class org.apache.velocity.tools.generic.ResourceTool
ResourceTool.get(java.lang.Object, java.lang.String[],
java.lang.Object)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.