Bugzilla – Attachment 63753 Details for
Bug 18684
Translatability: Get rid of %%] in translation for currency.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18684 - Get rid of %%] in translation for currency.tt
Bug-18684---Get-rid-of--in-translation-for-currenc.patch (text/plain), 3.00 KB, created by
Marc Véron
on 2017-05-26 19:16:50 UTC
(
hide
)
Description:
Bug 18684 - Get rid of %%] in translation for currency.tt
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2017-05-26 19:16:50 UTC
Size:
3.00 KB
patch
obsolete
>From c868e823cf0d426ff7fa7e199e28c92651c934ca Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Fri, 26 May 2017 21:08:27 +0200 >Subject: [PATCH] Bug 18684 - Get rid of %%] in translation for currency.tt > >File add koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt exposes >parts of template directives due to html tags inide directives. Fix it using >the HtmlTags filter. > >To verify: >- Create a translation for a language 'aa-AA >- po file aa-AA-staff-prog.po / translate.koha-community.org for 17.05 contains a line > '%%]'%sCurrencies %s >To test: >- Apply patch on top of Bug 18665 >- Recreate translation >- Verify that line above is gone >- Verify that in staff client currencies administration wors as before >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt >index 3f2c5bf..5299e75 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt >@@ -1,5 +1,6 @@ > [% USE KohaDates %] > [% USE ColumnsSettings %] >+[% USE HtmlTags %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Administration › Currencies & Exchange rates › > [% IF op == 'add_form' %][% IF currency %]Modify currency '[% currency.currency %]'[% ELSE %]New currency[% END %][% END %] >@@ -52,7 +53,7 @@ > > > <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › <a href="/cgi-bin/koha/admin/currency.pl">Currencies & Exchange rates</a> › [% IF op == 'add_form' %][% IF currency %]Modify currency '[% currency.currency %]'[% ELSE %]New currency[% END %][% END %] >-[% IF op == 'delete_confirm' %]Confirm deletion of currency '[% '<span class="ex">' _ currency.currency _ '</span>' %]' >+[% IF op == 'delete_confirm' %]Confirm deletion of currency [% currency.currency | $HtmlTags tag='span' attributes=>'class="ex"' %] > [% ELSIF op == 'list' %]Currencies > [% END %] > </div> >@@ -152,7 +153,8 @@ > [% IF op =='delete_confirm' %] > [% IF nb_of_orders or nb_of_vendors %] > <div class="dialog alert"> >- <h3>Cannot delete currency '[% '<span class="ex">' _ currency.currency _ '</span>' %]'</h3> >+ <h3>Cannot delete currency [% currency.currency | $HtmlTags tag='span' attributes=>'class="ex"' %] >+</h3> > <p> > [% IF nb_of_orders %] > This currency is used by [% nb_of_orders %] orders. >@@ -167,7 +169,8 @@ > </div> > [% ELSE %] > <div class="dialog alert"> >- <h3>Confirm deletion of currency '[% '<span class="ex">' _ currency.currency _ '</span>' %]'</h3> >+ <h3>Confirm deletion of currency [% currency.currency | $HtmlTags tag='span' attributes=>'class="ex"' %] >+</h3> > <table> > <tr><th>Currency</th> > <td>[% currency.currency %]</td> >-- >2.1.4
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 18684
:
63753
|
63769
|
64418
|
64442