Bugzilla – Attachment 27955 Details for
Bug 11672
Untranslatable report areas in step 1 of Guided Reports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix untranslatable report areas
0001-Bug-11672-Untranslatable-report-areas-in-step-1-of-G.patch (text/plain), 2.08 KB, created by
paxed
on 2014-05-06 06:46:12 UTC
(
hide
)
Description:
Fix untranslatable report areas
Filename:
MIME Type:
Creator:
paxed
Created:
2014-05-06 06:46:12 UTC
Size:
2.08 KB
patch
obsolete
>From d490df3b5253e7503cb55e9131efe7048e5c9027 Mon Sep 17 00:00:00 2001 >From: Pasi Kallinen <pasi.kallinen@pttk.fi> >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' %] > <title>Koha › Reports › Guided reports wizard > [% IF ( saved1 ) %]› Saved Reports >@@ -398,7 +407,7 @@ canned reports and writing custom SQL reports.</p> > <legend>Step 1 of 6: Choose a module to report on,[% IF (usecache) %] Set cache expiry, [% END %] and Choose report visibility </legend> > <ol><li><label for="area">Choose: </label><select name="area" id="area"> > [% FOREACH area IN areas %] >-<option value="[% area.id %]">[% area.name %]</option> >+<option value="[% area.id %]">[% PROCESS translate_report_areas area=area.id %]</option> > [% END %] > </select></li> > [% IF (public) %] >-- >1.8.3.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11672
:
27955
|
31125
|
31126
|
31187
|
31188
|
31189
|
31190
|
31808
|
31809
|
31810