Bugzilla – Attachment 8435 Details for
Bug 7738
"Display more constraints" in subfield configuraton is not properly translatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 7738: "Display more constraints' in subfield configuraiton is not properly translatable
SIGNED-OFF-Bug-7738-Display-more-constraints-in-su.patch (text/plain), 2.51 KB, created by
Marc Véron
on 2012-03-21 15:28:29 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 7738: "Display more constraints' in subfield configuraiton is not properly translatable
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2012-03-21 15:28:29 UTC
Size:
2.51 KB
patch
obsolete
>From 27a67355aec496a044446e69c72f23f971d48e91 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Mon, 19 Mar 2012 16:05:55 +0100 >Subject: [PATCH] [SIGNED-OFF] Bug 7738: "Display more constraints' in subfield configuraiton is not properly translatable >Content-Type: text/plain; charset="utf-8" > >The Javascript toggling the link description was checking for the english >link text. This would not work for translated templates. > >Tested: Apply patch, then translate update and translate install. >Text changes as appropriate (with manually inserted translation in .po file) > >Signed-off-by: mveron <veron@veron.ch> >--- > .../en/modules/admin/marc_subfields_structure.tt | 26 ++++++++++--------- > 1 files changed, 14 insertions(+), 12 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt >index c196300..a5357d8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt >@@ -5,17 +5,19 @@ > <script type="text/javascript"> > //<![CDATA[ > >- $(document).ready(function() { >- $('#subfieldtabs > ul').tabs(); >- $("a.displaymore").click(function(){ >- $("#"+$(this).attr("href").replace("#","")).toggle(); >- if($(this).html() == "display more constraints"){ >- $(this).html("hide constraints"); >- } else { >- $(this).html("display more constraints"); >- } >- }); >- }); >+$(document).ready(function() { >+ $('#subfieldtabs > ul').tabs(); >+ $("a.displaymore").click(function(){ >+ var link = $(this); >+ var constraints = $("#"+$(this).attr("href").replace("#","")); >+ constraints.toggle(); >+ if($(constraints).is(':visible')){ >+ link.html(_("Hide constraints")); >+ } else { >+ link.html(_("Display more constraints")); >+ } >+ }); >+}); > > /*function displayMoreConstraint(numlayer){ > var thisdiv = document.getElementById(numlayer); >@@ -102,7 +104,7 @@ > </ol> > </fieldset> > >- <a class="displaymore" href="#more[% loo.urisubfieldcode %]">display more constraints</a> >+ <a class="displaymore" href="#more[% loo.urisubfieldcode %]">Display more constraints</a> > <div id="more[% loo.urisubfieldcode %]" style="display:none; clear: both"> > <fieldset class="rows" style="float:none;"> > <legend>Advanced constraints:</legend> >-- >1.7.2.5
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 7738
:
8296
| 8435