Primary mentor

~bmamlin

Backup mentor

Rafal Korytkowski

Assigned to

Mykola Vorobey

Overview

With use Spring's message taglib for putting strings onto our web pages.  This gives us the ability to translate openmrs very easily.  If you want to put a string into a jsp page into openmrs you put this spring:message in your jsp:

<spring:message code="MyPage.personSearchFieldPrompt" />: <input type="text" value="personId" />

And then you find the messages.properties file and add this:

MyPage.personSearchFieldPrompt=Enter the person id

And if you're bilingual and not too lazy you find the messages_es.properties file and append this:

MyPage.personSearchFieldPrompt=Entra el id de la persona

Now the text can be is displayed automatically in Spanish if the user has set their locale as Spanish.  If the user is in the English locale or any other, they will see the english translation.

Problems:

Solution:

Allow for in-line adding/editing of the translated text.

Design

Extra credit:

See Also

Interested Parties