Page MenuHomePhabricator

Interwiki Hovercards: Use user language with fallback to site language
Open, LowPublic


(This is feature request suggested in hewiki)
It would be cool if we could make Hovercards show popup with contents in the user language, rather than the site language if available, and use the site language only as fallback. (this could be optional preference for hovercards). This would be super useful for readers for both reader and editors: for reader of small language X who use enwiki when they don't have corresponding article in Xwiki, and useful for translators.

Event Timeline

eranroz created this task.Feb 23 2016, 5:30 PM
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptFeb 23 2016, 5:30 PM

PS: The ContentTranslation extension have some sort of similar function - when you click on a link, you get the link in your own language if exist, and as a fallback the link in the source language.

bd808 triaged this task as Low priority.Feb 23 2016, 6:10 PM

@eranroz Could you please add an example page? Do you mean we should do this for links from hewiki to enwiki (for example)?

Here is a motivating example with mock screenshot:
Supposed I'm farsi speaker looking for "K-means" article. Since K-means doesn't exist in fawiki, I'm going to enwiki
While reading the article I encounter a term "cluster analysis" which I would like to get its summary - preferably in farsi so I'm moving the mouse over the link and Popup with Farsi content appears rather then enwiki.

Mockup (for

Prtksxna added a comment.EditedMar 10 2016, 12:39 PM

Thanks for the explanation @eranroz!

I see, so this would need cross-wiki uploads and then switching wikis based on user languages. Is that right?

I am not sure if this is the experience the user would expect. The user is only setting the UI language, getting content from a different wiki because of this setting might not be a good idea.

Or are you saying that the content of enwiki should be machine translated and shown? That would still mean that we are changing content language based on the UI language setting.

Prtksxna removed a subscriber: Prtksxna.Jul 5 2016, 11:30 AM