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 do not need 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 apply to.

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

...

Therefore, it is not necessary to insert two specific keys such as the following into the .properties file of the Contacts app:.

Code Block
languagepowershell
titlecontacts-app-messages_en.properties
contacts-app.actions.commit=save changes
contacts-app.actions.cancel=cancel

...