Bugzilla – Attachment 36767 Details for
Bug 13794
Text input field values not translated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 13794: Text input field values not translated
SIGNED-OFF-Bug-13794-Text-input-field-values-not-t.patch (text/plain), 1.61 KB, created by
Bernardo Gonzalez Kriegel
on 2015-03-10 14:59:00 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 13794: Text input field values not translated
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2015-03-10 14:59:00 UTC
Size:
1.61 KB
patch
obsolete
>From b7d6c2672f296495b207bd31dd20f2d6bafc763b Mon Sep 17 00:00:00 2001 >From: mxbeaulieu <maxime.beaulieu@inlibro.com> >Date: Thu, 5 Mar 2015 16:56:26 -0500 >Subject: [PATCH] [SIGNED-OFF] Bug 13794: Text input field values not > translated > >I left the code logic intact, and simply removed "text" from the regex. >Text input field values are now translated, no other logical changes are introduced. > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> > >Test: >1) Update, install and enable es-ES language >2) Go to Reports > Acquisition wizard >3) On page bottom, there is a text field with the word 'Export' >4) Switch language, the word is not translated >5) Apply the patch >6) Update and install again es-ES language >7) Reload page, text now reads 'Exportar' > >No koha-qa errors. >--- > misc/translator/tmpl_process3.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/misc/translator/tmpl_process3.pl b/misc/translator/tmpl_process3.pl >index cb671ae..4ded16f 100755 >--- a/misc/translator/tmpl_process3.pl >+++ b/misc/translator/tmpl_process3.pl >@@ -64,7 +64,7 @@ sub text_replace_tag ($$) { > if ($attr->{$a}) { > next if $a eq 'label' && $tag ne 'optgroup'; > next if $a eq 'content' && $tag ne 'meta'; >- next if $a eq 'value' && ($tag ne 'input' || (ref $attr->{'type'} && $attr->{'type'}->[1] =~ /^(?:checkbox|hidden|radio|text)$/)); # FIXME >+ next if $a eq 'value' && ($tag ne 'input' || (ref $attr->{'type'} && $attr->{'type'}->[1] =~ /^(?:checkbox|hidden|radio)$/)); # FIXME > > my($key, $val, $val_orig, $order) = @{$attr->{$a}}; #FIXME > if ($val =~ /\S/s) { >-- >1.7.9.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 13794
:
36514
|
36635
|
36637
|
36767
|
36816