public class I18nItem0 extends I18nItem
A class that implements multi-locale resource without formatting
arguments, to be used together with I18nHandler
subclasses.
See package info for a usage example.
Constructor and Description |
---|
I18nItem0(LocalizedMessage... data)
The public constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
s()
The method to obtain a message in a locale that is best preferred for
the current user.
|
String |
toString()
A "bonus"
toString() override to return a
message in user specific locale in case of no formatting arguments and no
I18nItemInContext0 -style context. |
getBestLanguage, getBestLocaleAndMessage, getBestLocaleTag, obtainMessageFormat
public I18nItem0(LocalizedMessage... data)
data
- a varargs array of translations for a message to various
localespublic String s()
public String toString()
toString()
override to return a
message in user specific locale in case of no formatting arguments and no
I18nItemInContext0
-style context.