Page MenuHomePhabricator

Communicate when pages are not supported in other languages in the current language selector
Closed, ResolvedPublic

Description

Access to language options has evolved with the desktop improvements project. From a new single location users can not only switch their language but also access language settings and are invited to make the content multilingual when it is missing in the user languages.

As part of the work on T290436, the language selector remains visible on pages that are not available yet in other languages to encourage users to make content multilingual. However, there are types of content that are not intended to be connected across languages, and inviting to do so could be misleading. For example, this talk page on French Wikipedia shows an "Add languages" button that provides no option to add a language once the user opens it:

fr.wikipedia.org_wiki_Discussion_21_juillet_en_sport(iPad Air).png (1×2 px, 365 KB)

Proposal

This ticket proposes to use a specific empty state for these cases where:

  • The Language button does not have a label. The button will use the quiet standard (not blue) color, making it less prominent while keeping a consistent placement.
  • The selector communicates explicitly that content is not supported in other languages.
  • Options to access language settings are still available. Users interested in changing the UI language can still find a way.

sel-on-wiki-unsupported-langs.png (225×394 px, 13 KB)

Page contents not supported in other languages.

When to show it
As part of the work on the ticket we need to define a criteria to determine which kind of content is considered "not supported in other languages". This can be based on:

  • The namespace of the content (some initial thoughts in T314620#8177537)
  • The types of content supported by the different tools available in the selector. That is, if Content Translation and Wikidata linking are the available mechanisms for making content multilingual, we can consider as "not supported" the types of pages not supported by either of them.
    • This can include missing pages (example)
  • Some other option (feel free to share thoughts and proposals).

Example illustrated

The mockup below shows how language entry point looks different in different pages: article (where the content is/can be connected with versions in other languages) and talk (where content cannot be connected to other languages).

image.png (2×3 px, 548 KB)

Related Objects

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
Pginer-WMF raised the priority of this task from Medium to High.Oct 10 2022, 10:53 AM

@Pginer-WMF the inclusion of the language switcher on pages where there are no interlanguage links came up several times in the Vector 2022 RFC discussion on English Wikipedia (link). A few people questioned having the language switcher in such a prominent location on pages where it is less useful. Perhaps to mitigate this issue we could present the compact language menu button as a black quiet button (versus a blue one)? Also if this is already the plan then we're all set : )

image.png (2×3 px, 548 KB)

Perhaps to mitigate this issue we could present the compact language menu button as a black quiet button (versus a blue one)? Also if this is already the plan then we're all set : )

Yes, that's the plan. I'll make it more explicit in the description (and reuse your mockup!), for extra clarity. Thanks for providing additional context on the community input, Alex.

@Pginer-WMF another question has come up: the language menu is included in the sticky header. For talk pages, which don't support interlanguage links, can we exclude the (condensed) language menu from the sticky header?

For example:

with language menuwithout language menu
Screen Shot 2022-10-27 at 1.49.24 PM.png (678×1 px, 314 KB)
Screen Shot 2022-10-27 at 1.49.40 PM.png (678×1 px, 312 KB)

cc @ovasileva @ppelberg

@Pginer-WMF another question has come up: the language menu is included in the sticky header. For talk pages, which don't support interlanguage links, can we exclude the (condensed) language menu from the sticky header?

Yes. For talk pages which don't support interlanguage links, I think we can exclude the language menu from the sticky header.

Rationale:

  • The general idea for pages not supporting content language switching, was to keep a low-key version of the language entry point to still keep access to change the UI language if needed.
  • Hiding the language option from the sticky header reduces the prominence while the functionality is still present at the top of the page.
  • The need for switching the UI language is expected to emerge immediately, so it is less relevant once the user scrolled down the content.
    • One exception could be when people reach the page through a link pointing to a section down the page. However, scrolling up seems reasonable expectation for such case.

Thanks for pinging about this, Alex.

Change 852139 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/skins/Vector@master] POC: Use less prominent ULS trigger button for unsupported pages

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

Change 852140 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/UniversalLanguageSelector@master] Implement ULS empty for pages that do not support multilingual content

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

Change 852139 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Update language dropdown for pages not supported in other languages

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

Change 852140 merged by jenkins-bot:

[mediawiki/extensions/UniversalLanguageSelector@master] Add language settings button inside dropdown for non-content pages

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

Change 852140 merged by jenkins-bot:

[mediawiki/extensions/UniversalLanguageSelector@master] Add language settings button inside dropdown for non-content pages

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

Hi, just a heads-up that this patch was reverted (T326538: Vector 2022: Username does not display properly in personal tools section when GrowthExperiments enabled). The revert patch didn't tag this task, so leaving this comment for awareness.

Thank you Kosta! We are aware of this reverted patch, and will submit a new "equivalent" patch with an acceptable approach very soon, to come with the next train :)

Change 879053 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/UniversalLanguageSelector@master] Add language settings button inside dropdown for non-content pages

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

awesome to see progress here. just calling out that until we do T322153: Remove language menu from sticky header on Talk pages we've got a sort of awkward/confusion situation here:

you see this at the top of the page:

Screen Shot 2023-01-11 at 12.21.36 PM.png (282×1 px, 116 KB)

then you scroll down and see this in the sticky header:

Screen Shot 2023-01-11 at 12.21.49 PM.png (253×1 px, 66 KB)

Change 879053 merged by jenkins-bot:

[mediawiki/extensions/UniversalLanguageSelector@master] Add language settings button inside dropdown for non-content pages

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

also just to clarify, the link "Open language settings" should be in this menu, right? seeing it on production but no language settings in there:

Screen Shot 2023-01-12 at 3.32.38 PM.png (850×3 px, 1 MB)

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

[mediawiki/skins/Vector@master] LanguageDropdown:

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

I took a look to some cases to identify what needs some polishing still:

CaseScreenshotNotes
A. Content page available in other languages (above the fold)
en.wikipedia.org_wiki_Mars (1).png (768×1 px, 202 KB)
✅ Works as expected: list of links to read in other languages are shown
B. Content page available in other languages (below the fold)
en.wikipedia.org_wiki_Mars (2).png (768×1 px, 199 KB)
✅ Works as expected: list of links to read in other languages are shown
C. Content page not yet available in other languages (above the fold)
en.wikipedia.org_wiki_Liobole.png (768×1 px, 218 KB)
✅ Works as expected: shows that there are no languages yet with the available options to add them (translation for now) and access to settings.
D. Content page not yet available in other languages (below the fold)
en.wikipedia.org_wiki_Liobole (1).png (768×1 px, 225 KB)
✅ Works as expected: shows that there are no languages yet with the available options to add them (translation for now) and access to settings.
E. Page not created yet
en.wikipedia.org_wiki_InexistentPage.png (768×1 px, 207 KB)
✅ Minimal language indicator used to communicate that contents are not supported in other languages. ❌ Option to open language settings should be visible but is not shown.
F. Talk page (above the fold)
en.wikipedia.org_wiki_Talk_Mars.png (768×1 px, 219 KB)
✅ Minimal language indicator used to communicate that contents are not supported in other languages. ❌ Option to open language settings should be visible but is not shown.
G. Talk page (below the fold)
en.wikipedia.org_wiki_Mars (2).png (768×1 px, 199 KB)
❌ Unsupported pages should not have the language option on the sticky bar (T322153).
H. Template page (above the fold)
en.wikipedia.org_wiki_Template_Cite_web.png (768×1 px, 218 KB)
❌ Language links should be listed allowing to access the template in other languages. Additional actions: access to settings should be available but no option to translate.
I. Template page (below the fold)
en.wikipedia.org_wiki_Template_Cite_web (1).png (768×1 px, 142 KB)
❌ Language links should be listed allowing to access the template in other languages. Additional actions: access to settings should be available but no option to translate.

It's definitely a bug, removing interwiki in template, category, and so on.

Change 879670 merged by jenkins-bot:

[mediawiki/skins/Vector@master] LanguageDropdown: Check if the page is in talk namespaces instead

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

I understand what the purpose is (telling the reader that some pages shouldn't have interwiki links). But... why? Why shouldnt a talk page be linked to another talk page? In which way is this good for our strategy? I would understand that the opposite is the good practice.

I understand what the purpose is (telling the reader that some pages shouldn't have interwiki links). But... why? Why shouldnt a talk page be linked to another talk page? In which way is this good for our strategy? I would understand that the opposite is the good practice.

I don't have a strong opinion on whether it is better to show language links for talk pages or not. Here are some considerations in this aspect:

  • In the previous version of Vector (Vector Legacy) links to other languages were not shown for talk pages (screenshot below). When adjusting the language selection to adapt it to the new version of Vector that notion was preserved. It is possible to revisit the approach, but we may want to think about it as a separate change (and think about the considerations below).
  • Talk pages are not linked directly in Wikidata (as far as I know). In such case, when linking to the talk pages of the equivalent articles we need to determine whether including the cases where the article exists but the talk page has not been started or not (and how to filter those out in such case).
  • User expectations for the same (or similar) content to be available may not be met with talk pages. Articles across languages are different but they cover the same topic to a higher or lower degree. However, Talk pages diverge much more. A use reading a particular discussion in a language may interpret the option to switch languages as a way to access that discussion in another language, but the contents (the discussions and people participating in them) will be totally different.

I think it makes sense to consider the possibility of connecting talk pages across languages, but I think it would be better to understand in more detail the expectations of people when offered such possibility.

en.wikipedia.org_wiki_Talk_Avocado.png (832×1 px, 275 KB)

@Pginer-WMF, I think that the language settings should be available on every page. This includes all the cases mentioned above, and special pages too. This is important for users of multilingual and multi-script wikis. Access to the language setting were available on every page in the old vector skin through the cog icon in the sidebar. There was an old task in Phabricator that cited statistics showing that the vast majority of UI language changes by users were effected using the ULS and not from the preferences. Do we have good reasons to think that access to language settings is not required from every page on the wiki?

The option to add interwiki links (not only to see them) for categories is gone.

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

[mediawiki/skins/Vector@wmf/1.40.0-wmf.18] LanguageDropdown: Check if the page is in talk namespaces instead

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

Change 879798 merged by jenkins-bot:

[mediawiki/skins/Vector@wmf/1.40.0-wmf.18] LanguageDropdown: Check if the page is in talk namespaces instead

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

Mentioned in SAL (#wikimedia-operations) [2023-01-16T01:05:09Z] <thcipriani@deploy1002> Started scap: Backport for [[gerrit:879798|LanguageDropdown: Check if the page is in talk namespaces instead (T316559 T326788)]]

Mentioned in SAL (#wikimedia-operations) [2023-01-16T01:15:17Z] <thcipriani@deploy1002> thcipriani and func: Backport for [[gerrit:879798|LanguageDropdown: Check if the page is in talk namespaces instead (T316559 T326788)]] synced to the testservers: mwdebug1001.eqiad.wmnet, mwdebug2001.codfw.wmnet, mwdebug1002.eqiad.wmnet, mwdebug2002.codfw.wmnet

Mentioned in SAL (#wikimedia-operations) [2023-01-16T01:29:57Z] <thcipriani@deploy1002> Finished scap: Backport for [[gerrit:879798|LanguageDropdown: Check if the page is in talk namespaces instead (T316559 T326788)]] (duration: 24m 47s)

Change 880423 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/UniversalLanguageSelector@master] ULS: Display "Page contents not supported" body in missing and talk pages

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

Change 880423 merged by jenkins-bot:

[mediawiki/extensions/UniversalLanguageSelector@master] ULS: Display "Page contents not supported" body in missing and talk pages

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

I understand what the purpose is (telling the reader that some pages shouldn't have interwiki links). But... why? Why shouldnt a talk page be linked to another talk page? In which way is this good for our strategy? I would understand that the opposite is the good practice.

That was an community decision. When Wikidata added support for the WMF projects there was an discussion on the projects, and not one of those resulted in adding support for the talk namespaces. Even prior to Wikidata, I was working on the interwiki links and I do not remember a single talk page interwiki link. If you have an usecase, I think that should be brought up on Wikidata first, then to phabricator if you succeed.

@Pginer-WMF Reviewed most of the scenarios and found them to be good and consistent. See attached

Except for the scenario below. Please confirm if this is a valid abnomality

Template with Data (Above the fold)

This shows the language icon highlighted in blue and does not show suggestion of suggested languages. Access to Add language and access to the settings icon.

Screenshot 2023-03-27 at 11.27.01 PM.png (820×1 px, 193 KB)

Template with Data (Below the fold)

This shows the language icon is not highlighted in blue and show suggestion of suggested languages. Access to Add language and access to the settings icon. This is inconsistent with the Above the fold scenario

Screenshot 2023-03-27 at 11.33.26 PM.png (765×1 px, 187 KB)

Thanks for checking @EChukwukere-WMF !!

The suggested languages should appear in both cases. I checked and the suggested languages appear above the fold:

en.wikipedia.org_wiki_Template_Country_data_Sweden(iPad Mini).png (1×2 px, 348 KB)

Regarding the blue color for the selected button, it is expected. Note that the button above and below the fold are using different styles, one with blue text and the other in black.