Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Page MenuHomePhabricator

Special:MobileLanguages tweaks (label and margin)
Closed, ResolvedPublic2 Estimated Story Points

Description

Hi, I am reporting this bug for another user who found out that Special:MobileLanguages (the page you reach when you look for the article in other languages on your mobile device) claims that the given article is available in x languages but it forgets to count in the article from where you are coming from (e.g., opening an article on German Wikipedia that is also available on French and English Wikipedia claiming that this article exists in 2 languages). He suggests two possible fixes, either saying “available in x <more> languages” (my preferred way) or “available in x languages” (which may lead to confusion in the given example with two lines where this article also exists while the page tells us that the article is available in “3” languages). As this is a general bug, we were suggested not to reach out for community consensus what to do.

https://en.m.wikipedia.org/wiki/Special:MobileLanguages/Billericay

Misalignment

There is a misalignment on this page
Actual:

Screen Shot 2018-12-11 at 9.55.28 AM.png (210×556 px, 28 KB)

Expected:
Screen Shot 2018-12-11 at 9.55.25 AM.png (166×389 px, 20 KB)

Acceptance criteria

  • Text "Billericay is available in 20 languages." should be replaced with "Billericay is available in 20 other languages."
  • Change the label of "Billericay - Languages" to "Billericay - Other Languages"
  • Remove the wrapping class="content " to fix the alignment issue
  • Reposition languages count in the overlay, cf. T191562#4117933

QA instructions

Make sure it's 1pm PST 20th Feb to give time for this change to be live in production.

Compare the language overlay on beta cluster and production:
https://en.m.wikipedia.beta.wmflabs.org/wiki/Barack%20Obama#/languages
https://en.m.wikipedia.org/wiki/Barack%20Obama#/languages
Other languages header should have changed.

Compare alignment of https://en.m.wikipedia.org/wiki/Special:MobileLanguages/Barack_Obama with https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:MobileLanguages/Barack_Obama
In latter title should align with content.

QA Results

Test/ACStatusDetails
Overlay✅ PassedT191562#4970692
Alignment✅ PassedT191562#4970692

Event Timeline

ovasileva triaged this task as Medium priority.Apr 9 2018, 11:46 AM

@alexhollender - thoughts? My preference is also "available in x more languages"

@DerHexer can you please clarify the flow you're following to get to this bug? I'm not sure if you're referring to this page (https://en.m.wikipedia.org/wiki/Lesser_Antillean_macaw#/languages) or something else

@alexhollender when you click on the link without JavaScript (or via right click) you are taken to https://en.m.wikipedia.org/wiki/Special:MobileLanguages/Lesser_Antillean_macaw instead.

@ovasileva here is what iOS does "...available in 12 other languages" (we should make sure to special case for the situation where there is only one other language, to make sure to remove the "s" at the end of "languages", or else it will read "...available in 1 other languages").

other-languages.png (1×750 px, 197 KB)

Follow up questions:

  1. I wonder if we should also update the copy on the languages overlay panel (see attached jpg below)
  2. Seems like a separate issue of whether or not to include the current language in that list. Pau said the language team is looking into this

as part of the work on Compact Language links, Amir is analyzing the failed searches for a language, and I think it is not uncommon for people to not find a language because that is the current language they are already in. We are not sure whether this is due to muscle memory, or because Google often shows results for different languages in different order.

other-languages.jpg (1×1 px, 374 KB)

Follow up questions:

  1. I wonder if we should also update the copy on the languages overlay panel (see attached jpg below)

I agree. I like the alternative version

Follow up questions:

  1. I wonder if we should also update the copy on the languages overlay panel (see attached jpg below)

I agree. I like the alternative version

Me too.

What's the state of this task @alexhollender ?

@alexhollender seems like with your input above we can at least update the overlay title pretty easily! Should we split out a task for that?

@Jdlrobson I think this is ready to go. Going to move it out of design.

Jdlrobson renamed this task from Special:MobileLanguages shows an incorrect number of language versions to Special:MobileLanguages tweaks (label and margin).Dec 11 2018, 5:56 PM
Jdlrobson updated the task description. (Show Details)

@alexhollender lemme know if the updated description doesn't make sense!

ovasileva set the point value for this task to 2.

Change 485955 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/extensions/MobileFrontend@master] Tweaking Special:MobileLanguages labels and margin

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

Change 485955 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] Tweak Special:MobileLanguages labels

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

@Ammarpad have you hit problems with the CSS part of this task? If so please let me know how i can help you!

@Ammarpad have you hit problems with the CSS part of this task? If so please let me know how i can help you!

Thanks, @Jdlrobson. I will upload new patch for that. Actually your last comment in the last patch put me on hold, I thought you wanted to remove something first.

Actually your last comment in the last patch put me on hold, I thought you wanted to remove something first.

😬 Sorry for the confusion! Looks like my English could have been better there. I can confirm that I'm not removing anything myself. Please continue and let me know if/how I can help you :)

Change 489467 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/extensions/MobileFrontend@master] Fixes in Special:MobileLanguages

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

Hi @Ammarpad ! Here's some feedback on this patch. I've updated the task as sadly it was not as clear as it could have been. To be clear, the language overlay is behaving correctly and we don't want to make changes to it.

The change changes the styling of the language overlay and moves the number "223" to the left like so:

beforeafter
Screen Shot 2019-02-11 at 10.28.58 AM.png (487×558 px, 36 KB)
Screen Shot 2019-02-11 at 10.25.56 AM.png (492×559 px, 36 KB)

However, we want to fix the alignment in the language page at https://en.m.wikipedia.org/wiki/Special:MobileLanguages/Billericay. The overlay https://en.m.wikipedia.org/wiki/Billericay#/languages is behaving and appearing as expected.

The Special:MobileLanguages page does not use these styles. The fix should also not require any CSS changes, just some changes to includes/specials/SpecialMobileLanguages.php

Hi @Ammarpad ! Here's some feedback on this patch. I've updated the task as sadly it was not as clear as it could have been. To be clear, the language overlay is behaving correctly and we don't want to make changes to it.

The change changes the styling of the language overlay and moves the number "223" to the left like so:

beforeafter
Screen Shot 2019-02-11 at 10.28.58 AM.png (487×558 px, 36 KB)
Screen Shot 2019-02-11 at 10.25.56 AM.png (492×559 px, 36 KB)

However, we want to fix the alignment in the language page at https://en.m.wikipedia.org/wiki/Special:MobileLanguages/Billericay. The overlay https://en.m.wikipedia.org/wiki/Billericay#/languages is behaving and appearing as expected.

The Special:MobileLanguages page does not use these styles. The fix should also not require any CSS changes, just some changes to includes/specials/SpecialMobileLanguages.php

Thanks @Jdlrobson. But I intentionally did that because of @alexhollender's suggestion in T191562#4117933, I thought it was OK. Now it can be dropped.

@alexhollender we've got a patch. Please confirm this matches your mocks and I'll merge:

Screen Shot 2019-02-15 at 11.51.27 AM.png (617×1 px, 50 KB)

Screen Shot 2019-02-15 at 11.51.38 AM.png (424×1 px, 50 KB)

Screen Shot 2019-02-15 at 11.53.39 AM.png (494×351 px, 33 KB)

Hebrew:
Screen Shot 2019-02-15 at 11.52.49 AM.png (658×1 px, 48 KB)

Screen Shot 2019-02-15 at 11.53.16 AM.png (560×353 px, 33 KB)

Change 489467 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] Fix alignment and reposition languages count in Special:MobileLanguages

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

Jdlrobson updated the task description. (Show Details)

Time for some QA. This change should be live shortly so allow at least till 12.30pst.

Test Results

OS: macOS Mojave
Browser: Chrome DevTools Device Emulator (iPhone X)

Test Artifact(s):

Language Overlay

Status: ✅ Pass

https://en.m.wikipedia.beta.wmflabs.org/wiki/Barack_Obama#/languages

Screen Shot 2019-02-20 at 9.21.59 PM.png (1×762 px, 54 KB)

https://en.m.wikipedia.org/wiki/Barack_Obama#/languages

Screen Shot 2019-02-20 at 9.22.15 PM.png (1×764 px, 120 KB)

Alignment

Status: ✅ Pass

  • I'm not sure what an acceptable threshold is. The text is aligned, give or take a pixel, but the bullet is not. If these are all acceptable I can change this to Pass.

Per T191562#4973148 the alignment in the image below is unrelated.

https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:MobileLanguages/Barack_Obama

Screen Shot 2019-02-20 at 9.28.58 PM.png (1×1 px, 339 KB)

Edtadros subscribed.

@Jdlrobson This could be a pass depending on how particular you want to be with regards to alignment.

I don't believe the pixel-issue mentioned in T191562#4970692 is related to this task. I say we're good to go here.

Edtadros updated the task description. (Show Details)

Thanks for the clarification, @Jdlrobson and @alexhollender.