From 6c76c2cb66d8c627be5a47c433dc5c4397c3bf9e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 26 May 2016 12:29:38 -0400 Subject: [PATCH] Bug 15676 - Actions in pending offline circulation actions are not translatable Content-Type: text/plain; charset="utf-8" This patch modifies the offline circulation transaction processing page so that English strings describing actions are processed in the template rather than being output directly from the script. To test, apply the patch and create an offline circulation file containing at least one checkout, one check-in, and one payment. - Upload the file and choose 'Add to offline circulation queue.' - View pending offline circulation actions - In the list of pending actions, the actions column should show "Check out" instead of "issue," "Check in" instead of "return," and "Payment" instead of "payment." --- .../intranet-tmpl/prog/en/modules/offline_circ/list.tt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt index 033c61b..2500456 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt @@ -86,7 +86,18 @@ [% operation.timestamp %] - [% operation.action %] + + [% SWITCH ( operation.action ) -%] + [% CASE "issue" -%] + Check out + [% CASE "return" -%] + Check in + [% CASE "payment" -%] + Payment + [% CASE # default case -%] + [% operation.action %] + [% END -%] + [% IF ( biblionumber ) %] [% operation.barcode %] -- 2.1.4