Closed Bug 982124 Opened 10 years ago Closed 6 years ago

Output numbers in localized formats

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

defect
Not set
normal

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.
Dup of bug 837480?
Oh, sorry, you mentioned this bug number already…
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...
Blocks: 982137
Blocks: 972967
Actually, the Intl API did not land on FxOS yet. Bug 866301
Depends on: 866301
Blocks: 1121352
(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?
(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.
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
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.