Versions Compared

Key

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

...

Code Block
app-<app-name>-messages_<locale>.properties
<module-name>-messages_<locale>.properties
Info
iconfalse
titleBest practice

Include Page
INCL:_Separate message bundles_bestPractice
INCL:_Separate message bundles_bestPractice

i18n message keys

Each .properties file usually contains one or more key-value pairs that provide the translations for labels, descriptions and other elements:

...

If you open some older properties files in some of the Magnolia modules you will find keys like this:

standard-templating-kit/magnolia-module-standard-templating-kit/src/main/resources/info/magnolia/module/templatingkit/messages_cs.properties
Code Block
languagenone
title
link.readon = P\u0159e\u010d\u00edst

...

  1. In the Log Levels app of the Log Tools Module, set the logging level for TranslationServiceImpl to DEBUG.
  2. Use your app. Open all subapps and dialogs.
  3. In the log, look for messages starting with "Looking up in global i18n message bundle with key..."

...