Bug 159395 - LanguageTool Server: use correct default URL, when username/API key set
Summary: LanguageTool Server: use correct default URL, when username/API key set
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Linguistic (show other bugs)
Version:
(earliest affected)
7.4.0.0 beta1+
Hardware: All All
: medium normal
Assignee: Leonid Ryzhov
URL:
Whiteboard: target:24.8.0 target:24.2.4
Keywords: difficultyBeginner, easyHack, skillCpp
Depends on:
Blocks: LanguageTool
  Show dependency treegraph
 
Reported: 2024-01-27 06:01 UTC by Mike Kaganski
Modified: 2024-05-03 23:25 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2024-01-27 06:01:44 UTC
In Options->Languages and Locales->LanguageTool Server, the "Base URL" box has the "Leave this field empty to use the free version" hint. Sometimes, people have difficulties finding the correct URL for their paid account: see e.g. https://ask.libreoffice.org/t/languagetool-premium-not-working/101101/11.

It is reasonable to use the correct automatic URL in case when the Username / API key fields are set: https://api.languagetoolplus.com/v2.

Code pointer: see LANGUAGETOOL_DEFAULT_URL in https://opengrok.libreoffice.org/xref/core/cui/source/options/optlanguagetool.cxx?r=16737129.
Comment 1 Stéphane Guillou (stragu) 2024-01-27 06:53:02 UTC
Yes please!
Comment 2 Commit Notification 2024-04-17 04:01:11 UTC
Leonid Ryzhov committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/155a6af93a8ac90cab15968f5dd499ab77ad9f72

tdf#159395-LanguageTool use correct default URL when username/APIkey set

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2024-04-20 20:35:40 UTC
Leonid Ryzhov committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

https://git.libreoffice.org/core/commit/e611b94a9afc0a9b7d60dbaca364615c1a5b2813

tdf#159395-LanguageTool use correct default URL when username/APIkey set

It will be available in 24.2.4.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.