...
- Line 1:
Javadoc |
---|
0 | info.magnolia.i18nsystem.I18nable |
---|
|
annotation specifes specifies the key generator class. - Lines 11, 14:
Javadoc |
---|
0 | info.magnolia.i18nsystem.I18nText |
---|
|
annotation marks methods that return text which should be translated.
Info |
---|
Use Javadoc |
---|
0 | info.magnolia.i18nsystem.I18nable |
---|
| and Javadoc |
---|
0 | info.magnolia.i18nsystem.I18nText |
---|
| for custom definition classes which should be i18n-ized. |
For all methods annotated with
Javadoc |
---|
0 | info.magnolia.i18nsystem.I18nText |
---|
|
, @I18nText(fallback = "")
is used if no translation is found (Magnolia 6.2.1+). Code Block |
---|
|
/**
* Without {@link #fallback()} explicitly specified, {@link info.magnolia.i18nsystem.TranslationServiceImpl} use the longest i18n key if translation key is not found as fallback.
*/
String NO_FALLBACK = "<no-fallback>";
/**
* @return Value to be used if no translation is found.
*/
String fallback() default NO_FALLBACK; |
SimpleTranslator – using i18n in Java classes
...