Bugzilla – Attachment 115111 Details for
Bug 27416
String 'Modify tag' in breadcrumb is untranslatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27416: Make "Modify tag" and "Add tag" translatable
Bug-27416-Make-Modify-tag-and-Add-tag-translatable.patch (text/plain), 3.91 KB, created by
Owen Leonard
on 2021-01-13 11:29:14 UTC
(
hide
)
Description:
Bug 27416: Make "Modify tag" and "Add tag" translatable
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2021-01-13 11:29:14 UTC
Size:
3.91 KB
patch
obsolete
>From 4b0fdfed2e7681fed62a3f9586b81b79435cc1aa Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 13 Jan 2021 11:11:36 +0100 >Subject: [PATCH] Bug 27416: Make "Modify tag" and "Add tag" translatable > >Those two strings are not translatable as they are passed from the >controller. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > admin/marctagstructure.pl | 2 -- > .../prog/en/modules/admin/marctagstructure.tt | 17 ++++++++++++----- > 2 files changed, 12 insertions(+), 7 deletions(-) > >diff --git a/admin/marctagstructure.pl b/admin/marctagstructure.pl >index 68aeaa0f6a..cc47c60440 100755 >--- a/admin/marctagstructure.pl >+++ b/admin/marctagstructure.pl >@@ -95,10 +95,8 @@ if ($op eq 'add_form') { > > if ($searchfield) { > $template->param(searchfield => $searchfield); >- $template->param(action => "Modify tag"); > $template->param('heading_modify_tag_p' => 1); > } else { >- $template->param(action => "Add tag"); > $template->param('heading_add_tag_p' => 1); > } > $template->param('use_heading_flags_p' => 1); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >index a57be3cd48..1aeb3a0766 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >@@ -4,7 +4,7 @@ > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Administration › >-[% IF ( add_form ) %]MARC frameworks › [% action | html %] [% searchfield | html %][% END %] >+[% IF ( add_form ) %]MARC frameworks › [% IF heading_add_tag_p %]Add tag[% ELSE %]Modify tag[% END %] [% searchfield | html %][% END %] > [% IF ( delete_confirm ) %]MARC frameworks › Confirm deletion of tag '[% searchfield | html %]'[% END %] > [% IF ( delete_confirmed ) %]MARC frameworks › Data deleted[% END %] > [% IF ( else ) %]MARC frameworks[% END %]</title> >@@ -21,7 +21,7 @@ > › <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a> > [% IF ( add_form ) %] > › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% IF framework %][% framework.frameworktext | html %] ([% framework.frameworkcode | html %])[% ELSE %]Default MARC framework[% END%]</a> >-› [% action | html %] [% searchfield | html %] >+› [% IF heading_add_tag_p %]Add tag[% ELSE %]Modify tag[% END %] [% searchfield | html %] > [% ELSIF ( else ) %] > › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% IF framework %][% framework.frameworktext | html %] ([% framework.frameworkcode | html %])[% ELSE %]Default MARC framework[% END %]</a> > [% ELSIF ( delete_confirm ) %] >@@ -49,9 +49,16 @@ > > <form action="[% script_name | html %]" name="Aform" method="post" class="validated"> > >- <fieldset class="rows"><legend>[% IF ( use_heading_flags_p ) %][% IF ( heading_modify_tag_p ) %]Modify tag <input type="hidden" name="modif" value="1" />[% searchfield | html %][% END %][% IF ( heading_add_tag_p ) %]Add tag[% END %][% ELSE %][% action | html %][% END %]</legend> <input type="hidden" name="op" value="add_validate" /> >- <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode | html %]" /> >- >+ <fieldset class="rows"> >+ <legend> >+ [% IF heading_add_tag_p %] >+ Add tag >+ [% ELSE %] >+ Modify tag <input type="hidden" name="modif" value="1" />[% searchfield | html %] >+ [% END %] >+ </legend> >+ <input type="hidden" name="op" value="add_validate" /> >+ <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode | html %]" /> > <ol> > <li> > [% IF ( heading_modify_tag_p ) %] >-- >2.11.0
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 27416
:
115106
|
115111
|
115112