Class CmsRemoveInnerNameFallback

java.lang.Object
org.opencms.i18n.CmsRemoveInnerNameFallback
All Implemented Interfaces:
CmsMultiMessages.I_KeyFallbackHandler, I_CmsRegexSubstitution

Message key fallback handler used to enable reuse of localization keys for editor labels.

This handler, when given a key of the form label.foo.bar (starting with 'label' and containing at least three dot-separated components), removes the second component (in the example, this results in the key label.bar).

This can be useful if you want to reuse the same key for fields of multiple content types.