@@ -, +, @@
- Go to the OPAC main page and check the user dashboard area.
- Confirm that the correct numbers and plural forms are shown for
checkouts, overdues, holds pending, holds waiting, and messages.
- Test each of those categories with counts of 0, 1, and more than one
to confirm that the plural forms are correct.
- Test with various counts of each type of message: OPAC notes as
defined when editing a patron record and notes added via the checkout
page.
---
.../opac-tmpl/bootstrap/en/modules/opac-main.tt | 50 +++++++++++++++++++---
1 file changed, 43 insertions(+), 7 deletions(-)
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt
@@ -5,6 +5,7 @@
[% USE Categories %]
[% USE Price %]
[% USE KohaNews %]
+[% PROCESS 'i18n.inc' %]
[% SET OpacNavRight = KohaNews.get( location => "OpacNavRight", lang => lang, library => branchcode ) %]
[% SET OpacMainUserBlock = KohaNews.get( location => "OpacMainUserBlock", lang => lang, library => branchcode ) %]
[% SET OpacLoginInstructions = KohaNews.get( location => "OpacLoginInstructions", lang => lang, library => branchcode ) %]
@@ -218,25 +219,60 @@
[% IF checkouts && checkouts > 0 %]
- - [% checkouts | html %] checkout(s)
+ -
+
+ [% checkouts | html %]
+ [% tn('checkout', 'checkouts', checkouts ) %]
+
+
[% END %]
[% IF overdues && overdues > 0 %]
- - [% overdues | html %] overdue(s)
+ -
+
+ [% overdues | html %]
+ [% tn('overdue', 'overdues', overdues ) %]
+
+
[% END %]
[% IF holds_pending && holds_pending > 0 %]
- - [% holds_pending | html %] hold(s) pending
+ -
+
+ [% holds_pending | html %]
+ [% tn('hold pending', 'holds pending', holds_pending ) %]
+
+
[% END %]
[% IF holds_waiting && holds_waiting > 0 %]
- - [% holds_waiting | html %] hold(s) waiting
+ -
+
+ [% holds_waiting | html %]
+ [% tn('hold waiting', 'holds waiting', holds_waiting ) %]
+
+
[% END %]
[% IF total_owing && total_owing > 0 %]
- - [% total_owing | $Price with_symbol => 1 %] due in fines and charges
+ -
+
+ [% total_owing | $Price with_symbol => 1 %]
+ due in fines and charges
+
+
[% END %]
[% IF patron_messages && patron_messages.count > 0 || opacnote %]
[% IF opacnote %]
- - [% patron_messages.count + 1 | html %] message(s)
+ -
+
+ [% patron_messages.count + 1 | html %]
+ [% tn('message', 'messages', patron_messages.count + 1 ) %]
+
+
[% ELSE %]
- - [% patron_messages.count | html %] message(s)
+ -
+
+ [% patron_messages.count | html %]
+ [% tn('message', 'messages', patron_messages.count ) %]
+
+
[% END %]
[% END %]
--