Bug 153855 - Spanish Logo syntax highlighting file: Wrong ampersand descriptor
Summary: Spanish Logo syntax highlighting file: Wrong ampersand descriptor
Status: RESOLVED NOT A BUG
Alias: None
Product: i18n
Classification: Translations
Component: es (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Cies Breijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-11 17:58 UTC by Fabio Correa
Modified: 2012-08-15 09:53 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.8 (all versions part of KDE 4.0.0+)
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Correa 2007-12-11 17:58:58 UTC
Version:            (using KDE KDE 3.5.8)
Installed from:    Gentoo Packages
Compiler:          gcc-4.1.1 gentoo ebuild 4.1.1-r3
OS:                Linux

The Logo syntax highlighting file logohighlightstyle.es.xml has a wrong ampersand description at line 80. The description must be quoted.

However, I noticed that writing & instead of & does not bring the results of having ampersands highlighted in the user's logo files, so I used the AnyChar tag. Here is the patch:

--- logohighlightstyle.es.old   2007-12-11 10:38:27.000000000 -0500
+++ /usr/kde/3.5/share/apps/katepart/syntax/logohighlightstyle.es.xml   2007-12-11 11:41:36.000000000 -0500
@@ -77,7 +77,6 @@
   </list>

   <list name="boolops">
-       <item> & </item>
        <item> o </item>
        <item> no </item>
   </list>
@@ -89,6 +88,7 @@
       <keyword attribute="Statements" String="statements" context="#stay"/>
       <keyword attribute="Execution Controllers" String="controllers" context="#stay"/>
       <keyword attribute="Boolean Operators" String="boolops" context="#stay"/>
+      <AnyChar attribute="Boolean Operators" String="&amp;" context="#stay"/>

       <RegExpr attribute="Expressers" String="([!=&gt;&lt;][=]|[&gt;&lt;])" context="#stay"/>
       <RegExpr attribute="Normal" String="[a-zA-Z_][a-zA-Z_0-9]+" context="#stay"/>
Comment 1 Pino Toscano 2007-12-19 10:50:54 UTC
It's a problem of the Spanish KTurtle syntax highlighting file, not with Kate itself.
Comment 2 Marek Laane 2008-01-09 01:09:57 UTC
Seems to be incorrect yet as of today (http://websvn.kde.org/*checkout*/branches/stable/l10n/es/data/kdeedu/kturtle/logohighlightstyle.es.xml?revision=479030 says "XML parsing error - letter is expected in row 80, column 10 - <item> & </item>")
Comment 3 Enrique Matías Sánchez 2008-02-12 11:06:33 UTC
This bug doens't seem to be in the KDE Spanish translation, but in KTurtle itself.
Comment 4 Albert Astals Cid 2010-03-04 00:18:46 UTC
Why you say that Enrique?
Comment 5 Eloy Cuadra 2012-08-15 09:00:49 UTC
Can't find this file ([...]/es/data/kdeedu/kturtle/logohighlightstyle.es.xml) in our translations. Maybe it was removed long time ago.

Should I change this bug's status as RESOLVED?
Comment 6 Eloy Cuadra 2012-08-15 09:52:11 UTC
It seems it was fixed in KDE 4.0.
Comment 7 Albert Astals Cid 2012-08-15 09:53:54 UTC
Translation of kturtle commands is done through .po files so this error is not there anymore.