[Koha-bugs] [Bug 6458] incorrect parsing result in translation processing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Jun 5 14:12:24 CEST 2011


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

--- Comment #1 from Frère Sébastien Marie <semarie-koha at latrappe.fr> 2011-06-05 12:12:24 UTC ---
It seems the problem is in 'misc/translator/TTParser.pm', in the processing of
tag (function 'start', for handling opening html tags).

It isn't expected to have "template text" at the tag level:
<tagname attr1="value1" templateText attr2="value2" ...>

So TTParser interprete this as:
<tagname attr1="value1" templateText="templateText" attr2="value2" ...>

In the reported example:
<input type="button" value="Renew Item" [% UNLESS ( renew ) %] name="confirm"[%
END %] class="renew"
onclick="this.form.confirmed.value='1';this.form.submit();" />

TTParser read as:
 tagname=input
 attributes = {



In template, the two only occurrences I found in this scheme are in
'modules/sco/sco-main.tt'...

-- 
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