[Po4a-commits] "po4a/lib/Locale/Po4a Html.pm,1.12,1.13"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Sun Aug 5 16:54:55 UTC 2007
Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory alioth:/tmp/cvs-serv31465/lib/Locale/Po4a
Modified Files:
Html.pm
Log Message:
Updated documentation and added TODO for and option to specify attributes.
Index: Html.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Html.pm,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- Html.pm 5 Aug 2007 16:49:15 -0000 1.12
+++ Html.pm 5 Aug 2007 16:54:53 -0000 1.13
@@ -4,8 +4,8 @@
#
# extract and translate translatable strings from a html document.
#
-# This code extracts plain text between html tags and some "alt" attributes
-# (images).
+# This code extracts plain text between html tags and some "alt" or
+# "title" attributes.
#
# Copyright (c) 2003 by Laurent Hausermann <laurent at hausermann.org>
#
@@ -112,6 +112,8 @@
push @type,$token->[1];
my $text = get_tag( $token );
my $tag = $token->[1];
+# TODO: It would be nice to support an option to specify these
+# (e.g. a list of tag.attribute)
my @trans_attr = (( $tag eq 'img' ) || ( $tag eq 'input' ) ||
( $tag eq 'area' ) || ( $tag eq 'applet'))
? qw/title alt/ : qw/title/;
More information about the Po4a-commits
mailing list