L20n/Features/Globals namespace

From MozillaWiki
< L20n‎ | Features
Jump to: navigation, search


variables that will be defined by the system should be available without collisions with user or developer defined values.


We decided to keep "globals" in a separate namespace. Current proposal is to mark them with "@" sign as a prefix.

<title[@os] {
 *win: "Settings",
  lin: "Preferences",
  mac: "Settings"

Other examples of global values might be:

  • os
  • screenWidth
  • languageCode
  • time

The time global may allow the localizer to adjust the message to the time of the day (which often depends on it in case of greetings).


accepted for inclusion