public final class TextI18n extends Object implements I18nResource
I18nResource
which uses an underlying text as the real
value, ignoring any kind of internationalization.Modifier and Type | Method and Description |
---|---|
String |
text(Locale locale,
Object... arguments)
Get the localized text for the supplied locale, replacing the parameters in the text with those supplied.
|
String |
text(Object... arguments)
Get the localized text for the
current (default) locale , replacing the parameters in the text
with those supplied. |
public TextI18n(String text)
public String text(Object... arguments)
I18nResource
current (default) locale
, replacing the parameters in the text
with those supplied.text
in interface I18nResource
arguments
- the arguments for the parameter replacement; may be null
or emptypublic String text(Locale locale, Object... arguments)
I18nResource
text
in interface I18nResource
locale
- the locale, or null
if the current (default) locale
should be usedarguments
- the arguments for the parameter replacement; may be null
or emptyCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.