Bug 159395

Summary: LanguageTool Server: use correct default URL, when username/API key set
Product: LibreOffice Reporter: Mike Kaganski <mikekaganski>
Component: LinguisticAssignee: Leonid Ryzhov <leoryzhov>
Status: RESOLVED FIXED    
Severity: normal CC: aron.budea, mentoring, sophi, stephane.guillou
Priority: medium Keywords: difficultyBeginner, easyHack, skillCpp
Version: 7.4.0.0 beta1+   
Hardware: All   
OS: All   
Whiteboard: target:24.8.0 target:24.2.4
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 155314    

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.