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

Ambrose Li acli at users.sourceforge.net
Tue Feb 17 07:30:41 CET 2004


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

Modified Files:
	text-extract2.pl 
Log Message:
Don't extract strings from the VALUE attributes of RADIO type INPUT fields;
these aren't translatable.


Index: text-extract2.pl
===================================================================
RCS file: /cvsroot/koha/koha/misc/translator/text-extract2.pl,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -r1.39 -r1.40
*** text-extract2.pl	17 Feb 2004 05:07:04 -0000	1.39
--- text-extract2.pl	17 Feb 2004 06:30:38 -0000	1.40
***************
*** 68,72 ****
  		    next if $a eq 'content' && $tag ne 'meta';
  		    next if $a eq 'value' && ($tag ne 'input'
! 			|| (ref $attr->{'type'} && $attr->{'type'}->[1] eq 'hidden')); # FIXME
  		    my($key, $val, $val_orig, $order) = @{$attr->{$a}}; #FIXME
  		    $val = TmplTokenizer::trim $val;
--- 68,72 ----
  		    next if $a eq 'content' && $tag ne 'meta';
  		    next if $a eq 'value' && ($tag ne 'input'
! 			|| (ref $attr->{'type'} && $attr->{'type'}->[1] =~ /^(?:hidden|radio)$/)); # FIXME
  		    my($key, $val, $val_orig, $order) = @{$attr->{$a}}; #FIXME
  		    $val = TmplTokenizer::trim $val;





More information about the Koha-cvs mailing list