L20n/Features/String keys: Difference between revisions

From MozillaWiki
< L20n‎ | Features
Jump to navigation Jump to search
(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 }}"...")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category:L20n Features|{{SUBPAGENAME}}]][[Category:L20n]]
== goal ==
== goal ==
enable hash keys to be strings.
enable hash keys to be strings.

Latest revision as of 20:09, 7 August 2012


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 - ?