public class ActionDefinitionKeyGenerator extends AbstractAppKeyGenerator<ActionDefinition>
APP
Constructor and Description |
---|
ActionDefinitionKeyGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
keysFor(List<String> keys,
ActionDefinition actionDefinition,
AnnotatedElement el)
Will generate keys for the message bundle in the following form
<app-name>. |
addKey, addKey, fieldOrGetterName, getAncestorKeyGenerators, getAncestors, getIdOrNameForUnknownRoot, getIdOrNameForUnknownRoot, getIdWithoutModuleName, getKeyGenerator, getModuleName, getParentViaCast, getRoot, getRootKeyGenerator, keyify, keyify, keysFor, messageBundleNameFor, resolveMessageBundleNameUpwards
protected void keysFor(List<String> keys, ActionDefinition actionDefinition, AnnotatedElement el)
<app-name>.<sub-app-name>.actions.<action-name>[.name of getter or field annotated with I18nText
]
.
Also generates "default" keys for all actions. Still unique keys for those actions are generated in case one wants to override the default ones. For example, if your app has a commit action defined like this /modules/my-module/apps/my-app/subApps/detail/actions/commit
a fallback key will in the form actions.commit
will be generated besides a my-module.detail.actions.commit
key.
keysFor
in class info.magnolia.i18nsystem.AbstractI18nKeyGenerator<ActionDefinition>
Copyright © 2019 Magnolia International Ltd.. All rights reserved.