Bugzilla – Attachment 126416 Details for
Bug 29261
Translation script breaks members/tables/members_results.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29261: (bug 15812 follow-up) Fix translation issue in include file
Bug-29261-bug-15812-follow-up-Fix-translation-issu.patch (text/plain), 3.11 KB, created by
Jonathan Druart
on 2021-10-18 09:10:19 UTC
(
hide
)
Description:
Bug 29261: (bug 15812 follow-up) Fix translation issue in include file
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-10-18 09:10:19 UTC
Size:
3.11 KB
patch
obsolete
>From 5fa9b9f4fb4fda571a66369032c93b3c9ac4f50b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 18 Oct 2021 11:05:18 +0200 >Subject: [PATCH] Bug 29261: (bug 15812 follow-up) Fix translation issue in > include file >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Strings must be surrounded by double quote or it wil break the translate >script. > >Without this patch you get: > 5 "dt_name": > 6 "<a %]\"="%]\"" >in the translated template and the UI explodes with "Template process >failed: file error - parse error" > >Test plan: >Apply this patch, update PO files for a given language, translate >"View". Search for something like: > msgid "\\\"View\\\"" > msgstr "\\\"Näytä\\\"" >Remove fuzzy. >Install the language and search for patrons >--- > .../prog/en/modules/members/tables/members_results.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt >index 5e219d2c9f8..cd0713e92c0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt >@@ -18,7 +18,7 @@ > "dt_cardnumber": > "[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<a href='/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% data.borrowernumber | html %]' title='Checkout'>[% data.cardnumber | html | $To %]</a>[% ELSE %][% data.cardnumber | html | $To %][% END %]", > "dt_name": >- "<a href=\"/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.borrowernumber | html %]\" class=\"patron_preview\" data-borrowernumber=\"[% data.borrowernumber | html %]\" style='white-space:nowrap' title='View'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = data.firstname surname = data.surname othernames = data.othernames invert_name = 1 | $To %]</a><br /><div class='address'><ul>[%~ INCLUDE 'display-address-style' patron=data no_line_break=1 | $To ~%][% IF data.email %]<li>Email: <a href='mailto:[% data.email | html | $To %]'>[% data.email | html | $To %]</a></li>[% END %]</ul></div>", >+ "<a href=\"/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.borrowernumber | html %]\" class=\"patron_preview\" data-borrowernumber=\"[% data.borrowernumber | html %]\" style='white-space:nowrap' title=\"View\">[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = data.firstname surname = data.surname othernames = data.othernames invert_name = 1 | $To %]</a><br /><div class='address'><ul>[%~ INCLUDE 'display-address-style' patron=data no_line_break=1 | $To ~%][% IF data.email %]<li>Email: <a href='mailto:[% data.email | html | $To %]'>[% data.email | html | $To %]</a></li>[% END %]</ul></div>", > "dt_dateofbirth": > "[% INCLUDE 'patron-age.inc' patron = data %]", > "dt_category": >-- >2.25.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 29261
:
126416
|
126423
|
127064
|
127204