[Koha-cvs] CVS: koha/misc/translator text-extract2.pl,1.2,1.3

Ambrose Li acli at users.sourceforge.net
Thu Feb 12 10:26:56 CET 2004


Update of /cvsroot/koha/koha/misc/translator
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9023

Modified Files:
	text-extract2.pl 
Log Message:
Don't extract strings in hidden values


Index: text-extract2.pl
===================================================================
RCS file: /cvsroot/koha/koha/misc/translator/text-extract2.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** text-extract2.pl	12 Feb 2004 09:02:39 -0000	1.2
--- text-extract2.pl	12 Feb 2004 09:26:54 -0000	1.3
***************
*** 208,213 ****
  		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}};
  		    $val =~ s/\s+$//s;
  		    $text{$val} = 1 if $val =~ /\S/s;
--- 208,214 ----
  		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] eq 'hidden'));
! 		    my($key, $val, $val_orig, $order) = @{$attr->{$a}}; #FIXME
  		    $val =~ s/\s+$//s;
  		    $text{$val} = 1 if $val =~ /\S/s;





More information about the Koha-cvs mailing list