From a5d4e0cd66dcd9ccfaad7f8c6a4033483ead4769 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 Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart (cherry picked from commit af0929abbb72c9c2469b1f2ccba338f51801ad98) Signed-off-by: Lucas Gass --- .../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 ce6c906335..4b59c661a4 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.39.5