Bugzilla – Attachment 103893 Details for
Bug 24636
Acquisitions planning sections untranslatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24636: translate planning sections
Bug-24636-translate-planning-sections.patch (text/plain), 3.03 KB, created by
Bernardo Gonzalez Kriegel
on 2020-04-29 00:34:08 UTC
(
hide
)
Description:
Bug 24636: translate planning sections
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2020-04-29 00:34:08 UTC
Size:
3.03 KB
patch
obsolete
>From 8e2115f500f5fb65ddc128209c93fc79721b2549 Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Tue, 28 Apr 2020 21:21:09 -0300 >Subject: [PATCH] Bug 24636: translate planning sections > >This patch adds a new inc file to process >and translate plannig sections > >To test: >1) Apply patch >2) Create new language files >(cd misc/translator; ./translate create xx-YY) >3) Verify new file is taken into account in >translation files >egrep -n budget_planning misc/translator/xx-YY*.po >check new strings in staff-prog file >4) Go to Administration > Budgets > Founds > Planning >select different options, check page title and >'Planning for...' phrase >5) Translate strings, install new language, enable it, >verify the text change with options like point 4) >--- > .../intranet-tmpl/prog/en/includes/budget_planning.inc | 8 ++++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt | 5 +++-- > 2 files changed, 11 insertions(+), 2 deletions(-) > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc >new file mode 100644 >index 0000000000..074e10c400 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc >@@ -0,0 +1,8 @@ >+[%- BLOCK planning -%] >+ [%- SWITCH plan -%] >+ [%- CASE 'MONTHS' -%]<span>months</span> >+ [%- CASE 'BRANCHES' -%]<span>libraries</span> >+ [%- CASE 'ITEMTYPES' -%]<span>item types</span> >+ [%- END -%] >+[%- END -%] >+ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt >index e714e87e2a..6872142843 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt >@@ -3,7 +3,8 @@ > [% USE Price %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Administration › Budgets › Funds › Planning for [% budget_period_description | html %] by [% authcat | html %]</title> >+[% PROCESS 'budget_planning.inc' %] >+<title>Koha › Administration › Budgets › Funds › Planning for [% budget_period_description | html %] by [% PROCESS planning plan=authcat %]</title> > [% INCLUDE 'doc-head-close.inc' %] > <style>td.locked { background-image: url('[% interface | html %]/[% theme | html %]/img/locked.png'); padding-left : 20px; background-repeat: no-repeat; background-position: 5px 5px; } a.control { font-size:85%;text-decoration:none; } .plan_entry { text-align: right; width:90%; }</style> > </head> >@@ -28,7 +29,7 @@ > [% INCLUDE 'budgets-admin-toolbar.inc' %] > > <form method="post" id="Aform" name="Aform" action="/cgi-bin/koha/admin/aqplan.pl"> >-<h3>Planning for [% budget_period_description | html %] by [% authcat | html %]</h3> >+<h3>Planning for [% budget_period_description | html %] by [% PROCESS planning plan=authcat %]</h3> > <input type="hidden" name="authcat" value="[% authcat | html %]" /> > <!-- Budget Lines --> > >-- >2.17.1
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 24636
:
103893
|
103952
|
104142
|
104241
|
104242