Versions Compared

Key

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

...

At startup, Magnolia creates a global message bundle by reading keys from all .properties files of all modules in the current project. The global bundle is a virtual bundle, not a physical file. It includes keys from your module and keys from Magnolia's own modules such as ui-admincentral and ui-framework.

This means that you don't do not need to provide keys for all UI elements in your app. Keys for commonly reused elements such as buttons and subapps are in Magnolia's own modules. Just reuse the UI element in your app and Magnolia will find the existing key automatically. In simple terms, the shorter the form of the key, the more places it will be applicable to.

Example: The contact edit form has two buttons: Save Changes and Cancel:

The Contacts app doesn't  does not provide the text for either button in its own message bundle. They are provided in the module-ui-framework-messages_en.properties file of the UI-Framework module.

...