Closed
Bug 787351
Opened 12 years ago
Closed 7 years ago
add l10n support for content scripts
Categories
(Add-on SDK Graveyard :: General, defect, P2)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: irakli, Unassigned)
References
Details
No description provided.
Priority: -- → P1
Comment 1•12 years ago
|
||
That feature is really important for all our greasemonkey-like addons, but there is a real issue in the way how localization works and makes it hard to implement for content scripts.
localization bundle is global per addon. It means that you can only have one properties file per locale. There isn't any partition of localization keys.
It basically means that we can't split localization dictionnary and segregate only the one used in content scripts.
So that if we want to offer localization support in content script, we would also have to load keys in content process. Currently firefox is still monoprocess, but firefox OS already is and there is still some plan around to make Firefox mutlithread (instead of multiprocess).
Adding support for content script localization would also prevent from building a very helpfull feature in cfx: the possiblity to list new/delete localization keys, in order to help localizers to their job. Mainly because we don't really know which files in data/ folder are content script.
Here is the reasons why I haven't jumped working on this.
Having said that, we might be able to add this feature while avoiding issues I just mentioned but it will most likely require much more specification work and some more major changes in the way .properties files are used/defined.
Any help is more than welcomed.
Comment 2•11 years ago
|
||
I'm not sure this should be P1.
While it is a small pain, people can use message passing to pass localized values manually, and a PageMod wrapper could be made in the wild to automate the process in different ways.
OS: Mac OS X → All
Priority: P1 → --
Hardware: x86 → All
Priority: -- → P2
Message Passing for fetching the localized value of each string in the content script severely slows the content script performance.
As such it should be P1
Comment 4•7 years ago
|
||
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•