Closed
Bug 1036632
Opened 12 years ago
Closed 11 years ago
Document the fact that count is used as a placeholder when placeholders dne in sdk/l10n
Categories
(Add-on SDK Graveyard :: Documentation, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: evold, Unassigned)
Details
The documentation for the l10n module don't make it clear that if `_("blah", 2)` is used and the blah key takes placeholders then the 2 will be used as a count and a placeholder variable.
We have tests that this is the case already, but I don't see documentation for this atm.
| Reporter | ||
Comment 1•12 years ago
|
||
Basically the `count` argument is used as the count and as a placeholder in some of our tests like this one:
https://github.com/mozilla/addon-sdk/blob/master/test/addons/l10n/locale/fr-FR.properties#L14
https://github.com/mozilla/addon-sdk/blob/master/test/addons/l10n/main.js#L79-L81
I didn't notice this mentioned in https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/l10n#Plurals
Updated•12 years ago
|
Priority: -- → P2
| Reporter | ||
Comment 2•11 years ago
|
||
This is mentioned here https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/l10n#Plural_Forms_in_the_SDK
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•