Wiki Spaces

Documentation
Projects
Resources

Get Help from Others

Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack

Documentation

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor typos

...

  1. Within the OpenMRS project in Transifex, create a new resource (click on "Resource" -> "Add New Resource")
  2. Choose the the Upload File option and upload the messages.properties file for your module (file format is Java properties file - Unicode). Click Create Resource.
  3. One Once the resource has been created, click on the resource (it will probably be called messages.properties) and then click Settings to give it a more intelligent name (ie, Html Form Entry Module) and slug (ie, htmlformentry-module)
  4. Configure the module to be updateable via the Transifex command-line client:
    1. Install the Transifex client and set up the .transifexrc configuration file as specified here: http://docs.transifex.com/developer/client/setup

    2. Create a new directory .tx off the top-level module directory with a single file named "config" wit with the following content (replace htmlformentry-module with the slug you chose for your module in step #3):
      [main]
      host = https://www.transifex.com/

      [OpenMRS.htmlformentry-module]
      source_file = api/src/main/resources/messages.properties
      source_lang = en
      trans.fr = api/src/main/resources/messages_fr.properties
      trans.ht = api/src/main/resources/messages_ht.properties

    3. Add a "trans" line to the above file for each language that you are supporting.
    4. Add this new file and directory to git and push it up.
  5. If you have any existing translations for the module, push these translations up to Transifex via executing the following Transifex client command at the command line: "tx push -tf"
  6. Set up Transifex to automatically update the messages.properties file from github nightly:
    1. Click on the "Auto Update Resources" button from the resources view
    2. Add the URL of the messages.properties file on Git Hub (ie, https://github.com/openmrs/openmrs-module-htmlformentry/blob/master/api/src/main/resources/messages.properties

...