Page MenuHomePhabricator

Sticky header: ensure language button only shows when multiple languages
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

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

What happens?:
Language switcher appears with "0 languages"

What should have happened instead?:
No language switcher appears

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
https://phabricator.wikimedia.org/F34909440

See https://phabricator.wikimedia.org/T297362 for related task

AC

  • When an article is not available in any other languages, do not display the language button
  • Language button doesn't show when language in header is not enabled (i.e. Wikicommons)

Event Timeline

LGoto set the point value for this task to 2.Jan 6 2022, 6:17 PM
LGoto moved this task from Incoming to Sticky header on the Desktop Improvements (Vector 2022) board.

Change 752003 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/Vector@master] Ensure sticky header language button only shows when there are multiple languages and the ULS is enabled

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

Test wiki created on Patch demo by BWang (WMF) using patch(es) linked to this task:

https://patchdemo.wmflabs.org/wikis/4e0458c5db/w/

Test wiki on Patch demo by BWang (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/4e0458c5db/w/

Change 752003 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Ensure sticky header language button only shows when there are multiple languages and when ULS is enabled

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

Jdlrobson moved this task from QA to QA in Prod on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.
Jdlrobson added subscribers: Edtadros, Jdlrobson.

Has been in production for a month.

Verified in production. Resolving.

QA:

  1. Go to a page with only a single language: https://en.wikipedia.org/wiki/Cardiff_City_F.C._2%E2%80%931_Leeds_United_F.C._(2002)
  2. Scroll down the page until the sticky header appears
  3. Language button should not appear within the sticky header

Screen Shot 2022-02-17 at 7.36.25 PM.png (483×1 px, 162 KB)