| Constructor and Description |
|---|
Translate(String stringResources,
Class<T> enumClass) |
| Modifier and Type | Method and Description |
|---|---|
LocalizedString |
localize(T toTranslate) |
LocalizedString |
localize(T toTranslate,
String... params) |
LocalizedString |
localize(T toTranslate,
String[] specialParams,
String separator,
int position,
String... params)
Creates a
LocalizedString that can contain one list of unknown length
that gets inserted as a single String, with separator as specified, into
the regular translate parameters at a given position. |
public LocalizedString localize(T toTranslate)
public LocalizedString localize(T toTranslate, String... params)
public LocalizedString localize(T toTranslate, String[] specialParams, String separator, int position, String... params)
LocalizedString that can contain one list of unknown length
that gets inserted as a single String, with separator as specified, into
the regular translate parameters at a given position.toTranslate - The translation keyspecialParams - The list to be inserted into the parametersseparator - The separator to use between each element in the listposition - The position within the regular parameters at which to insert the list-string (zero indexed)params - The parameters to apply to the translationLocalizedStringCopyright © 2013. All Rights Reserved.