Issue Details (XML | Word | Printable)

Key: XWIKI-692
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Sergiu Dumitriu
Reporter: Sergiu Dumitriu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XWiki Core

Better support for ListProperty internationalization

Created: 07/Jan/07 06:58   Updated: 07/Jan/07 07:25
Component/s: Core, Templates & User Interface
Affects Version/s: None
Fix Version/s: 1.0 B2

Resolution Date: 07/Jan/07 07:25


 Description  « Hide
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


 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Sergiu Dumitriu added a comment - 07/Jan/07 07:25
Fixed in rev. 1902