From ae883c1ba56796118a20708b0272a0d7dd64f2ad Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 1 Jun 2020 10:19:05 +0200 Subject: [PATCH] Bug 25626: Fix untranslatable strings on the 'OPAC problem reports' admin The 'Sent to' and 'Status' column values were not translatable. Test plan: Translate the interface Report some problems at the OPAC Go to the admin page and notice that all the columns are now translated Signed-off-by: Katrin Fischer --- .../prog/en/modules/tools/problem-reports.tt | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt index 5beeebe111..018e1b47e4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt @@ -80,10 +80,24 @@ [% report.content | html %] [% OPACBaseURL | url %][% report.problempage | html %] - [% report.recipient | html %] + + [% SWITCH report.recipient %] + [% CASE 'admin' %]Koha administrator + [% CASE 'library' %]A librarian + [% END %] + [% report.created_on | $KohaDates with_hours => 1 %] [% INCLUDE 'patron-title.inc' patron => report.patron hide_patron_infos_if_needed=1 %] - [% report.status | html %] + + + [% SWITCH report.status %] + [% CASE 'New' %]New + [% CASE 'Closed' %]Closed + [% CASE 'Viewed' %]Viewed + [% CASE %]Unknown status ([% report.status | html %]) + [% END %] + + [% IF ( report.status == 'New' ) %] -- 2.11.0