[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 15:53:00 CEST 2011


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

--- Comment #3 from Frère Sébastien Marie <semarie-koha at latrappe.fr> 2011-06-05 13:53:00 UTC ---
I have found few others cases with Template Directive in tag, but where there
are not problem with transformation.

- in 'opac-user.tt'
<tr[% IF ( overdue ) %] class="overdue"[% END %]>

- in 'opac-detail.tt'
<li[% IF ( defaulttab == 'subscriptions' ) %] class="ui-tabs-selected"[% END
%]>

The difference seems to be that here, there are not string to be translated.

So problem may be corrected in 'tmpl_process3.pl': function 'text_replace_tag'.

Currently, if translation is found, the HTML element is "rewrited" based on
attributes parsed (where directives are not tagged as DIRECTIVE, and in
HASHTABLE [so order is lost]).

So two solutions:
 - work in 'TTParser.pm' for correctly tag DIRECTIVE in tag-element, and
processing accordingly in 'text_replace_tag'

 - work in 'tmpl_process3.pl' for another method (like regex, but it not a very
strong method...)

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