Page MenuHomePhabricator

Make UnicodePluralValidator more strict
Closed, ResolvedPublic2 Estimated Story Points

Description

While reviewing translation imports, I noticed some incorrect plural translations have went through: https://translatewiki.net/w/i.php?title=Wikimedia:Wikipedia-android-strings-search_results_count/dag&action=edit&oldid=12052045

It seems dga doesn't have plural rules in CLDR, so the current code skips all the validations. We can improve that to only skip some validations.

See also https://github.com/wikimedia/apps-android-wikipedia/pull/4304/commits/c8604ab13790c81166e1c012691473ccdaf15089

Event Timeline

Change 979052 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[mediawiki/extensions/Translate@master] Make UnicodePluralValidator stricter

https://gerrit.wikimedia.org/r/979052

Nikerabbit set the point value for this task to 2.

Change 979052 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Make UnicodePluralValidator stricter

https://gerrit.wikimedia.org/r/979052