[Koha-bugs] [Bug 10049] Comments tab shows ( ) instead of ( 0 ) on translated templates
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Apr 15 15:45:38 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10049
--- Comment #2 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 17455
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17455&action=edit
Bug 10049 [Alternate] Comments tab shows ( ) instead of ( 0 ) on translated
templates
This patch is an alternate solution to the problem of "0" not appearing
on the comment tab in translated templates. It uses the Template Toolkit
option of specifying a default value for a variable:
[% reviews.size || 0 %]
This syntax is already in use elsewhere in the template.
Same test plan:
1) Make sure comments/reviews are activated
2) Find a record with 0 comments/reviews in the opac
3) The tab shows: Comments ( 0 )
4) Switch to any other languages.
5) Tab now shows: <translation of Comments> ( )
6) Apply patch
7) Check English templates stil work correctly
8) Rerun 'perl translate install <langcode>
9) Check display is now correct.
10) Also check that number shows correctly for records
with comments.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list