[Koha-patches] [PATCH] Bug fixing : translation process on submit and checkbox

henridamien.laurent at biblibre.com henridamien.laurent at biblibre.com
Tue Sep 22 15:39:18 CEST 2009


From: Henri-Damien LAURENT <henridamien.laurent at biblibre.com>

Values were translated when they should not be
---
 misc/translator/tmpl_process3.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/misc/translator/tmpl_process3.pl b/misc/translator/tmpl_process3.pl
index a64c142..ac2a431 100755
--- a/misc/translator/tmpl_process3.pl
+++ b/misc/translator/tmpl_process3.pl
@@ -54,7 +54,7 @@ sub text_replace_tag ($$) {
     if ($attr->{$a}) {
         next if $a eq 'content' && $tag ne 'meta';
         next if $a eq 'value' && ($tag ne 'input'
-        || (ref $attr->{'type'} && $attr->{'type'}->[1] =~ /^(?:hidden|radio|text)$/)); # FIXME
+        || (ref $attr->{'type'} && $attr->{'type'}->[1] =~ /^(?:submit|checkbox|hidden|radio|text)$/)); # FIXME
         my($key, $val, $val_orig, $order) = @{$attr->{$a}}; #FIXME
         if ($val =~ /\S/s) {
         my $s = find_translation($val);
-- 
1.6.0.4




More information about the Koha-patches mailing list