From 6a777b07982f085c1ad8a985e53987160bcdc2ec Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 22 Nov 2013 08:54:10 -0500 Subject: [PATCH] Bug 11283 - Restriction type is not translatable The new restrictions system has different types: MANUAL, OVERDUES and SUSPENSION. Those are shown in the interface and seem to come directly from the database, so they are not translatable. As they are hardcoded translations should be possible and be handled in the template. Test Plan: 1) Create a patron with one of each type of restriction 2) Apply this patch 3) Note you see the type with only the first letter capitialized, this indicates you are seeing the translatable string --- .../prog/en/includes/borrower_debarments.inc | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc index 0998f19..dc8ca6d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc @@ -39,7 +39,16 @@ [% FOREACH d IN debarments %] - [% d.type %] + + [% SWITCH d.type %] + [% CASE 'MANUAL' %] + Manual + [% CASE 'OVERDUES' %] + Overdues + [% CASE 'SUSPENSION' %] + Suspension + [% END %] + [% d.comment %] [% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] Indefinite [% END %] [% IF ( CAN_user_borrowers )%] -- 1.7.2.5