Closed
Bug 520152
Opened 16 years ago
Closed 16 years ago
[Collector Extension] Handle plurals in Added string in add-on listing (TB2)
Categories
(addons.mozilla.org Graveyard :: Collector Extension, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
BW-1.1
People
(Reporter: kinger, Assigned: mackers)
References
Details
This temp code explains it the best:
if (!Bandwagon.Util.isTB2())
{
Components.utils.import("resource://gre/modules/PluralForm.jsm");
let [get, numForms] = PluralForm.makeGetter(this.stringBundle.GetStringFromName("bandwagon.addon.pluralRule"));
datestr = get(sbVal, this.stringBundle.formatStringFromName(sbString, [sbVal], 1));
}
els{
datestr = "Added";
}
The let statement is problematic, but the most important thing here is that PluralForm.jsm is not available to us here.
Comment 1•16 years ago
|
||
I guess this predates the hallway conversation between Brian and I, you should probably just ship PluralForm.js as part of collector and use that.
Either conditionally or not.
Reporter | ||
Updated•16 years ago
|
Assignee: brian → dave
Assignee | ||
Comment 2•16 years ago
|
||
Tried in vain to get PluralForm.jsm imported (via C.u.import and mozIJSSubScriptLoader), but without success.
Finally, I backported the guts of the PluralForm stuff to a BW module "Bandwagon.Util.PluralForm" that is used when the env. is TB2.
Working fine for English. By extension should work for other languages.
r53260.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Component: Collections → Collector Extension
Updated•16 years ago
|
QA Contact: collections → collector-extension
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•