Closed
Bug 1673539
Opened 4 years ago
Closed 4 years ago
Fluent NUMBER() function: style="percent" has a different display between Firefox and the Fluent playground
Categories
(Core :: Internationalization: Localization, defect)
Core
Internationalization: Localization
Tracking
()
RESOLVED
FIXED
84 Branch
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: Yoric, Assigned: zbraniecki)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
percent = { NUMBER(1, style: "percent") }
Displays 100%
in the fluent playground and 1%
in Firefox.
Comment 1•4 years ago
|
||
Not sure if this belongs to Core::Internationalization, the subcomponent Localization, or a GH issue :-\
Component: General → Internationalization: Localization
Product: Localization Infrastructure and Tools → Core
Updated•4 years ago
|
Component: Internationalization: Localization → Internationalization
Summary: style="percent" has a different display between Firefox and the Fluent playground → Fluent NUMBER() function: style="percent" has a different display between Firefox and the Fluent playground
Assignee | ||
Updated•4 years ago
|
Component: Internationalization → Internationalization: Localization
Assignee | ||
Comment 2•4 years ago
|
||
This is a bug from migration to Rust, and as we fix it, we should use Preferences::General Default Zoom to validate the fix.
Assignee | ||
Comment 3•4 years ago
|
||
The fix is quite trivial - just divide/round by 100 in https://searchfox.org/mozilla-central/source/intl/l10n/FluentBundle.cpp#229-231
Assignee | ||
Comment 4•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Pushed by zbraniecki@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b299574ca450
Multiply by 100 when using style percent in Fluent. r=dminor
Comment 6•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox84:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•