What is the problem?
When language x does not have a translation and falls-back to language y, the plural rules for language x are still applied, even if not appropriate for language y.
For example, in Belarusian numbers like 21, 31, 41, etc. count as singular. If you watch a page for 21 days, the watchlist-expiring-days-full-text message incorrectly tells you 1 day left... because that is the English translation's singular variant of that message.
Steps to reproduce problem
- Watch a page for 21 days (e.g. https://en.wikipedia.beta.wmflabs.org/wiki/Special:ApiSandbox#action=watch&format=json&expiry=21%20days&titles=Foobar)
- Go to Special:Preferences and change your language to be - беларуская
- Visit the page you just watched and hover over the watch star
Expected behavior: Tooltip says "21 days left..."
Observed behavior: Tooltip says "1 day left..."
Environment
Browser: Firefox 78 and Chrome 87
Wiki(s): https://en.wikipedia.beta.wmflabs.org MediaWiki 1.36.0-alpha (77e1b24) 10:00, 23 лістапада 2020
Derived Requirement
Ensure that when a language falls back to another language's translation, the plural rules used are those of the fallback language, not the original language.
Test Steps
Test Case 1: Ensure fallback translation uses fallback language's plural rules
- Watch any page using the API with an expiry of 21 days (e.g., https://en.wikipedia.beta.wmflabs.org/wiki/Special:ApiSandbox#action=watch&format=json&expiry=21%20days&titles=Foobar).
- Go to #Special:Preferences and set your interface language to Belarusian (беларуская).
- Visit the watched page.
- Hover over the watch star icon.
- ✅❓❌⬜ AC1: Confirm that the tooltip correctly says "21 days left..." using plural rules from English (fallback language), not Belarusian.
Test Case 2: Ensure fallback pluralization applies consistently for other fallback cases
- Repeat the above steps but use a different duration such as 22 or 25 days.
- Observe the tooltip text each time.
- ✅❓❌⬜ AC2: Confirm that plural forms from the fallback language (English) are applied consistently for each number, regardless of the original language’s plural rules.
QA Results - Test Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T268492#10793960 |
| 2 | ✅ | T268492#10793960 |


