[Koha-bugs] [Bug 4472] img tags in xslt broken after automatic translation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Jul 11 17:46:35 CEST 2010


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4472

Frédéric Demians <frederic at tamil.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |frederic at tamil.fr

--- Comment #7 from Frédéric Demians <frederic at tamil.fr>  ---
In French any English sentence like 'label:' is translated into 'french
label&nbsp;:' because French typographic rules impose to have a white space
before ':'.

&nbsp; is an entity reference. It comes from PO files and is added in .tmpl and
now in .xsl files. It works with .tmpl files. It doesn't with .xsl files. The
.tmpl tokenizer hasn't been designed to handle properly xml files. 

I see three solutions:

1. It would work if in the .po files &#160; was used rather thant &nbsp; So
   opac and intranet .po files should be modified and reload into Pootle.

2. XSL files are modified: an XML entity is added for nbsp. tmpl_process3.pl is
   modified to handle specifically <DOCTYPE> and <ENTITY> directives.

3. XSL files are tokenized independently than .tmpl files. This is the best
   solution for the long run.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Koha-bugs mailing list