de.fho.jump.pirol.utilities.i18n
Class I18NPlug

java.lang.Object
  extended by 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.


Field Summary
static boolean jumpi18n
           
protected static PersonalLogger logger
           
 
Constructor Summary
I18NPlug()
           
 
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
 

Field Detail

logger

protected static PersonalLogger logger

jumpi18n

public static boolean jumpi18n
Constructor Detail

I18NPlug

public I18NPlug()
Method Detail

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