Page MenuHomePhabricator

Update language button empty state label in sticky header
Closed, ResolvedPublic3 Estimated Story Points

Description

Background

If there are no other languages available for an article the language button label is Add languages. However the language button in the sticky header has 0 languages as a label (which is incorrect, it should be Add languages). These two labels should match (but the color of the button does not need to match).

page headersticky header
Screen Shot 2022-08-18 at 10.26.29 AM.png (994×3 px, 1 MB)
Screen Shot 2022-08-18 at 10.26.40 AM.png (986×3 px, 297 KB)

Acceptance criteria

  • Change the copy of the language button within the sticky header from "0 languages" to "Add languages"

QA Results - Beta

ACStatusDetails
1T315556#8222312

QA Results - Prod

ACStatusDetails
1T315556#8229645

Event Timeline

ovasileva triaged this task as Medium priority.Aug 18 2022, 1:22 PM

Add language button at the top of the page

Screen Shot 2022-08-18 at 3.25.52 PM.png (484×596 px, 52 KB)

Reeads "0" languages in the sticky header

Screen Shot 2022-08-18 at 3.26.35 PM.png (418×503 px, 31 KB)

alexhollender_WMF renamed this task from Add "add language" button to sticky header to Update language button empty state label in sticky header.Aug 18 2022, 2:30 PM
alexhollender_WMF updated the task description. (Show Details)

The message to change is vector-language-button-label. You'll likely want to make the label depend on whether ULS is installed as some wikis do not have ULS.

The message to change is vector-language-button-label. You'll likely want to make the label depend on whether ULS is installed as some wikis do not have ULS.

@Jdlrobson Shouldn't we just avoid rendering the ULS button if its not installed? Why make the label depend on if ULS is installed?

ovasileva set the point value for this task to 3.Aug 23 2022, 5:42 PM

The message to change is vector-language-button-label. You'll likely want to make the label depend on whether ULS is installed as some wikis do not have ULS.

@Jdlrobson Shouldn't we just avoid rendering the ULS button if its not installed? Why make the label depend on if ULS is installed?

So I looked at this, and it seems that this is a non-issue - the sticky header only renders the button if ULS is installed.
https://gerrit.wikimedia.org/g/mediawiki/skins/Vector/+/2450fdeb99a00cba769b6f2e3b43d3fcf2eca863/skinStyles/ext.uls.interface.less#1

Change 826389 had a related patch set uploaded (by Jdrewniak; author: Jdrewniak):

[mediawiki/skins/Vector@master] Change ULS label for sticky header when 0 Languages available.

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

Change 826389 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Change ULS label for sticky header when 0 Languages available.

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

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: Change the copy of the language button within the sticky header from "0 languages" to "Add languages"

Screen Shot 2022-09-06 at 2.30.40 PM.png (630×1 px, 192 KB)

just confirming that it looks correct in the sticky header (@Edtadros your screenshot in the comment above is showing the language switcher in the article header)

Screen Shot 2022-09-08 at 2.50.18 PM.png (1×3 px, 1 MB)

@alexhollender_WMF thanks! I had done both but forgot to attache the sticky header.

Edtadros subscribed.

Test Result - Prod

Status: ✅ PASS
Environment: testwiki
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: Change the copy of the language button within the sticky header from "0 languages" to "Add languages"

Screen Shot 2022-09-12 at 9.56.25 AM.png (379×1 px, 138 KB)

Screen Shot 2022-09-12 at 9.56.18 AM.png (604×1 px, 170 KB)