L20n/Features/String keys

< L20n‎ | Features
Revision as of 13:16, 28 February 2012 by Gandalf (talk | contribs) (Created page with "== goal == enable hash keys to be strings. == example == <pre> <cityList { "New York": "Nowy Jork", "Vienna": "Wiedeń", "Abu Dhabi": "Abu Dabi", *other: "{{ cityName }}"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

goal

enable hash keys to be strings.

example

<cityList {
  "New York": "Nowy Jork",
  "Vienna": "Wiedeń",
  "Abu Dhabi": "Abu Dabi",
 *other: "{{ cityName }}"
}>

that would allow a localizer to localize the city name if possible and fallback to the default name if not:

<userCity "Twoje miasto to {{ :cityList[cityName] }}">

status

  • open, there seem to be little to no implications on the syntax, so we may want to enable it.
  • gandalf - accepted
  • pike, stas - ?