Closed
Bug 1130285
Opened 9 years ago
Closed 9 years ago
[l10n] Numbers are not formatted correctly for dsb, hsb
Categories
(www.mozilla.org :: L10N, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: flod, Assigned: pmac)
Details
(Whiteboard: [kb=1654682] )
Attachments
(1 file)
https://www.mozilla.org/hsb/ https://www.mozilla.org/dsb/ Numbers are formatted the "English way", with commas as thousands separator. I assume this is a limitation in babel? https://github.com/mozilla/bedrock/blob/master/lib/l10n_utils/helpers.py#L9
Reporter | ||
Updated•9 years ago
|
Summary: Numbers are not formatted correctly for dsb, hsb → [l10n] Numbers are not formatted correctly for dsb, hsb
Comment 1•9 years ago
|
||
Hello Francesco, thank you for filing the bug.
Assignee | ||
Comment 2•9 years ago
|
||
Looks like you're right. It's possible that's configurable, or we may need to update babel. I'll check it out. Thanks.
Assignee | ||
Comment 3•9 years ago
|
||
Looks like even latest version of Babel doesn't know anything about hsb or dsb. Babel [0] gets its data from the CLDR (Unicode Common Locale Data Repository) [1]. If we know that hsb and/or dsb follow the number formatting rules of another locale we do have, we should be able to map it for bedrock and make it work. [0] http://babel.pocoo.org/docs/ [1] http://cldr.unicode.org/
Reporter | ||
Comment 4•9 years ago
|
||
CLDR does have dsb/hsb, but it seems to be introduced in version 26. Available http://www.unicode.org/cldr/charts/26/by_type/numbers.number_formatting_patterns.html#53687a25c19b6481 Missing http://www.unicode.org/cldr/charts/25/by_type/numbers.number_formatting_patterns.html#53687a25c19b6481 I think German should be the natural fallback for dsb/hsb. Michael, is that correct?
Flags: needinfo?(milupo)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → pmac
Assignee | ||
Updated•9 years ago
|
Whiteboard: [kb=1654682]
Assignee | ||
Comment 6•9 years ago
|
||
Comment 7•9 years ago
|
||
Babel seems to be using cldr 23.1, would it make sense to maybe make an upstream patch to have them use 26?
Comment 8•9 years ago
|
||
Commits pushed to master at https://github.com/mozilla/bedrock https://github.com/mozilla/bedrock/commit/64c4f177580495fc1704e78e7f41fa2833ff6613 Fix bug 1130285: Treat hsb/dsb locales as de for number formatting. https://github.com/mozilla/bedrock/commit/01db764178854a1e410d6c6bb55ad1b7002fab70 Merge pull request #2711 from pmclanahan/fix-dsb-hsb-number-formatting-1130285 Fix bug 1130285: Treat hsb/dsb locales as de for number formatting.
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 9•9 years ago
|
||
(In reply to Pascal Chevrel:pascalc from comment #7) > Babel seems to be using cldr 23.1, would it make sense to maybe make an > upstream patch to have them use 26? That would be a nice thing to do. We're fairly behind in our version of Babel anyway. There appear to be 2 new versions of Bable set to be released (1.4 and 2.0) [0]. Maybe one or both of them will have that lib updated. [0] http://babel.pocoo.org/docs/changelog/
Comment 10•9 years ago
|
||
It works for www-dev.allizom.org/hsb resp. www-dev.allizom.org/dsb now but not for www.mozill.org/hsb bzw. www.mozilla.org/dsb
Reporter | ||
Comment 11•9 years ago
|
||
That's expected. Changes are pushed to production periodically, but not on Fridays. It should be available next week on mozilla.org
Comment 12•9 years ago
|
||
Thank you, Francesco, for the information.
Comment 13•9 years ago
|
||
Thank you, it works for mozilla.org as well.
You need to log in
before you can comment on or make changes to this bug.
Description
•