Uploaded image for project: 'UI Framework'
  1. UI Framework
  2. UIFR-93

Allow localization of OpenmrsMetadata via the UI Framework's formatting mechanism

    Details

    • Complexity:
      Medium

      Description

      (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

      uiframework.localization.EncounterType.name.55a0d3ea-a4d7-4e88-8f01-5aceb2d3c61b = Check In
      

        Attachments

          Activity

            People

            • Assignee:
              darius Darius Jazayeri [X] (Inactive)
              Reporter:
              darius Darius Jazayeri [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: