Page MenuHomePhabricator

VisualEditor: As much as possible, the link to the user manual should lead directly to a manual in the user's language
Open, MediumPublicFeature

Description

The VisualEditor's user manual is translatable in Meta, which is a Good Thing. Currently the help link uses Special:MyLanguage. This uses the user's UI language as defined on Meta, which is likely not to be the same as the user's UI language on a non-English site.

As much as possible, the link should point directly to the user manual in the language that the user is using currently for the UI.


Version: unspecified
Severity: enhancement

Details

Reference
bz51797

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:57 AM
bzimport set Reference to bz51797.

(In reply to comment #0)

The VisualEditor's user manual is translatable in Meta, which is a Good
Thing.
Currently the help link uses Special:MyLanguage. This uses the user's UI
language as defined on Meta, which is likely not to be the same as the user's
UI language on a non-English site.

As much as possible, the link should point directly to the user manual in the
language that the user is using currently for the UI.

What is the recommended solution for this? Hard-code the link to be https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/<foo>? Wouldn't it be easier for the user's language to properly transfer to MW.org using ULS or whatever?

You could point to Special:MyLanguage/Page/<current ui language>. If the user is logged on mediawiki.org (which is quite likely), their interface language there will still overrule the provided language code :(

(In reply to comment #2)

You could point to Special:MyLanguage/Page/<current ui language>. If the user
is logged on mediawiki.org (which is quite likely), their interface language
there will still overrule the provided language code :(

To do this we'd have to have code that explicitly mangles an i18n string. This feels… deeply wrong. :-(

You could point to Special:MyLanguage/Page/<current ui language>. If the user is logged on mediawiki.org (which is quite likely), their interface language there will still overrule the provided language code :(

That would probably be okay, but if I go to https://ta.wikipedia.org/wiki/Mw:Special:MyLanguage/Help:VisualEditor/User_guide/ta I get Tamil, even though I am logged in and my preference is en.

That is intentional. Given the logged out users and many logged in users by default have English, it prefers the provided language code instead of interface language.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM
Aklapper removed a subscriber: TrevorParscal.