|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.cjdbc.common.i18n.I18N
This class defines a I18N
| Constructor Summary | |
I18N()
|
|
| Method Summary | |
static java.lang.String |
get(java.util.ResourceBundle bundle,
java.lang.String key)
Returns associated sentence to that key |
static java.lang.String |
get(java.util.ResourceBundle bundle,
java.lang.String key,
boolean parameter)
Returns translated key with instanciated parameters |
static java.lang.String |
get(java.util.ResourceBundle bundle,
java.lang.String key,
int parameter)
Returns translated key with instanciated parameters |
static java.lang.String |
get(java.util.ResourceBundle bundle,
java.lang.String key,
long parameter)
Returns translated key with instanciated parameters |
static java.lang.String |
get(java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object parameter)
Same as above but implies creation of an array for the parameter |
static java.lang.String |
get(java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object[] parameters)
Replace REPLACE_CHAR in the translated message with
parameters. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public I18N()
| Method Detail |
public static java.lang.String get(java.util.ResourceBundle bundle,
java.lang.String key)
key - the key to find in the translation filebundle - then translation bundle to use
public static java.lang.String get(java.util.ResourceBundle bundle,
java.lang.String key,
boolean parameter)
bundle - then translation bundle to usekey - the key to find in translation file.parameter - the parameter value
public static java.lang.String get(java.util.ResourceBundle bundle,
java.lang.String key,
int parameter)
bundle - then translation bundle to usekey - the key to find in translation file.parameter - the parameter value
public static java.lang.String get(java.util.ResourceBundle bundle,
java.lang.String key,
long parameter)
bundle - then translation bundle to usekey - the key to find in translation file.parameter - the parameter value
public static java.lang.String get(java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object[] parameters)
REPLACE_CHAR in the translated message with
parameters. If you have more parameters than charaters to replace,
remaining parameters are appended as a comma separated list at the end of
the message.
bundle - then translation bundle to usekey - the key to find in the translation fileparameters - to put inside square braquets
public static java.lang.String get(java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object parameter)
bundle - then translation bundle to usekey - to translateparameter - to put in translation
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||