Closed
Bug 897877
Opened 12 years ago
Closed 9 years ago
Global @cldr namespace, @cldr.plural macro
Categories
(L20n :: General, defect)
L20n
General
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
Next
People
(Reporter: Pike, Unassigned)
Details
I'd propose to add another global, to expose cldr data.
Notably, I'd use that namespace to expose the upstream plural forms.
When I hacked the plural forms manually, inbetween($n, $start, $end) was a nice helper. Not sure if there's a good place to host those.
Comment 1•12 years ago
|
||
I'm not convinced that exposing this data as a global is the right way to go.
It seems to me that it shouldn't be up to the platform nor the developer to decide to include the cldr data or not. Instead, the localizers should have the liberty to make use of the cldr LOL files available on github or some other place. If they want to use them, they copy and import the file in their localization.
This probably means that we should educate localizers to make sure the software they localize displays the Unicode license where appropriate.
Comment 2•12 years ago
|
||
We discussed this proposal and I'm also leaning against @cldr global.
The reason being that we cannot promise to ship with "all" cldr plurals and that creates unpredictability. Localizer doesn't know if the production will have plural for his locale or not, and even if he knows (we don't ship with silesian for example) he's treated differently as he has to embed his own.
My proposal is that we create a repo with cldr per language and link it in shared/locales/cldr and then localizers can just
@import (shared/locales/cldr/ab-CD.l20n)
if they want to use cldr.
Comment 3•12 years ago
|
||
We currently don't support any form of namespacing in the identifier names. Would we want that? (e.g. <cldr:plural …>) Or can we just go for the standard <cldr_plural …> or <cldrPlural …>?
Comment 4•12 years ago
|
||
I would go for cldr_plural.
Updated•12 years ago
|
Target Milestone: --- → Next
Comment 5•9 years ago
|
||
This bug is about the old L20n syntax which was replaced by the FTL syntax in Spring 2016.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•