From 74d285e60db9a2d70d73589359327208451d23ff Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 9 May 2014 13:40:14 +0300 Subject: [PATCH] Bug 11392: Allow translating the viewlog module and action names When viewing the logs, the user can see module and action, such as "SYSTEMPREFERENCE", "MEMBERS" or "CREATE", "MODIFY", etc. These texts are not translatable. This patch allows translating those. It also adds the missing "CREATE" action to the pulldown. --- .../intranet-tmpl/prog/en/modules/tools/viewlog.tt | 51 +++++++++++++++------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt index 56f1f67..19d0321 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt @@ -14,6 +14,33 @@ [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] +[% BLOCK translate_log_module %] +[% SWITCH module %] +[% CASE 'CATALOGUING' %]Catalog +[% CASE 'AUTHORITIES' %]Authorities +[% CASE 'MEMBERS' %]Patrons +[% CASE 'ACQUISITIONS' %]Acquisitions +[% CASE 'SERIAL' %]Serials +[% CASE 'CIRCULATION' %]Circulation +[% CASE 'LETTER' %]Letter +[% CASE 'FINES' %]Fines +[% CASE 'SYSTEMPREFERENCE' %]System prefs +[% CASE %][% module %] +[% END %] +[% END %] + +[% BLOCK translate_log_action %] +[% SWITCH action %] +[% CASE 'ADD' %]Add +[% CASE 'DELETE' %]Delete +[% CASE 'MODIFY' %]Modify +[% CASE 'ISSUE' %]Checkout +[% CASE 'RETURN' %]Return +[% CASE 'CREATE' %]Create +[% CASE %][% action %] +[% END %] +[% END %] +