It would be great if, in addition to basic spell checking, Lokalize supported grammar and style checking through something like LanguageTool.
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
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?