Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Use

Javadoc
0info.magnolia.i18nsystem.I18nable
and
Javadoc
0info.magnolia.i18nsystem.I18nText
for custom definition classes which should be i18n-ized.

For (warning) For all methods annotated with

Javadoc
0info.magnolia.i18nsystem.I18nText
@I18nText(fallback = "") is used if no translation is found (Magnolia 6.2.1+).

Code Block
languagejava
    /**
     * 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;

...