Steps to replicate the issue:
- Disable JavaScript execution with browser settings or noscript extensions or (for Chrome) press Ctrl-Shift-P in Devtools and enter "disable javascript"
- Open https://zh.wikipedia.org/wiki/Special:RecentChanges?uselang=zh-cn&variant=zh-cn, find the dropdown menu for namespace options ("命名空间"). Note that it shows "Wikipedia讨论" for the "Wikipedia talk" (Project talk, NS5) namespace
- Open https://zh.wikipedia.org/wiki/Special:RecentChanges?uselang=zh&variant=zh-cn. Now it correctly shows "维基百科讨论"
What happens?:
The symptom is similar to T396231. However it is due to SpecialRecentChanges::namespaceFilterForm() passing the in-user-lang option (SpecialRecentChanges.php). With that, Html::namespaceSelectorOptions() uses the user interface language code to initialize the LanguageConverter, which can't work since the macrolanguage code zh has to be used instead.
What should have happened instead?:
Though it's an issue of the "Recent changes" page, it seems better to fix the logic of Html::namespaceSelectorOptions().
Software version: 1.45.0-wmf.13