@@ -, +, @@
tabs
- The tabs showing checkouts, holds, claims, etc. should show the
correct plural or singular on each label, e.g.:
14 Checkouts
20 Holds
0 Article requests
1 Club
- Test that each plural/singular changes appropriately when you add
checkouts, holds, clubs, etc.
- Update a translation:
> gulp po:update
> cd misc/translator
> perl translate update fr-FR
- Open the corresponding .po file for the strings pulled from
the templates e.g. misc/translator/po/fr-FR-messages.po
- Locate strings pulled from circulation.tt and moremember.tt
translation, e.g.:
#: koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt:770
msgid "Relatives' checkout"
msgid_plural "Relatives' checkouts"
msgstr[0] ""
msgstr[1] ""
- Edit the "msgstr[0]" and "msgstr[1]" strings however you want (it's
just for testing)
- Install the updated translation:
> perl translate install fr-FR
---
.../prog/en/modules/circ/circulation.tt | 51 ++++++----------
.../prog/en/modules/members/moremember.tt | 59 ++++++++-----------
2 files changed, 41 insertions(+), 69 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
@@ -8,6 +8,7 @@
[% USE ItemTypes %]
[% USE Price %]
[% USE AuthorisedValues %]
+[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% Asset.css("lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css") | $raw %]
@@ -761,65 +762,49 @@
-
- [% IF ( issuecount ) %]
- [% issuecount | html %] Checkout(s)
- [% ELSE %]
- 0 Checkouts
- [% END %]
+ [% issuecount | html %] [% tn('Checkout', 'Checkouts', issuecount) | $raw %]
[% IF relatives_issues_count %]
- - [% relatives_issues_count | html %] Relatives' checkouts
+ -
+ [% relatives_issues_count | html %] [% tn("Relatives' checkout", "Relatives' checkouts", relatives_issues_count) | $raw %]
+
[% END %]
-
- [% IF ( holds_count ) %]
- [% holds_count | html %] Hold(s)
- [% ELSE %]
- 0 Holds
- [% END %]
+ [% holds_count | html %] [% tn('Hold', 'Holds', holds_count) | $raw %]
[% IF Koha.Preference('ArticleRequests') %]
-
- [% patron.article_requests_current.count | html %] Article requests
+ [% patron.article_requests_current.count | html %] [% tn('Article request', 'Article requests', patron.article_requests_current.count) | $raw %]
[% END %]
[% IF Koha.Preference('ClaimReturnedLostValue') %]
-
- [% IF ( patron.return_claims.count ) %]
-
- Claim(s)
- [% IF patron.return_claims.resolved.count == 0 %]
- [% patron.return_claims.resolved.count | html %]
- [% ELSE %]
- [% patron.return_claims.resolved.count | html %]
- [% END %]
- [% IF patron.return_claims.unresolved.count == 0 %]
- [% patron.return_claims.unresolved.count | html %]
- [% ELSE %]
- [% patron.return_claims.unresolved.count | html %]
- [% END %]
-
- [% ELSE %]
- Claim(s)
- 0
- 0
+ [% patron.return_claims.unresolved.count | html %] [% tn('Claim', 'Claims', patron.return_claims.unresolved.count) | $raw %]
- [% END %]
[% END %]
- - [% debarments.count | html %] Restrictions
+ -
+
+ [% IF ( debarments.size > 0 ) %]
+ [% debarments.size | html %] [% tn('Restriction', 'Restrictions', debarments.size) | $raw %]
+ [% ELSE %]
+ 0 Restrictions
+ [% END %]
+
+
[% SET enrollments = patron.get_club_enrollments(1) %]
[% SET enrollable = patron.get_enrollable_clubs(0,1) %]
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
-
- Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
+ [% enrollments.count | html %] [% tn('Club', 'Clubs', enrollments.count) | $raw %]
[% END %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
@@ -7,6 +7,7 @@
[% USE AuthorisedValues %]
[% USE TablesSettings %]
[% USE Price %]
+[% PROCESS 'i18n.inc' %]
[% PROCESS 'member-display-address-style.inc' %]
[% PROCESS 'member-display-alt-address-style.inc' %]
[% SET footerjs = 1 %]
@@ -673,69 +674,55 @@
-
- [% issuecount | html %] Checkout(s)
+ [% issuecount | html %] [% tn('Checkout', 'Checkouts', issuecount) | $raw %]
+
[% IF relatives_issues_count %]
-
- [% relatives_issues_count | html %] Relatives' checkouts
+ [% relatives_issues_count | html %] [% tn("Relatives' checkout", "Relatives' checkouts", relatives_issues_count) | $raw %]
[% END %]
+
[% IF ( fines ) %]
-
Charges ([% fines | $Price %])
[% END %]
- [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
- -
- [% IF ( holds_count ) %]
- [% holds_count | html %] Hold(s)
- [% ELSE %]
- 0 Holds
- [% END %]
-
- [% END %]
+
+ -
+ [% holds_count | html %] [% tn('Hold', 'Holds', holds_count) | $raw %]
+
+
[% IF Koha.Preference('ArticleRequests') %]
-
- [% patron.article_requests_current.count | html %] Article requests
+ [% patron.article_requests_current.count | html %] [% tn('Article request', 'Article requests', patron.article_requests_current.count) | $raw %]
[% END %]
[% IF Koha.Preference('ClaimReturnedLostValue') %]
-
- [% IF ( patron.return_claims.count ) %]
-
- Claim(s)
- [% IF patron.return_claims.resolved.count == 0 %]
- [% patron.return_claims.resolved.count | html %]
- [% ELSE %]
- [% patron.return_claims.resolved.count | html %]
- [% END %]
- [% IF patron.return_claims.unresolved.count == 0 %]
- [% patron.return_claims.unresolved.count | html %]
- [% ELSE %]
- [% patron.return_claims.unresolved.count | html %]
- [% END %]
-
-
- [% ELSE %]
-
- Claim(s)
- 0
- 0
-
- [% END %]
+
+ [% patron.return_claims.unresolved.count | html %] [% tn('Claim', 'Claims', patron.return_claims.unresolved.count) | $raw %]
+
[% END %]
-
- [% debarments.size | html %] Restrictions
+
+ [% IF ( debarments.size > 0 ) %]
+ [% debarments.size | html %] [% tn('Restriction', 'Restrictions', debarments.size) | $raw %]
+ [% ELSE %]
+ 0 Restrictions
+ [% END %]
+
+
[% SET enrollments = patron.get_club_enrollments(1) %]
[% SET enrollable = patron.get_enrollable_clubs(0,1) %]
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
-
- Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
+ [% enrollments.count | html %] [% tn('Club', 'Clubs', enrollments.count) | $raw %]
[% END %]
--