From: Owen Leonard Date: Thu, 26 May 2016 16:29:38 +0000 (-0400) Subject: Bug 15676 - Actions in pending offline circulation actions are not translatable X-Git-Tag: v16.11.00~1366 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=e9d6ac9478606d9d123a22635719b99d985b9538;p=srvgit Bug 15676 - Actions in pending offline circulation actions are not translatable 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." Strings appear as expected. Signed-off-by: Marc VĂ©ron Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- 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 033c61b233..2500456d41 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 %]