Page MenuHomePhabricator

Should be possible to disable language button on certain Wikis
Closed, ResolvedPublic1 Estimated Story Points


Many wikis do not have interwiki language links setup.
This includes 3rd parties, wikitech and

Thus the new language switcher should be feature flagged, disabled by default and configured on.
This wasn't a problem with the old language switcher as if no languages were available it would be hidden, but with the new language switcher it is always shown.

You can demonstrate this by visiting any page in the mobile beta. Every page shows a disabled language switcher button.

Acceptance Criteria

  • Ensure this does not interfere with EventLogging logic for Main Page (T131093)
  • The feature flag and its default value are documented on-wiki

Event Timeline

Jdlrobson raised the priority of this task from Medium to Needs Triage.Mar 17 2016, 5:28 PM
Jdlrobson added subscribers: KHammerstein, Amire80.

@Nirzar if the button is disabled on a high percentage of pages but not actionable it arguably should be (e.g. allow people to start translations/invoke ContentTranslation cc @Amire80 ).

We had similar issues with the lead photo upload button so you may want to talk to @KHammerstein if you haven't already.

What is the "language button"? Definition please.

It looks like you might want to respect $wgULSPosition.

[...] wikis do not have interwiki language links setup. [...] wikitech and

This is not correct.

It's tricky because we bundle variants with the list of languages. Even if a wiki may not have interwiki language links it maybe available in other variants of the language.

What is the "language button"? Definition please.

It's the button you see to the right of the Title and the left of the watchstar on

dr0ptp4kt set the point value for this task to 1.Mar 28 2016, 4:35 PM
Jdlrobson removed bmansurov as the assignee of this task.
Jdlrobson updated the task description. (Show Details)

Change 280498 had a related patch set uploaded (by Bmansurov):
Allow hiding the language button

Allowing time for @phuedx and @jhobs to comment on what the default value should be in case we want to change it before signing off. To remind myself... If we want to default it to false, we'll need to write a config change as well (currently not needed)

Change 280498 merged by jenkins-bot:
Allow hiding the language button

I think default should be true. Encourages 3rd parties to think in multi-language and as long as it's well-documented on how to turn it off, I see no reason not to have it on by default.

I'm OK with this feature being enabled by default; indeed, the "Read in another language" was introduced enabled by default.

phuedx updated the task description. (Show Details)

I've updated the AC to include documenting the feature flag (MinervaAlwaysShowLanguageButton) on-wiki. I don't feel that this affects our original estimate.