diff --git a/misc/translator/text-extract2.pl b/misc/translator/text-extract2.pl index d19ef112c5..0904e6a587 100755 --- a/misc/translator/text-extract2.pl +++ b/misc/translator/text-extract2.pl @@ -207,8 +207,9 @@ sub text_extract (*) { for my $a ('alt', 'content', 'title', 'value') { if ($attr->{$a}) { next if $a eq 'content' && $tag ne 'meta'; - next if $a eq 'value' && $tag ne 'input'; - my($key, $val, $val_orig, $order) = @{$attr->{$a}}; + next if $a eq 'value' && ($tag ne 'input' + || (ref $attr->{'type'} && $attr->{'type'}->[1] eq 'hidden')); + my($key, $val, $val_orig, $order) = @{$attr->{$a}}; #FIXME $val =~ s/\s+$//s; $text{$val} = 1 if $val =~ /\S/s; }