Bug 392612

Summary: Spellchecking po files
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: Julien Hardelin <jhardlin>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph, jonathan.poelen
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Julien Hardelin 2018-04-01 18:41:20 UTC
When working on po files, would it be possible to spellcheck only translated msgstr strings and not also msgid ones?
Comment 1 Christoph Cullmann 2018-08-15 21:58:44 UTC
That is possible but will need extensions to the highlighting file which defines which parts can be spellchecked.
Comment 2 Christoph Cullmann 2019-08-24 16:08:56 UTC
Jonathan, would you want to give this some try, given you updated the gettext stuff in the past?
Comment 3 Jonathan Poelen 2019-08-25 17:17:37 UTC
It's conceivable for me, I'll look at it in the following days.
Comment 4 Christoph Cullmann 2019-08-25 17:24:56 UTC
Thanks!
Comment 5 Jonathan Poelen 2019-08-28 00:05:27 UTC
Git commit 0f150cafac4ba81916d2f11f8d6a3ec11049126b by Jonathan Poelen.
Committed on 28/08/2019 at 00:19.
Pushed by jpoelen into branch 'master'.

Gettext: Add "Translated String" style and spellChecking attribute

Summary:
New style ("Translated String") for a string associated with msgstr. Normal String and some other styles are now spellChecking=false.

Hardcoded colors are removed.

Reviewers: #framework_syntax_highlighting, dhaumann, cullmann

Reviewed By: #framework_syntax_highlighting, cullmann

Subscribers: kwrite-devel, kde-frameworks-devel

Tags: #kate, #frameworks

Differential Revision: https://phabricator.kde.org/D23513

M  +28   -28   autotests/html/highlight.po.html
M  +19   -19   autotests/reference/highlight.po.ref
M  +59   -35   data/syntax/gettext.xml

https://commits.kde.org/syntax-highlighting/0f150cafac4ba81916d2f11f8d6a3ec11049126b