Uploaded image for project: 'Webservices REST Module'
  1. Webservices REST Module
  2. RESTWS-671

RelationshipType: support localization

    XMLWordPrintable

Details

    • Story
    • Status: Closed
    • TBD
    • Resolution: Fixed
    • None
    • 2.20.0
    • None
    • None
    • Undetermined

    Description

      For most standard metadata, we support localization of names via messages.properties using the pattern:

      ui.i18n.EncounterType.name.5C16E1D6-8E73-47E4-A861-D6AAC03E2224=Disposition

      However, relationships are slightly more complicated, because they have two names--the name for the aIsToB relationship and the name for the bIsToA relationship.

      I suggest supporting this via the following format:

      ui.i18n.RelationshipType.aIsToB.5C16E1D6-8E73-47E4-A861-D6AAC03E2224=Parent
      ui.i18n.RelationshipType.bIsToA.5C16E1D6-8E73-47E4-A861-D6AAC03E2224=Child

      I propose adding two new properties, "displayAIsToB" and "displayBIstoA" that search for a localization in the above format and uses it if it exists, but otherwise just returns aIsToB or bIsToA.

      Ideally, I'd guess it should be something like:

      aIsToB.name
      aIsToB.display

      But this would mean promoting aIsToB from a string to an object, and would break backwards compatbility.

      raff darius fyi

      Gliffy Diagrams

        Attachments

          Activity

            People

              mogoodrich Mark Goodrich
              mogoodrich Mark Goodrich
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: