Extension talk:Lingo

Jump to navigation Jump to search

About this board

TimoKausK (talkcontribs)

I installed MW 1.35.1 and Lingo is active.

In the Special:Version page no Terminology Page - Link was shown. So I created the Terminology Page with some definitions in the main Space.

But. Nothing happens. I googled that behavior and found nothing that matches my problem.

Can anyone help me out?

F.trott (talkcontribs)

It seems that the link disappeared from the Description column together with the rest of the extension description in one of the last MW versions.

On a non-english wiki the page will be called differently. You can go to the page MediaWiki:Lingo-terminologypagename on your wiki to find the actual name.

Edit: Last version showing the description correctly was apparently 1.34, so something must have changed in 1.35

TimoKausK (talkcontribs)

This is it!

So so many thanks from Germany where Terminology - Page is named 'Glossar' ! (talkcontribs)

Mediawiki 1.36.2

php 7.4.3

Lingo 3.1.1

Fatal exception of type "ArgumentCountError"

I get this error on any actual page, not on Special pages.

I have a page named Terminology created before enabling the extension.

When I disable Lingo in the LocalSetttings, everything works fine. (talkcontribs)

I confirm the "ArgumentCountError" problem. Same software versions.

Reply to "Can not make it run"

Definition popup box display problem

Issiegainsley (talkcontribs)

My hoover over DOES work but it is displaying at the full length of the main window and at the very bottom of the browser. (chrome).

ProductVersionMediaWiki1.32.3 (aadd77b)PHP7.3.10 (cgi-fcgi)MySQL8.0.17

Have you seen this before? If not I can include more information.

Seb35 (talkcontribs)

This was reported as a bug on Phabricator. There is a fix proposed on Phabricator and I submitted a perennial fix yesterday, so it will be fixed in a future version.

Reply to "Definition popup box display problem"

Feature request: Exclude headings from lookup

Amousey (talkcontribs)

Feature request - any common terms including acronyms that are used in part of a heading, especially a subheading, cause a messy and unhelpful layout - these are especially common as the last or first word in a heading. Excluding these, or excluding certain tags from lookup would be helpful.

Eg h1 - h5

Amousey (talkcontribs)
Reply to "Feature request: Exclude headings from lookup"

Feature request: Ability to exclude a term from lookup, depending on surrounding words

Amousey (talkcontribs)

If you have "Enterprise" in the glossary, but some pages contain the phrase "The Starship Enterprise" then it would be helpful to not have the glossary term highlighted in that phrase. Other examples would be words with meanings that depend on context, eg lookup American (definition: USA) but not North American (which includes Canada).

Secondly, have some definitions appear in the glossary but that don't automatically get looked up (no dotted border) / which would make the glossary very helpful for browsing.

This comes up a great deal on medical terms, where syndrome, disease, illness and disorder are all helpful to have in the glossary for those browsing it - but almost every diagnosis seems to include one of those words as part of the name. So they would be looked up on most pages.

Amousey (talkcontribs)
Reply to "Feature request: Ability to exclude a term from lookup, depending on surrounding words"
Krabina (talkcontribs)
SLauser (talkcontribs)

For what it's worth, I would love to see a working Lingo extension again as well. I'm 0% familiar with how extensions are built, but could potentially assist with maintenance if someone more experienced steps up to take the reins.

Planetenxin (talkcontribs)
Reply to "Next release?"

Bug: Lingo not running on custom namespaces

000Tom0000 (talkcontribs)

I've created a custom namespace but noticed that Lingo isn't loaded on this namespace. The documentation says that by default Lingo will run on all namespaces but this seems to be only for the default namespaces?

Is this by intention? Enabling it on your custom namespaces can be done as the documentation says.

F.trott (talkcontribs)
000Tom0000 (talkcontribs)

Running a mediawiki without any caching at the moment, it started working as soon as I explicitely added the custom namespace to the LocalSettings.

Reply to "Bug: Lingo not running on custom namespaces"

Bug: definitions not displayed with Lingo 3.0

Summary by Seb35

When installed together with Semantic MediaWiki. Fixed in 3.1.0.

Seb35 (talkcontribs)

In fact I already found the solution, this post is to help users in the same case.

When Lingo 3.0 is installed with Semantic MediaWiki, the definition are not displayed (…properly, because they are displayed at the end of the page if you can see this part). This was a name conflict for the ResourceLoader module called ext.jquery.qtip already used by Semantic MediaWiki. This was fixed in Lingo by Stephan on 9 September 2019, and published in Lingo 3.1.0.

So it can be fixed by upgrading Lingo to 3.1.0 (or newer).

Feature request: don't lookup terms enclosed in round brackets

Amousey (talkcontribs)

It would be helpful to not have Lingo lookup terms enclosed in round brackets, or at least to have an option for this. What often happens is a term's acronyms are added an alternatives in the glossary eg Internet Service Provider and ISP - which is really useful - but on more basic pages you end up with both terms being looked up right after each other:

To connect to the internet, you need to connect to an Internet Service Provider (ISP) such as Verizon...

Although __NOGLOSSARY__ can be used it is rather cumbersome, the search results show this any markup, meaning it less readable when key terms are searched.

Reply to "Feature request: don't lookup terms enclosed in round brackets"

Lingo tooltip does not display in RTL wikis

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


F.trott (talkcontribs)

My first guess would be the CSS. It might do some styling or positioning without considering the direction of the language. (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": [
   "styles": [
   "noflip": true
} (talkcontribs)

Awesome, that did the trick!

Thanks a bunch, this extension is really helpful :) (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) (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"

Mediawiki version 1.32.1-0- dotted lines not showing

3 (talkcontribs)

Worked perfectly on i 1.26.2. But in this instance, while the text shows if you hover, the little dotted lines indicating same do not. (talkcontribs)

FYI I can be reached at kgray@sei-security.com. I am unable to register. Name is Kendall. (talkcontribs)

Resolved via lingo.less adjustments.

Reply to "Mediawiki version 1.32.1-0- dotted lines not showing"