Fixing translation process
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 22 Sep 2009 13:16:21 +0000 (15:16 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 22 Sep 2009 13:21:42 +0000 (15:21 +0200)
Removing checkbox values from po generation

misc/translator/tmpl_process3.pl

index 4e217eb..d876450 100755 (executable)
@@ -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|submit)$/)); # FIXME
+        || (ref $attr->{'type'} && $attr->{'type'}->[1] =~ /^(?:checkbox|hidden|radio|text|submit)$/)); # FIXME
         my($key, $val, $val_orig, $order) = @{$attr->{$a}}; #FIXME
         if ($val =~ /\S/s) {
         my $s = find_translation($val);