Versions Compared

Key

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

...

Note

You need to list your messages.properties file in your config.xml file in "messages" elements. 

Prefixing with your module's id

Typically they keys you define in a module's messages.properties file should start with your module's id, and any keys that do not start with your module's id will have it prepended.

For example:

Code Block

title = My Module
# will be converted to mymodule.title = My Module

Starting in OpenMRS 1.9.3 you are allowed to override this behavior, and let your module define message keys outside of its namespace. To do this, you need to include an entry in the properties file like:

Code Block

ALLOW_KEYS_OUTSIDE_OF_MODULE_NAMESPACE = true

Example

The main english file should be named messages.properties.  Each other language will be messages_fr.properties (for french)

...