Jump to content

Extension talk:Lingo

Add topic
From mediawiki.org
Latest comment: 2 months ago by Elcapitan68 in topic Two character terms?

Two character terms?

[edit]

It seems it is not possible to have two character terms in Lingo. Is that some technical limitation or could this be implemented? Krabina (talk) 14:52, 26 May 2025 (UTC)Reply

Hi, @Bernhard. There shouldn't be any issue using two-character terms in Lingo. In a quick test, the term "TL" appeared as expected (underlined and with a popup) [screenshot]. Could you please share some details about your environment (MediaWiki/Lingo version) and what kind of caching you're using? Elcapitan68 (talk) 13:23, 29 May 2025 (UTC)Reply
Hello am facing the same issue when using lingo(3.2.3) with Semantic glossary(5.0.1).
Am on mediawiki 1.39
Postgresql 15 Willyedoo (talk) 08:39, 18 September 2025 (UTC)Reply
I think the issue may result from this file of semantic glossary. It specify 3 letters as min length.
if ( strlen( $term ) < 3 ) {
   continue;
}
https://github.com/SemanticMediaWiki/SemanticGlossary/blob/master/src/LingoBackendAdapter.php
When Lingo is active alone, all works fine. The issue appear as soon as sematic glossary is activated. Willyedoo (talk) 14:10, 18 September 2025 (UTC)Reply
Thank you for sharing your experience, @Willyedoo. Since testing Lingo worked successfully on both your side and mine, and the issue lies with the SemanticGlossary extension, I am closing this thread. Elcapitan68 (talk) 14:32, 20 September 2025 (UTC)Reply

MW 1.44 Hot Fix

[edit]

Since "Title" was dropped in 1.44, you will run into an error when installing this extension.

Until it is updated, you will need to edit the BasicBackend.php file (located in the extensions/Lingo/src directory) to update this:

Go to line 36

use Title;

Replace with

use \MediaWiki\Title\Title;

That should fix any parsing issues.

Also, note that this is reported as https://phabricator.wikimedia.org/T398763. Joe Beaudoin Jr. Redux (talk) 22:53, 5 July 2025 (UTC)Reply

After upgrading to 1.44, and with Lingo installed, if I try to edit a page using Edit, instead of Edit source, I now get:
[36ec8aba616bf2d232a04c8e] Exception caught: Lingo\Lingo::{closure:{closure:Lingo\Lingo::initExtension():48}:76}(): Argument #2 ($title) must be of type Title, MediaWiki\Title\Title given, called in /home/wbymlrtq/michaelbeijer/w/includes/HookContainer/HookContainer.php on line 155
A workaround is to then click Dismiss, and then Edit source, and then save from there, which does work.
M.J.W.B. (talk) 23:18, 10 July 2025 (UTC)Reply
We are monitoring the bug on Phabricator. The patch (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Lingo/+/1166508) is currently failing CI. If you don't plan to continue working on the patch, please let me know and we can consider working on it ourselves.
Elcapitan68 (talk) 21:27, 13 July 2025 (UTC)Reply
Hi there! I am definitely won't be working on the patch as I can't code, but would greatly appreciate someone else doing so since I use the extension on my website (https://michaelbeijer.co.uk/). M.J.W.B. (talk) 16:17, 15 July 2025 (UTC)Reply
Got it. We'll have a closer look. Please note that the compatibility policy of Lingo is long-term support release branches and there is no official support for non-LTS branches.
Elcapitan68 (talk) 15:48, 20 July 2025 (UTC)Reply
Hey there! Not really a coder, so any official work would be helpful. Thanks! Joe Beaudoin Jr. Redux (talk) 14:12, 8 September 2025 (UTC)Reply