de.fho.jump.pirol.utilities.i18n
Class I18NPlug
java.lang.Object
de.fho.jump.pirol.utilities.i18n.I18NPlug
public final class I18NPlug
- extends java.lang.Object
Class taken from the RasterImage-i18N PlugIn of Jan Ruzicka (jan.ruzicka@vsb.cz) and modified for PIROL.
|
Method Summary |
static java.lang.String |
get(java.lang.String pluginName,
java.lang.String label)
Process text with the locale 'pluginName_.properties' file |
static java.lang.String |
getMessage(java.lang.String pluginName,
java.lang.String label,
java.lang.Object[] objects)
Process text with the locale 'pluginName_.properties' file |
static void |
setPlugInRessource(java.lang.String pluginName,
java.lang.String bundle)
Set plugin I18N resource file
Tries to use locale set in command line (if set) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static PersonalLogger logger
jumpi18n
public static boolean jumpi18n
I18NPlug
public I18NPlug()
setPlugInRessource
public static void setPlugInRessource(java.lang.String pluginName,
java.lang.String bundle)
- Set plugin I18N resource file
Tries to use locale set in command line (if set)
- Parameters:
pluginName - (path + name)bundle - reference of the bundle file
get
public static java.lang.String get(java.lang.String pluginName,
java.lang.String label)
- Process text with the locale 'pluginName_.properties' file
- Parameters:
pluginName - (path + name)label -
- Returns:
- i18n label
getMessage
public static java.lang.String getMessage(java.lang.String pluginName,
java.lang.String label,
java.lang.Object[] objects)
- Process text with the locale 'pluginName_.properties' file
- Parameters:
pluginName - (path + name)label - with argument insertion : {0}objects -
- Returns:
- i18n label