Language regions (e.g. en-GB) when using LanguageTool in Checkmate don't seem to work

11 views
Skip to first unread message

danielhug

unread,
Aug 22, 2024, 11:43:58 AM8/22/24
to okapi-users
I am trying to get LanguageTool to check my files using en-GB, but all it checks for is en. Is that a known issue or am I doing something wrong? Source and target are correctly set, with sub-languages/regions. I also don't seem to be able to set the motherTongue.

danielhug

unread,
Aug 22, 2024, 4:34:37 PM8/22/24
to okapi-users
I tinkered around a bit more, and if I enter a parameter in Checkmate it causes an error that reveals the string that is sent to the LT API:
2024-08-22 21_27_23-Untitled - CheckMate.png
So I can't enter any parameters because Checkmate adds to the base URL before starting the parameter string. My first question is - why does it say "language=en" instead of "language=en-GB"?
Here is a screenshot from my session settings:
2024-08-22 21_31_22-Session Settings.png
More in the line of feature requests, if there was a way to add parameters, even with a text field, that would be cool.
This might all be my bad. I might be missing something. Thanks for your help.
Daniel

Chase Tingley

unread,
Aug 22, 2024, 6:46:20 PM8/22/24
to danielhug, okapi-users
Hi Daniel,

This looks like a bug:


Also, based on the way this method is called (here), it looks like we are setting the mother tongue to be the source language.  (You should be able to verify this by looking at the &motherTongue= portion of the URL that is blurred out in your screenshot.)

Can you file an issue on the issues page (https://bitbucket.org/okapiframework/okapi/issues)?

ct  

--
You received this message because you are subscribed to the Google Groups "okapi-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to okapi-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/okapi-users/9364fc4c-fece-498c-a775-4ba9a994ac7en%40googlegroups.com.

danielhug

unread,
Aug 23, 2024, 4:49:35 AM8/23/24
to okapi-users
Hi Chase,
Daniel

Reply all
Reply to author
Forward
0 new messages