Labs/Jetpack/Reboot/JEP/113: Difference between revisions

From MozillaWiki
< Labs‎ | Jetpack‎ | Reboot‎ | JEP
Jump to navigation Jump to search
(Created page with '== JEP 113 - Localization == * Champion: Zbigniew Braniecki - gandalf@mozilla.com * Type: ? * Bug Ticket: * Status: ? === Proposal === Implement a set of API's allowing for je…')
 
No edit summary
Line 32: Line 32:
* more API may be hooked into other API's depending on what we want
* more API may be hooked into other API's depending on what we want
* locale(ab-CD) - switch locale
* locale(ab-CD) - switch locale
=== Interdependencies ===
* [[Labs/Jetpack/Reboot/JEP/102|JEP 102 - Single UI Element]]
* [[Labs/Jetpack/Reboot/JEP/103|JEP 103 - Panel]]
* [[Labs/Jetpack/Reboot/JEP/107|JEP 107 - Page Mods]]
* [[Labs/Jetpack/Reboot/JEP/112|JEP 112 - Context Menu]]

Revision as of 23:47, 5 February 2010

JEP 113 - Localization

  • Champion: Zbigniew Braniecki - gandalf@mozilla.com
  • Type: ?
  • Bug Ticket:
  • Status: ?

Proposal

Implement a set of API's allowing for jetpack localization


Key Issues

  • Is L10n part of a core?
  • How do we load/store files?
  • Do we hook l10n into other API's or do we provide separate methods only?
  • can we bind variables?

Dependencies & Requirements

  • byte loading
  • local urls


Internal Methods

API Methods

  • addReference(url) - adds a l10n file for a locale
  • getValue(l10n_id(, {params})) - loads an entity value
  • bindEntity(l10n_id, params) - binds entity to a set of variables. Makes an entity value update when one of params changes
  • more API may be hooked into other API's depending on what we want
  • locale(ab-CD) - switch locale

Interdependencies