Reintroducing submit value buttons in po files
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 28 Oct 2009 17:38:52 +0000 (18:38 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Thu, 29 Oct 2009 08:52:16 +0000 (09:52 +0100)
Submit values need to be translated.

misc/translator/tmpl_process3.pl

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