Page MenuHomePhabricator

[BUG] Incorrect language counts in "About this page" section
Closed, ResolvedPublicBUG REPORT

Description

Steps to reproduce

  1. Change search language to either Traditional Chinese or Simplified Chinese
  2. Pick any Chinese article
  3. When article has been loaded, head to the bottom to find the About this page section
  4. Clicks on the Available in X other languages, and you can compare the actual amount of available languages with the counts displayed on the clickable button.

Expected

The counts should be the same

Actual

The counts in the list are actually containing one more language (either zh-hant or zh-hans). See the reference here: T176161

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
cooltey renamed this task from [BUG] Error language counts in "About this page" section to [BUG] Incorrect language counts in "About this page" section.Nov 13 2017, 10:28 PM

Change 391132 had a related patch set uploaded (by Cooltey; owner: Cooltey):
[apps/android/wikipedia@master] Fix: Incorrect language counts

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

Change 391132 merged by jenkins-bot:
[apps/android/wikipedia@master] Fix: Incorrect language counts

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

Testing on Samsung-SM-JI20A Galaxy Express 3 (Android 6.0.1) and Wikipedia app 2.6.206-alpha-2017-11-16 in Simplified Chinese. As shown in the screencaps below, this is fixed as the correct number of additional languages specified for both articles are shown - both have English and Traditional Chinese as choices, while the second also has German to choose from.

T180182 Example 1 - two other languages Part 1.png (800×480 px, 38 KB)
T180182 Example 1 - two other languages Part 2.png (800×480 px, 24 KB)
T180182 Example 1 - three other languages Part 1.png (800×480 px, 52 KB)
T180182 Example 1 - three other languages Part 2.png (800×480 px, 28 KB)

I guess there's still an issue around this one. I recently noticed that for the Hamster Wheel article the About the article shows it's available in 9 other languages while I see 10 items in the Other languages view. The list seems to contain 8 items for other languages and 2 items for chinese which seem to be pointing to the same article (!). You could confirm that by choosing View in browser options for both chinese variants to see that they open the same webpage. As I'm not a chinese person, I'm not sure what should differ for both chinese variants.

Screen shots

Screenshot_2017-12-12-12-34-52.png (960×540 px, 70 KB)

Screenshot_2017-12-12-13-50-42.png (960×540 px, 45 KB)

Screenshot_2017-12-12-13-50-46.png (960×540 px, 40 KB)

Re-opening just in case the comment wasn't noticed.

Thanks for reporting the issue, @Kaartic!

Yes. For the Chinese variants, the API will only give us one default Chinese variant called zh, and the app will do an extra process to convert it into zh-hant and zh-hans.

Will move this to Backlog and fix it.

Restricted Application changed the subtype of this task from "Task" to "Bug Report". · View Herald TranscriptDec 3 2019, 5:36 PM

It is resolved since we have removed the language counts from About section