Page MenuHomePhabricator

Extension:Translate's languages box should look like interwiki language links
Closed, ResolvedPublic

Assigned To
Authored By
Mar 16 2014, 12:38 AM
Referenced Files
F25970010: image.png
Sep 17 2018, 2:09 PM
F25699900: Screen Shot 2018-09-07 at 4.03.08 PM.png
Sep 7 2018, 11:20 PM
F25699980: Screen Shot 2018-09-07 at 4.07.39 PM.png
Sep 7 2018, 11:20 PM
F18774401: image.png
Jun 5 2018, 7:00 AM
F18771360: image.png
Jun 5 2018, 5:33 AM
F18693786: image.png
Jun 3 2018, 11:11 AM
"Love" token, awarded by QuimGil.


The <languages /> box used by the Translate extension was ok for a first iteration but it needs a graduation as a proper list of languages available:

  1. It should be provided automatically, without relying on editors adding it manually to the content area.
  1. It should emulate a list of interwiki languages, with the same location and look & feel that users of Wikipedia et al are used to.

See Also:
T53533: Translation information under the page title is too obtrusive

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:54 AM
bzimport set Reference to bz62702.
bzimport added a subscriber: Unknown Object (MLST).
Qgil set Security to None.

Is there even a skin-neutral way to add interwiki-like links? Does the other projects sidebar work in any skin?

It would depend on how the sidebar portlet is actually added, on the
front or back end, etc...

A lot of skins do use the same, or similar, sidebar rendering for their
navigation as vector/monobook, but classes and ids can change, and
specific ones (like interlanguages) are often moved about... to do it
properly we would probably need a dedicated function to place it in so
the skins can decide it for themselves, with it as part of the default
sidebar, but also available for use in general.

Change 437062 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/Translate@master] Allow displaying page translation language list in the sidebar

When the page is translated into many languages, the language list takes way too much space:

image.png (1×1 px, 484 KB)

Santhosh requested a screenshot:

image.png (1×2 px, 544 KB)

Minerva doesn't have this menu so the button will disappear from mobile. What should the language button link to as a fallback?
Will the proposed changes also provide a common interface for obtaining languages e.g. via SpecialPage->getLanguages?

Minerva doesn't have this menu

These language links are injected to the list of interlanguage links, so whatever Minerva does with them also applies to these language links. That should be confirmed by testing of course, I have not done that.

Change 437062 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Allow displaying page translation language list in the sidebar

@Nikerabbit I cannot expand interlanguage links on - got a javascript error:

Screen Shot 2018-09-07 at 4.03.08 PM.png (438×627 px, 99 KB)

TypeError: Cannot read property 'interlanguageList' of undefined

Is it an old bug?

Otherwise looks and works fine - I checked all available skins, e.g. the screenshot with Timeless skin:

Screen Shot 2018-09-07 at 4.07.39 PM.png (584×1 px, 247 KB)

Thx, @Nikerabbit and @Amire80! This ticket is Resolved.

@QuimGil added the User-notice tag. Even though this change is merged and already seen on, it is not going to be seen on Wikimedia sites until a deployment of a configuration change. No date for it is planned yet, but it may happen Some Time Soon. When it will deployed, then there should indeed be a user notice about it.

Small design suggestion: maybe only ≈full translations should have icons alongside them? It seems strange to draw notice for incomplete translations, which is what these icons will do for most readers. (Other than that, it’s great, btw.)

There is question about new look: this is designed identically with interwiki language links pane.

But what about the pages that have both translations and interwiki? For example, (as comparision with
How will they differ on the same page? Currently used these same message from header?

image.png (898×1 px, 217 KB)