Page History
...
- The key for the
title
property is created automatically by Magnolia, you do not have to provide it. In fact Magnolia will recognize two keys, one with module name and one without it:
foobar.templates.pages.dilberts-page
templates.pages.dilberts-page
- Line 5: If desired, you can assign a custom key.
...
Code Pro | ||||||
---|---|---|---|---|---|---|
| ||||||
@I18nable(keyGenerator = RenderableDefinitionKeyGenerator.class) public interface RenderableDefinition extends NamedDefinition { String getId(); @Override String getName(); String getRenderType(); @I18nText String getTitle(); @I18nText String getDescription(); @Deprecated String getI18nBasename(); String getTemplateScript(); Map<String, RenderableDefinition> getVariations(); } |
- Line 1:
annotation specifies the key generator class.Javadoc 0 info.magnolia.i18nsystem.I18nable - Lines 11, 14:
annotation marks methods that return text which should be translated.Javadoc 0 info.magnolia.i18nsystem.I18nText
...
Overview
Content Tools