The issue exists on fawiki and bnwiki (production and betalabs).
- Go to Special:Homepage.
- When the page loads, the Arabic numerals will be displayed before switching to the wiki correct numerals.
Etonkovidova | |
Feb 11 2021, 1:13 AM |
F34100122: fa_SE_arabic_numerals2.gif | |
Feb 11 2021, 1:13 AM |
The issue exists on fawiki and bnwiki (production and betalabs).
Like the other tasks linked, the solution is to use mw.language.convertNumber() before outputting the number, and also to ensure that mediawiki.language is defined as a resource loader dependency for the relevant module in extension.json.
Change 663683 had a related patch set uploaded (by Mepps; owner: Mepps):
[mediawiki/extensions/GrowthExperiments@master] WIP: Needs testing but this is my guess for translating the initial number in suggestededits
Hmm, just saw the feedback on the patch. It makes sense now that I look more closely. It looks like the number actually gets set earlier in the code.
Okay, I just pushed an updated patch. I'd love advice for testing it, but I'm pretty sure this is it.
Yep, that patch looks correct. For testing, you can append ?uselang={langCode} when viewing the homepage, e.g. http://localhost:8080/w/index.php?title=Special:Homepage&source=personaltoolslink&namespace=8&uselang=fa. If you want, you can disable JavaScript in your browser so it's easier to inspect the server-side rendered content before the JavaScript would otherwise kick in.
Thanks @kostajh! I can confirm that I see the bug without the patch, and do not see the behavior with the patch applied.
Change 663683 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Use numParams for numerical message params in SuggestedEdits