Page MenuHomePhabricator

Duplicate "Category" in "category_header" on wikis installed language converter
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Go to a random category on zhwiki (example)
  • Set language variant to anything except "不转换" (zh)

What happens?:
You will see the section header of pages inside this category looks like "分类“分类:自然科学”中的页面"
qqx: (category_header: 分类:自然科学) (link)

What should have happened instead?:
It should display like "分类“自然科学”中的页面"
And corresponding qqx: (category_header: 自然科学) (link, this is variant "不转换", zh)

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:
1.38.0-wmf.22 (529f223)

Event Timeline

Bug also happened on other sites enabled language converter:

  • ganwiki: example, issue with gan-hans.
  • srwiki: example, issue with sr-el.

Change 763960 had a related patch set uploaded (by Bhsd; author: Bhsd):

[mediawiki/core@master] Strip variant-dependent nsText

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

Change 763960 merged by jenkins-bot:

[mediawiki/core@master] OutputPage: Handle language variants in getUnprefixedDisplayTitle

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

Winston_Sung changed the task status from Open to In Progress.May 10 2022, 1:51 PM