Bug 410068 - Add LanguageTool support to Lokalize
Summary: Add LanguageTool support to Lokalize
Status: RESOLVED FIXED
Alias: None
Product: lokalize
Classification: Applications
Component: editor (show other bugs)
Version: 19.04.0
Platform: Chakra Linux
: NOR wishlist
Target Milestone: ---
Assignee: Simon Depiets
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-21 12:36 UTC by Adrián Chaves (Gallaecio)
Modified: 2022-08-19 13:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrián Chaves (Gallaecio) 2019-07-21 12:36:46 UTC
It would be great if, in addition to basic spell checking, Lokalize supported grammar and style checking through something like LanguageTool.
Comment 1 Simon Depiets 2020-03-08 15:31:24 UTC
Git commit 20ca5fbe44fbbe106299a5d43312ed4ffdad2e64 by Simon Depiets.
Committed on 08/03/2020 at 15:26.
Pushed by sdepiets into branch 'master'.

Adding LanguageTool support

This patch adds LanguageTool support in the Unit Metadata widget.
You can launch a LanguageTool verification by pressing Ctrl+J at the moment.
I will add a timer feature which will launch a check automatically after X seconds of inactivity.
This also fixes a %1 escaping i18n issue in a tooltip
And refactoring of UnitMetadata pology feature to make it independent from temporaryNotes.

M  +8    -0    src/CMakeLists.txt
M  +6    -0    src/editortab.cpp
M  +1    -0    src/editorui.rc
A  +81   -0    src/languagetool/languagetoolgrammarerror.cpp     [License: GPL (v2+)]
A  +38   -0    src/languagetool/languagetoolgrammarerror.h     [License: GPL (v2+)]
A  +59   -0    src/languagetool/languagetoolmanager.cpp     [License: GPL (v2+)]
A  +45   -0    src/languagetool/languagetoolmanager.h     [License: GPL (v2+)]
A  +67   -0    src/languagetool/languagetoolparser.cpp     [License: GPL (v2+)]
A  +31   -0    src/languagetool/languagetoolparser.h     [License: GPL (v2+)]
A  +164  -0    src/languagetool/languagetoolresultjob.cpp     [License: GPL (v2+)]
A  +75   -0    src/languagetool/languagetoolresultjob.h     [License: GPL (v2+)]
M  +32   -11   src/msgctxtview.cpp
M  +3    -1    src/msgctxtview.h
M  +11   -0    src/prefs/lokalize.kcfg
M  +12   -1    src/prefs/prefs.cpp
M  +1    -6    src/prefs/prefs_general.ui
A  +89   -0    src/prefs/prefs_languagetool.ui
M  +0    -5    src/syntaxhighlighter.cpp
M  +1    -0    src/syntaxhighlighter.h
M  +35   -1    src/xlifftextedit.cpp
M  +5    -0    src/xlifftextedit.h

https://commits.kde.org/lokalize/20ca5fbe44fbbe106299a5d43312ed4ffdad2e64
Comment 2 Simon Depiets 2020-03-08 15:37:10 UTC
Let me know if I should add a warning or disclaimer that data will be sent online to the LanguageTool server. I couldn't care less but I know it might be touchy for some people in the community.

Do you think I shall add a reference to their website in the "About/Thanks to" dialog or in the Config dialog's LanguageTool page? Or both?