|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Role @Unstable public interface TranslationBundle
A collection of translations in various Locales.
| Field Summary | |
|---|---|
static int |
DEFAULTPRIORITY
The default priority of a Bundle. |
| Method Summary | |
|---|---|
String |
getId()
|
int |
getPriority()
When searching for a translation, the bundles are searched in order until one of these bundles contains a value for the searched key. |
Translation |
getTranslation(String key,
Locale locale)
Return the translation for the given key, in the specified Locale. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
static final int DEFAULTPRIORITY
| Method Detail |
|---|
String getId()
int getPriority()
#compareTo(TranslationBundle)
Translation getTranslation(String key,
Locale locale)
Locale. If not translation for the exact
Locale can be found it fallback on the language and then on the default translation if any.
key - the key to translate.locale - the locale to translate into.
Translation or null if none can be found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||