Page MenuHomePhabricator

"Category" shown twice in the display of “Pages in Category” subheading in zhwiki
Closed, DuplicatePublic

Description

There is a bug in “Pages in Category” subheading display in all zh wikiprojects when language converter is on, which makes the word “Category” (“分类” in Simplified Chinese or “分類” in Traditional Chinese) shows twice in the subheading.
In Simplified Chinese variant (zh-hans, zh-cn, zh-my, zh-sg), the subheading will be shown as “分类“分类:XX”中的页面” (which is wrong), instead of “分类“XX”中的页面” (which is correct).
(Example: https://zh.wikipedia.org/zh-hans/Category:2016%E5%B9%B4%E7%94%B0%E5%BE%91)
In Traditional Chinese variant (zh-hant, zh-hk, zh-mo, zh-tw), the subheading will be shown as “「分類:XX」分類的頁面” (which is wrong), instead of “「XX」分類的頁面” (which is correct).
(Example: https://zh.wikipedia.org/zh-hant/Category:2016%E5%B9%B4%E7%94%B0%E5%BE%91)
This bug does not appear in zh variant (without conversion), as the display of the Category subheading is normal as usual when zh variant is selected.

Event Timeline

VulpesVulpes825 moved this task from Closed to MediaWiki core on the Chinese-Sites board.
VulpesVulpes825 subscribed.

@Bugreporter, there is nothing wrong with the translation in translatewiki. The current problem is Mediawiki uses
Category:Something rather than Something to replace $1 in the system message.

Aklapper renamed this task from Display of “Pages in Category” subheading in zhwki to "Category" shown twice in the display of “Pages in Category” subheading in zhwki.Aug 9 2020, 12:37 PM

OK, I see this is an issue that getUnprefixedDisplayTitle() does not respect MediaWiki:Conversion-ns###.

Liu116 renamed this task from "Category" shown twice in the display of “Pages in Category” subheading in zhwki to "Category" shown twice in the display of “Pages in Category” subheading in zhwiki.Aug 26 2020, 2:15 PM