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, NormalPublic

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 Normal.Nov 22 2014, 1:57 AM
bzimport set Reference to bz51797.
Amire80 created this task.Jul 22 2013, 10:17 AM

(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. :-(

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 12 2015, 9:53 AM
Elitre added a subscriber: Elitre.May 11 2016, 7:38 AM
Krinkle removed a subscriber: Krinkle.May 16 2016, 1:43 PM

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.