Page MenuHomePhabricator

Chinese Wikinews is missing on the Wikinews.org portal because the slogan translation was deleted
Closed, ResolvedPublicBUG REPORT

Description

The Chinese Wikinews is qualified to be displayed around the central circle on the Wikinews.org portal since it has more page views (current assessment method) compared to the it.wikinews.org which is on the portal.

It's missing from the central circle because the slogan translation for it was missing (deleted).

The current logic is too fragile, the site should at least appear even without the slogan translated.

See also:
T171647: Wikipedia portal: adjust the languages used for Chinese translations
T308009: Fix Chinese translation for modernized wiktionary.org and wikibooks.org portals
T350670: [Regression] Wikipedia Portal: Sites Missing in the List

Original description

Chinese Wikinews, being one of the few active languages, should be more easily accessible on Multilingual portal instead of having less active languages displayed. Based on the total number of active users, Chinese Wikinews ranks as the fifth-largest Wikinews project. This website needs an update because no matter how you rank it, Chinese is still one of the top ten languages.

T348203
T287088 T130514 (Available for reference)

Regarding the current situation where Chinese Wikinews is not displayed in Google search results, it is worth considering including Chinese among the major languages. It is inconvenient to search for Wikinews in English and then open the Chinese version. Since opening Chinese Wikinews is often done through this method, accessing the portal, especially on iOS where the search bar directly suggests the portal before being able to open Chinese Wikinews, it is inconvenient as Chinese Wikinews is not displayed among the major languages. This poses difficulties in accessing Chinese Wikinews.

Because I found that this design actually exists, but I don’t know why it is not in this state now. This design seems to be very good-looking.

Event Timeline

This seems to be the expected behaviour. The wikis around the circle are chosen by views per day, e.g. the most recent portal auto-build (not merged yet): the last one (10th) is it.wikinews.org with 27,000 views/day.

Reevaluating how the top-ten languages are organized is beyond the scope of this task, but @Kitabc12345 I've looked at the wikinews.org portal and I think you've discovered a different bug.
The portals try to make it easier to access your preferred language by adding it to the top-ten, regardless of what it is (in so far as the page is capable of detecting that).

For example, if you're browser or OS is set to Chinese, then Chinese should appear as the first language in the top-ten list.
This is what the top-ten list looks like if I set my browser's preferred languages to Chinese and Afrikaans:

Screenshot 2024-01-17 at 10.01.04 AM.png (1×2 px, 766 KB)

It looks like this feature is broken on www.wikinews.org:

Screenshot 2024-01-17 at 10.01.14 AM.png (1×2 px, 742 KB)

I'll try to investigate this further.

在T355001#9459843中,@Func写道:

This seems to be the expected behaviour. The wikis around the circle are chosen by views per day, e.g. the most recent portal auto-build (not merged yet): the last one (10th) is it.wikinews.org with 27,000 views/day.

The wikis around the circle are chosen by views per day, but zhwikinews until on top by that. No matter how it is ranked, it should be among the top ten. We are top then of itwikimews on views per day. But we can't show on wikinews.org, is it's having some bug?

Screenshot_2024-01-22-13-30-03-21_40deb401b9ffe8e1df2f1cc5ba480b12.jpg (2×1 px, 765 KB)

Screenshot_2024-01-22-13-29-48-36_40deb401b9ffe8e1df2f1cc5ba480b12.jpg (2×1 px, 766 KB)

https://pageviews.wmcloud.org/siteviews/?platform=all-access&source=pageviews&agent=user&range=latest-20&sites=zh.wikinews.org|en.wikinews.org|pt.wikinews.org|it.wikinews.org

在T355001#9465965中,@Jdrewniak写道:

Reevaluating how the top-ten languages are organized is beyond the scope of this task, but @Kitabc12345 I've looked at the wikinews.org portal and I think you've discovered a different bug.
The portals try to make it easier to access your preferred language by adding it to the top-ten, regardless of what it is (in so far as the page is capable of detecting that).

For example, if you're browser or OS is set to Chinese, then Chinese should appear as the first language in the top-ten list.
This is what the top-ten list looks like if I set my browser's preferred languages to Chinese and Afrikaans:

Screenshot 2024-01-17 at 10.01.04 AM.png (1×2 px, 766 KB)

It looks like this feature is broken on www.wikinews.org:

Screenshot 2024-01-17 at 10.01.14 AM.png (1×2 px, 742 KB)

I'll try to investigate this further.

Please fix that with mobile version also, thx.

在T355001#9465965中,@Jdrewniak写道:

Reevaluating how the top-ten languages are organized is beyond the scope of this task, but @Kitabc12345 I've looked at the wikinews.org portal and I think you've discovered a different bug.
The portals try to make it easier to access your preferred language by adding it to the top-ten, regardless of what it is (in so far as the page is capable of detecting that).

For example, if you're browser or OS is set to Chinese, then Chinese should appear as the first language in the top-ten list.
This is what the top-ten list looks like if I set my browser's preferred languages to Chinese and Afrikaans:

Screenshot 2024-01-17 at 10.01.04 AM.png (1×2 px, 766 KB)

It looks like this feature is broken on www.wikinews.org:

Screenshot 2024-01-17 at 10.01.14 AM.png (1×2 px, 742 KB)

I'll try to investigate this further.

I thinking about that is BUG REPORT, can someone change this task? See my comments of lasted.

Similar to T350670, the Chinese Wikinews didn't show up around the circle maybe because the Wikinews slogan is missing in the translation - the translatewiki page for it was deleted.

cc @jhsoby: Currently the portals rely on the /zh subpages to work, could you please restore them?

Func renamed this task from updates Wikinews.org for zhwikinews to Chinese Wikinews is missing on the Wikinews.org portal because the slogan translation was deleted.Jan 22 2024, 1:05 PM
Func updated the task description. (Show Details)
Func changed the subtype of this task from "Task" to "Bug Report".

Patches for T171647 (older, removed some zh.json entries and claim to use the fallback table to build slogan in the "simp / trad" format) and T308009 (newer, adding back translated slogans separated with /) are doing the opposite things, so I guess unfortunately:

Currently the portals still rely on the /zh subpages to work

2022年5月6日 (五) 07:57 Jon Harald Søby 刪除頁面Wikimedia:Portals-wikinews.name/zh (delete /zh subpages for Wikimedia:Portals)

delete /zh subpages for Wikimedia:Portals

So does any other Chinese wiki have those issues too?

https://gerrit.wikimedia.org/r/plugins/gitiles/wikimedia/portals/+/3711d66743a33cd87a5e994700cd84d8c2d0a23f/l10n/zh.json only shows Wikipedia, Wiktionary, and Wikibooks at this point.

According to the ranking method on qualified to be displayed around the central circle on the Wikinews.org portal, zhwikinews is the second largest language in Wikinews.org, Compared with ruwikinews and enwikinews views. this problem should not occur. Please fix it as soon as possible. Thank you.

Change 992785 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[wikimedia/portals@master] Partially revert "Localisation updates from https://translatewiki.net."

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

@Winston_Sung Wikimedia:Portals-wikinews.slogan/zh and Wikimedia:Portals-wikinews.slogan/zh also need to be restored.

Wikiquote, Wikisource, and Wikivoyage were also deleted at the same time.

Should be all restored (undeleted) on translatewiki.

I didn't read through the Wikimedia Portals code, but my theory is:
Without the json array entry below, it failed to merge zh-hans or zh-hant translations into the i18n array for zh subdomain and thought there was no such site.

"wikinews": {
}

Change 992961 had a related patch set uploaded (by Func; author: Func):

[wikimedia/portals@master] [WIP] Fix top 10 featured language for Chinese sites

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

Change 992785 abandoned by Winston Sung:

[wikimedia/portals@master] Portals: Fix several translations in zh

Reason:

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

Change 992961 merged by jenkins-bot:

[wikimedia/portals@master] Fix the top 10 featured language for Chinese sites

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

Change 994373 had a related patch set uploaded (by Func; author: Func):

[wikimedia/portals@master] Follow-up 110950f6: Use the stripped language name for top 10

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