Bugzilla – Attachment 23189 Details for
Bug 11283
Restriction type is not translatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11283 - Restriction type is not translatable
Bug-11283---Restriction-type-is-not-translatable.patch (text/plain), 2.21 KB, created by
Jonathan Druart
on 2013-11-27 15:12:53 UTC
(
hide
)
Description:
Bug 11283 - Restriction type is not translatable
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-11-27 15:12:53 UTC
Size:
2.21 KB
patch
obsolete
>From 5cf855690281d61e570d10619c8a1b3dfce99a92 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >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 > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Passes all tests and QA script. Strings now appear in >updated po files: > msgid "%s %s Manual %s Overdues %s Suspension %s " > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > .../intranet-tmpl/prog/en/includes/borrower_debarments.inc | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > >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..a94af57 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 @@ > <tbody> > [% FOREACH d IN debarments %] > <tr> >- <td>[% d.type %]</td> >+ <td> >+ [% SWITCH d.type %] >+ [% CASE 'MANUAL' %] >+ Manual >+ [% CASE 'OVERDUES' %] >+ Overdues >+ [% CASE 'SUSPENSION' %] >+ Suspension >+ [% END %] >+ </td> > <td>[% d.comment %]</td> > <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td> > [% IF ( CAN_user_borrowers )%] >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11283
:
23081
|
23117
| 23189