From d490df3b5253e7503cb55e9131efe7048e5c9027 Mon Sep 17 00:00:00 2001
From: Pasi Kallinen
Date: Tue, 6 May 2014 09:38:45 +0300
Subject: [PATCH] Bug 11672: Untranslatable report areas in step 1 of Guided
Reports
The guided reports UI shows a drop-down box with "Circulation", "Catalogue", etc.
These are hard-coded in C4/Reports/Guided.pm (the @REPORT_AREA hash)
To test:
1) cd misc/translator
2) perl translate update xx-YY
3) there should be no translations msgid for the report area names
in the po/xx-YY-i-staff-t-prog-v-3006000.po
4) apply patch
5) perl translate update xx-YY
6) check po/xx-YY-i-staff-t-prog-v-3006000.po that it contains
the msgid - search for "translate_report_areas"
---
.../prog/en/modules/reports/guided_reports_start.tt | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
index 225ee83..2a5efe9 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
@@ -1,4 +1,13 @@
[% USE KohaDates %]
+[% BLOCK translate_report_areas %]
+[% SWITCH area %]
+[% CASE 'CIRC' %]Circulation
+[% CASE 'CAT' %]Catalogue
+[% CASE 'PAT' %]Patrons
+[% CASE 'ACQ' %]Acquisition
+[% CASE 'ACC' %]Accounts
+[% END %]
+[% END %]
[% INCLUDE 'doc-head-open.inc' %]
Koha › Reports › Guided reports wizard
[% IF ( saved1 ) %]› Saved Reports
@@ -398,7 +407,7 @@ canned reports and writing custom SQL reports.