Bug 254863 - html export not working in Italian
Summary: html export not working in Italian
Status: RESOLVED FIXED
Alias: None
Product: i18n
Classification: Translations
Component: it (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kde-i18n-it
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-21 11:31 UTC by Frediano Ziglio
Modified: 2010-10-22 04:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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