Closed
Bug 982124
Opened 11 years ago
Closed 7 years ago
Output numbers in localized formats
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Firefox OS Graveyard
Gaia::System
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: rimas, Unassigned)
References
()
Details
(Keywords: l12y, Whiteboard: DUPEME)
Regardless of the locale in use, all Gaia applications currently output numbers in "computer" (US) format, that is, any floating point number will look like 123456.789.
That is not the right format for many locales. Considering that since v29, Gecko supports Intl.NumberFormat(), I would suggest to format numbers using that method by default.
This bug is somewhat similar to bug 837480, but that one seems to suggest to allow localizers to format numbers. Here I'm proposing to employ what's already in the platform.
Comment 1•11 years ago
|
||
Dup of bug 837480?
Comment 2•11 years ago
|
||
Oh, sorry, you mentioned this bug number already…
Reporter | ||
Comment 3•11 years ago
|
||
Here's a quick list of places that should use localized number formats:
* FM radio (wavelength indicator)
* Settings application (application storage and media storage, perhaps also the list of downloads and some other places)
* Amounts in Cost Control
And I'm sure there are lots of other places that I missed...
Comment 4•11 years ago
|
||
Actually, the Intl API did not land on FxOS yet. Bug 866301
Depends on: 866301
Reporter | ||
Comment 5•10 years ago
|
||
(In reply to Zibi Braniecki [:gandalf][:zibi] from comment #4)
> Actually, the Intl API did not land on FxOS yet. Bug 866301
It has been marked as fixed a few hours ago. I suppose this means we can proceed here?
Comment 6•10 years ago
|
||
(In reply to Rimas Kudelis from comment #5)
> (In reply to Zibi Braniecki [:gandalf][:zibi] from comment #4)
> > Actually, the Intl API did not land on FxOS yet. Bug 866301
>
> It has been marked as fixed a few hours ago. I suppose this means we can
> proceed here?
I think we need at least a few days to see if it sticks, considering how big that changeset is.
Comment 7•10 years ago
|
||
We're close to landing the L20n file format in bug 1027684 which will allow us to start expose Intl's methods like NumberFormat to localizers.
Depends on: 1027684
Comment 8•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•