Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-692

Better support for ListProperty internationalization

    Details

    • Similar issues:

      Description

      At first, select lists only supported a predefined list of values to chose from.
      Then, the list of values was extended to support a list of value=name pairs.

      The new implementation allows select list items to be i18n-able.

      The process is as follows:

      1. let V = the internal value of the option, used as the "value" attribute of the <option> element, and D = the displayed value
      2. if a message with the key <fieldFullName>_<V> exists, return it as D
      3. else, if a message with the key <fieldName>_<V> exists, return it as D
      4. else, if a message with the key option_<V> exists, return it as D
      5. else, D can be specified in the values parameter of the property by using V=D
      6. else return V

        Attachments

          Activity

            People

            • Assignee:
              sdumitriu Sergiu Dumitriu
              Reporter:
              sdumitriu Sergiu Dumitriu
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: