From b697809800ec187fe6f83420336efee543d79b8a 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 --- .../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.20.1