[Koha-bugs] [Bug 26392] Wrap all translatable strings in opac-main.tt
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Sep 13 00:10:16 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26392
--- Comment #9 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
This appears to work well, but it doesn't really make the templates easier to
read...
- <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts"><span
class="user_checkouts_count count_label">[% checkouts | html %]</span>
checkout(s)</a></li>
Turns into:
+ [% count = BLOCK %]<span
class="user_checkouts_count count_label">[% checkouts | html %]</span>[% END %]
+ <li><a
href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts">[% tn('{count} checkout',
'{count} checkouts', checkouts) | html | $Expand count = count %]</a></li>
Can you explain a bit how this works? What is the BLOCK and Expand needed for?
We add tons more of | html filters... could this impact performance? I remember
when adding the filters in the first place it was an issue. It also adds to the
text. I wonder if there would be another way to go about these.
Could it make sense to only use the new syntax when we need singular/pluaral or
other more advanced methods?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list