Followup : d31ac1 reintroducing submit buttons
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 16 Mar 2010 08:11:54 +0000 (09:11 +0100)
committerGalen Charlton <gmcharlt@gmail.com>
Fri, 23 Apr 2010 11:06:34 +0000 (07:06 -0400)
this reintroduces translation of submit values

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
misc/translator/xgettext.pl

index a13be97..031f9ba 100755 (executable)
@@ -103,7 +103,7 @@ sub text_extract (*) {
             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] =~ /^(?:hidden|radio|submit)$/)); # FIXME
+                       || (ref $attr->{'type'} && $attr->{'type'}->[1] =~ /^(?:hidden|radio|checkbox)$/)); # FIXME
                    my($key, $val, $val_orig, $order) = @{$attr->{$a}}; #FIXME
                    $val = TmplTokenizer::trim $val;
                    remember( $s, $val ) if $val =~ /\S/s;