Closed Bug 1875306 Opened 2 years ago Closed 2 years ago

The underflow and overflow errors do not localize numbers

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: pierov, Assigned: pierov)

Details

Attachments

(1 file)

The underflow and overflow validation messages do not localize numbers, contrarily to the range errors, which instead localizes it.
I think the reason is that the range goes through ConvertNumberToString, whereas the methods creating the other messages call Decimal::toString.

Steps to reproduce:

  1. Set a language that localizes numbers (e.g., ar, fa)
  2. Go to https://arkenfox.github.io/TZP/tests/applang.html
  3. Click on run
  4. Check NumberRangeOverflow, NumberRangeUnderflow and StepMismatch
Severity: -- → S3
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cd7ab7cab97d Localize numbers in the underflow and overflow error messages. r=emilio
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: