Bug 254863

Summary: html export not working in Italian
Product: [Translations] i18n Reporter: Frediano Ziglio <freddy77>
Component: itAssignee: kde-i18n-it
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Frediano Ziglio 2010-10-21 11:31:25 UTC
Version:           2.3 (using KDE 4.5.1) 
OS:                Linux

We narrow down an HTML export problem. Trying exporting to HTML using Italian localization program does not export anything. Launching from console program output an error loading tellico2html.xsl file. The wrong line was something like

<xsl:attribute>Cer&ca</xsl:attribute>

(Cerca is the Italian translation for Search). Looking at tellico2html.xsl you can find a 

<xsl:attribute><i18n>Search</i18n></xsl:attribute>

in Italian .po file you can find a translation for "Search" to "Cer&ca" (probably the & came from a menu). The problem is that for xsl localization "Search" is translated to "Cer&ca" and not with "Cer&amp;ca" so xsl got wrong and export fails. Note also that error is reported only using console and not by the GUI.

Replacing "Cer&ca" with "Cerca" in .po file and compiling/installing again solve the problem.

Thanks in advance
  Frediano Ziglio


Reproducible: Always

Steps to Reproduce:
1- open the program using Italian localication
2- open a .tc file
3- select File -> Export -> HTML

Actual Results:  
no html file and no error

Expected Results:  
html file generated
Comment 1 Pino Toscano 2010-10-21 20:01:23 UTC
SVN commit 1188217 by pino:

remove extra accelerator mark from translation

CCMAIL: pompafi@hotmail.it
BUG: 254863


 M  +1 -1      tellico.po  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1188217
Comment 2 Robby Stephenson 2010-10-22 04:20:33 UTC
SVN commit 1188333 by rstephenson:

Add workaround to escape strings that go into XML files.

CCBUG:254863


 M  +4 -0      ChangeLog  
 M  +4 -12     src/tellico_utils.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1188333