Skip to content

Name catchall plural variants after target locale - #4405

Merged
mathjazz merged 1 commit into
mozilla:mainfrom
mathjazz:4397-plural-catchall
Aug 15, 2026
Merged

mathjazz merged 1 commit into
mozilla:mainfrom
mathjazz:4397-plural-catchall

Conversation

@mathjazz

@mathjazz mathjazz commented Aug 13, 2026 •

Copy link
Copy Markdown
Collaborator

Fix #4397.

The patch fixes an issue surfaced by #4236, although it was caused by older code.

Pretranslation expands a plural selector to the target locale's categories, but left the catchall carrying the source's name, e.g. other from en-US. For a locale whose last category is not other (uk, ru, pl, be) that puts the variants out of sync with the plural fields in the editor.

Check out an example string on DEV:
https://pontoon.allizom.org/uk/firefox/all-resources/?string=317622

Same string on PROD:
https://pontoon.mozilla.org/uk/firefox/all-resources/?string=317622

Pretranslation expands a plural selector to the target locale's
categories, but left the catchall carrying the source's name, e.g.
`other` from en-US. For a locale whose last category is not `other` (uk,
ru, pl, be) that puts the variants out of sync with the plural fields in
the editor.
@mathjazz
mathjazz requested review from eemeli and flodolo August 13, 2026 10:20
@flodolo

flodolo commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

I still see the issue reported in #4398.

Go to this string and click my suggestion
https://pontoon.allizom.org/uk/firefox/all-resources/?string=317622

@mathjazz

Copy link
Copy Markdown
Collaborator Author

I still see the issue reported in #4398.

Go to this string and click my suggestion https://pontoon.allizom.org/uk/firefox/all-resources/?string=317622

Yeah, now I see it clearly. I'll open a separate PR shortly.

@mathjazz
mathjazz merged commit 7cc05fe into mozilla:main Aug 15, 2026
8 checks passed
@mathjazz
mathjazz deleted the 4397-plural-catchall branch August 15, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Complex machinery ignores plural forms available for locale

2 participants