Steps to replicate the issue:
- Go to https://zh.wikipedia.org/wiki/Special:Search
- Open the namespace dropdown list, provided by Extension:AdvancedSearch
What happens?:
All namespace names (except for the article namespace) are in English. It also affect non-WMF Chinese wiki sites that use Extension:AdvancedSearch.
It appears to be caused by SearchEngineConfig::searchableNamespaces() using Language::getNamespaces() with the content language (zh). Note that if Language::getNamespaces() is used with one of the zh-xx variants, the symptom would be T396231 (it will show Chinese characters in that variant, but not respecting MediaWiki:Conversion-nsx/xx).
What should have happened instead?:
The namespace names in the Extension:AdvancedSearch dropdown list should match the one in title on page. LanguageConverter is needed for correctness.
Software version: 1.45.0-wmf.13