public class I18N
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
I18N()
Para permitir la extensión de la clase, el constructor se define como protegido.
|
Modifier and Type | Method and Description |
---|---|
static I18N |
getInstance()
Permite recuperar el unico objeto instanciable de la clase
|
static java.lang.String |
getLanguage()
Get the short signature for language (letters extension :language 2 letters)
|
static java.util.Locale |
getLocale()
Devuelve el locale asignado a las propiedades
|
static java.lang.String |
getLocaleString()
Get the short signature for locale (letters extension :language 2 letters + "_" + country 2
letters)
|
static java.lang.String |
getMessage(java.lang.Class<?> obj,
java.lang.String label,
java.lang.Object[] objects)
Build a string from object class and append label to it.
|
static java.lang.String |
getMessage(java.lang.String label,
java.lang.Object[] objects)
Process text with the locale 'kosmo_
|
static java.lang.String |
getMessage(java.lang.String pluginClassName,
java.lang.String label,
java.lang.Object[] objects)
Process text with the locale 'pluginName_
|
static java.lang.String |
getString(java.lang.Class<?> obj,
java.lang.String label)
Build a string from class object and append label to it.
|
static java.lang.String |
getString(java.lang.String label) |
static java.lang.String |
getString(java.lang.String pluginClassName,
java.lang.String label)
Process text with the locale 'pluginName_
|
protected I18N()
public static I18N getInstance()
public static java.lang.String getString(java.lang.String label)
public static java.lang.String getString(java.lang.Class<?> obj, java.lang.String label)
getString(String)
obj
- the object from what the string is to be builtlabel
- public static java.lang.String getLocaleString()
public static java.util.Locale getLocale()
public static java.lang.String getLanguage()
public static java.lang.String getMessage(java.lang.String label, java.lang.Object[] objects)
label
- with argument insertion : {0}objects
- public static java.lang.String getMessage(java.lang.Class<?> obj, java.lang.String label, java.lang.Object[] objects)
getMessage(String, Object[])
obj
- the object from what the string is to be builtlabel
- with argument insertion : {0}objects
- public static java.lang.String getString(java.lang.String pluginClassName, java.lang.String label)
pluginClassName
- (path + name)label
- public static java.lang.String getMessage(java.lang.String pluginClassName, java.lang.String label, java.lang.Object[] objects)
pluginClassName
- (path + name)label
- with argument insertion : {0}objects
-