(This is PIH Mirebalais story #239.)
At present OpenMRS core doesn't provide a mechanism for localizing metadata, however in Mirebalais we're going to need to localize things like encounter types and forms so that they can have different names in French, Creole, and English.
My plan is to change FormatterImpl (easily used all over the place as "ui.format(...)", so that when you format any OpenmrsMetadata, it first looks to see if there is a message code defined for "uiframework.localization.(shortclassname).name.uuid". If there is one, we return that, otherwise we return the OpenmrsMetadata's "name" property.
So for example in the Mirebalais module where we distribute a metadata sharing package with an EncounterType for "check in", we can also include a message property like