Topic on Extension talk:Lingo

Lingo tooltip does not display in RTL wikis

8
212.29.205.105 (talkcontribs)

Hi F.trott,


I am using Mediawiki version 1.34.0 and it seems the extension does not work when I use a right to left language (for example Hebrew), while the text is underlined and seems to be recognized as text defined in the glossary page a tooltip does not show up.

Once I switch the language to a left to right language the tooltip shows up fine and everything seems to be working. Any possible solution for this? I tried this with multiple skins and that had no effect, it seems the extension stops working once the wiki switches to a right to left alignment.


Thanks.

F.trott (talkcontribs)

My first guess would be the CSS. It might do some styling or positioning without considering the direction of the language.

212.29.205.105 (talkcontribs)

Any way to fix that quickly?/Any chance it will be fixed in a future update?

F.trott (talkcontribs)

The quick and dirty way would be to fix the extension.json of Lingo. You need to tell MW not to flip the qTip styles. The module definition should look like this (note the "noflip" option):

"ext.Lingo.jquery.qtip": {
   "scripts": [
      "libs/jquery.qtip.js"
   ],
   "styles": [
      "styles/jquery.qtip.css"
   ],
   "noflip": true
}
212.29.205.105 (talkcontribs)

Awesome, that did the trick!


Thanks a bunch, this extension is really helpful :)

212.29.205.105 (talkcontribs)

Hey F.trott

After doing the change you suggested I noticed another issue, it seems that when the extension is enabled with the fix you suggested pages that have tooltips display the "edit" link on headers to guests despite the fact they should not see it.

F.trott (talkcontribs)
212.29.205.105 (talkcontribs)

Yeah its weird but only by disabling Lingo those edit links disappear for guests :\

Reply to "Lingo tooltip does not display in RTL wikis"