X-Git-Url: http://git.rot13.org/?p=koha.git;a=blobdiff_plain;f=misc%2Ftranslator%2Fxgettext.pl;h=031f9ba4e6728078f4c1d5dc008860aee781add1;hp=8e1dfd79517a7b6e8333e44d3c2331de4da44ed4;hb=35a09441259c3152dc70fa67de294285282775f2;hpb=6d270c90a7ff6c3005e2d60e5189808d9da74d3f diff --git a/misc/translator/xgettext.pl b/misc/translator/xgettext.pl index 8e1dfd7951..031f9ba4e6 100755 --- a/misc/translator/xgettext.pl +++ b/misc/translator/xgettext.pl @@ -98,8 +98,9 @@ sub text_extract (*) { } elsif ($kind eq TmplTokenType::TAG && %$attr) { # value [tag=input], meta my $tag = lc($1) if $t =~ /^<(\S+)/s; - for my $a ('alt', 'content', 'title', 'value') { + for my $a ('alt', 'content', 'title', 'value','label') { if ($attr->{$a}) { + 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|checkbox)$/)); # FIXME