Bug 401740

Summary: Kate Scheme names are untranslatable
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Burkhard Lück <lueck>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph, nate, veqz
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Burkhard Lück 2018-12-04 15:44:02 UTC
wcgrep "\[" src/data/kateschemarc 
src/data/kateschemarc:2:[Normal]
src/data/kateschemarc:34:[Printing]
src/data/kateschemarc:66:[KDE]
src/data/kateschemarc:70:[Breeze Dark]
src/data/kateschemarc:102:[Solarized (light)]
src/data/kateschemarc:134:[Solarized (dark)]
src/data/kateschemarc:165:[Vim (dark)]
Comment 1 Burkhard Lück 2018-12-04 15:49:06 UTC
These strings are displayed in the menu View->Schema and on the Fonts & Colors page in Kate's settings dialog.

It is not possible for Scripty to extract those strings via an ExtraDesktop.sh file, because Scripty needs a Name= key to work.
Comment 2 Tore Havn 2019-09-13 15:23:26 UTC
But is this something we really want to translate? These are all proper nouns, are they not?
Comment 3 Dominik Haumann 2019-09-14 18:43:22 UTC
This should certainly be fixed and is a shortcoming of the current implementation.

There is hope, though: Recently, KTextEditor internally switched to the KSyntaxHighlighting framework for highlighting. This is a gradual process though, meaning that it does not yet use the Theme class from the KSyntaxHighlighting framework. Instead, KTextEditor still uses the "Schema" classes that are around in ktexteditor.git.

The good news: Once we push more to this, we will only use the colors that are provided by the KSyntaxHighlighting::Theme class. At that point in time, we of course also use the names of the Themes, and Theme has ::name() and ::translatedName(), see:
https://api.kde.org/frameworks/syntax-highlighting/html/classKSyntaxHighlighting_1_1Theme.html#aaead19e67bdc6ce6e45e195f51317d36

Therefore: In KSyntaxHighlighting this is fixed. And once we move over to KSyntaxHighlighting for Themes fully, the file 'kateschemarc' will be fully dropped. And then, this will be fixed automatically.

If you have a simple fix for KTextEditor today, then it's ok to fix this. But if not, then this gets resolved automatically later. (Whatever 'later' means...)
Comment 4 Christoph Cullmann 2020-12-15 20:16:07 UTC
I think this is done now.
That file is gone and we use the KSyntaxHighlighting translated names.