Closed Bug 1533688 Opened 6 years ago Closed 6 years ago

Sync DevTools plural-form.js with intl/PluralForm.jsm

Categories

(DevTools :: General, enhancement, P2)

enhancement

Tracking

(firefox67 fixed, firefox68 fixed)

RESOLVED FIXED
Firefox 68
Tracking Status
firefox67 --- fixed
firefox68 --- fixed

People

(Reporter: flod, Assigned: flod)

References

Details

Attachments

(1 file)

DevTools has a copy of PluralFors.jsm in

https://searchfox.org/mozilla-central/rev/b2d35912da5b2acecb0274eb113777d344ffb75e/devtools/shared/plural-form.js

The problem is that nobody is maintaining, and it gets out of sync (looks like I was the last one to touch in bug 1441146).

Thanks Francesco. Julian is on PTO until the end of this week I believe, so he'll be able to review this once he gets back. Sorry about the delay.

Priority: -- → P2

We should get this in 67, and I'd like to avoid requesting for uplift to beta. Can someone else take the review this week?

See Also: → 1536379
Pushed by flodolo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f0bfe6ecffc8 Sync DevTools plural-form.js with intl/PluralForm.jsm (add rule #19) r=jdescottes
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68

Comment on attachment 9049469 [details]
Bug 1533688 - Sync DevTools plural-form.js with intl/PluralForm.jsm (add rule #19)

Beta/Release Uplift Approval Request

  • Feature/Bug causing the regression: None
  • User impact if declined: Plural strings in some languages (Russian is the most notable one) will use the incorrect form. While this code is not covered by tests, the same change done to the general /intl module is.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Only affecting 3 locales, and only for the DevTools portion.
  • String changes made/needed: None
Attachment #9049469 - Flags: approval-mozilla-beta?

(In reply to Francesco Lodolo [:flod] from comment #6)

Comment on attachment 9049469 [details]
Bug 1533688 - Sync DevTools plural-form.js with intl/PluralForm.jsm (add rule #19)

Beta/Release Uplift Approval Request

  • Feature/Bug causing the regression: None
  • User impact if declined: Plural strings in some languages (Russian is the most notable one) will use the incorrect form. While this code is not covered by tests, the same change done to the general /intl module is.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Only affecting 3 locales, and only for the DevTools portion.
  • String changes made/needed: None

Flod, the patch adds support for "// 19: Bosnian, Croatian, Serbian" while the uplift request mentions Russian as a notable target, just making sure that the uplift does include what's actually needed.

Flags: needinfo?(francesco.lodolo)

(In reply to Pascal Chevrel:pascalc from comment #7)

Flod, the patch adds support for "// 19: Bosnian, Croatian, Serbian" while the uplift request mentions Russian as a notable target, just making sure that the uplift does include what's actually needed.

Sorry, for some reason my brain shuffled things around (we removed those 3 locales from the Russian rule).

While the impact of these 3 locales is much smaller, we should still be uplifting, because the code fall backs to rule 0 (Chinese) if the plural rule is out of bounds
https://hg.mozilla.org/mozilla-central/file/f0bfe6ecffc8/devtools/shared/plural-form.js#l129

So, English text with plurals would fall back to the single case.

Flags: needinfo?(francesco.lodolo)

Comment on attachment 9049469 [details]
Bug 1533688 - Sync DevTools plural-form.js with intl/PluralForm.jsm (add rule #19)

Fix for plurals in our l10n library, small and well understood patch already verified in Nightly, approved for beta 5, thanks.

Attachment #9049469 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: