Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel2

messageUtils.pl

Overview

messageUtils.pl is a simple perl script which can be helpful in managing messages.properties files.  It provides two basic features:

...

Feel free to send any feedback to mgoodrich@pih.org, but also please cc the developer's list.

messageUtils.groovy

Overview

A Groovy message utility for comparing message codes to codes used within source code.

  • Scans a specified message bundle (defaults to main message.properties bundle) and source code, listing out both unused message codes (in bundle, not in code) and missing message codes (in code, but not in message bundle).

Download here.

Usage

No Format
usage: Usage: messageUtils.groovy [options] /path/to/folder/with/messages/
              /path/to/openmrs/source/
 -h,--help              Show this help information
 -l,--locale <locale>   Specify locale for messages to be scanned
 -m,--missing-only      Only list missing message codes (used in source,
                        but not defined)
 -s,--summary           Show summary stats
 -u,--unused-only       Only list unused message codes (defined, but never
                        used in source)

Feedback

E-mail to the OpenMRS Developers list.