Bugzilla – Attachment 127204 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 3) Fix translation issue in include file
Bug-29261-bug-15812-follow-up-3-Fix-translation-is.patch (text/plain), 4.17 KB, created by
Jonathan Druart
on 2021-11-02 08:46:47 UTC
(
hide
)
Description:
Bug 29261: (bug 15812 follow-up 3) Fix translation issue in include file
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-11-02 08:46:47 UTC
Size:
4.17 KB
patch
obsolete
>From 9f9aba0205a4cef8d386b2a29ee8c1f6b44671ea Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 2 Nov 2021 09:42:05 +0100 >Subject: [PATCH] Bug 29261: (bug 15812 follow-up 3) Fix translation issue in > include file > >This is getting messy. No idea how I tested the previous patches but it >was not working, the problem still persisted. > >This patch is using the I18N TT plugin to make things easier and fix the >original problem. > >Test plan: >Apply the patch >perl translate update fi-FI >Edit misc/translator/po/fi-FI-messages.po >Locate and translate "Check out" > 61 #: koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt:20 > 62 msgid "Check out" > 63 msgstr "Laina" >Locate and transate "View" > 182 #: koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt:22 > 183 msgid "View" > 184 msgstr "Nayta" >Apply the change to the fi-FI templates >perl translate install fi-FI > >Now enable the fi-FI in the lang syspref, search for patron and confirm >that the result view is displayed correctly. >Note that the "Check out" and "View" strings are correctly translated >(when you hover the cardnumbers or patron's names) >--- > .../prog/en/modules/members/tables/members_results.tt | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >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 24721273216..e19f2c03823 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 >@@ -1,4 +1,5 @@ > [% USE raw %] >+[% USE I18N %] > [% USE To %] > [% USE AuthorisedValues %] > [% USE KohaDates %] >@@ -16,9 +17,9 @@ > "<label for='check[% data.borrowernumber | html %]' class='content_hidden'>Select patron</label><input type='checkbox' id='check[% data.borrowernumber | html %]' class='selection' name='borrowernumber' value='[% data.borrowernumber | html %]' />", > [% END %] > "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 %]", >+ "[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<a href='/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% data.borrowernumber | html %]' title=\"[% I18N.t("Check out") %]\">[% 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=\"[% I18N.t("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