[Koha-bugs] [Bug 15304] Norwegian patron database: translatable strings added to all po files
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Dec 10 08:42:44 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15304
--- Comment #5 from paxed <pasi.kallinen at pttk.fi> ---
If I eyeballed the patch correctly, all the changed lines are in the format:
[% IF ( p.FOO ) %]<li><span class="label">FOO: </span>[% p.FOO | html_entity
%]</li>[% END %]
So, guessing it could be accomplished with something like this:
[%BLOCK output_nlsearch_line %]
[% IF ( p.$nlvar ) %]<li><span class="label">[% nlvar %]: </span>[% p.$nlvar |
html_entity %]</li>[% END %]
[% END %]
and then called like
[% PROCESS output_nhsearch_line nlvar="hjemmebibliotek" %]
[% PROCESS output_nhsearch_line nlvar="opprettet" %]
etc.
That would prevent the texts from showing for translation up in the first
place,
and does look a bit cleaner to my eyes.
But I haven't tested that, so perhaps it's not possible with Template Toolkit.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list