Within each module, you will find the file
web/cfg/war/bundle/messages.properties. This file is a ResourceBundle containing externalized labels for user interface text. The idea behind ResourceBundles is that all static text appearing in your user interface should be externalized into a properties file. You can then provide multiple versions of this property file to support translations into multiple languages.
Your internationalized labels can be accessed in one of the three ways:
Java code can access these values explicitly via com.onenetwork.platform.tools.i18n.MessageBundle. For example:
The later technique is more performant than the Labels.get() technique. But the later technique also has a limitation, the replacement key can not be determined dynamically.
These values will not be replaced when serving the scripts.
The Platform itself may automatically look-up labels using well-known Label Patterns. For example, Platform provides a feature which shows a list of available actions for a list of selected models. This action list will be internationalized using the Label Pattern
meta.actions.modeltype.actionname, for example
meta.actions.ZBKS.Book.ZBKS.Publish. You can find out more about Label Patterns below.
Any time you make changes to your messages.properties, you can see these changes take effect in the UI after executing the ant target
deploy-and-reload-bundle. (You may have to refresh the browser window to see the change.)