[Po4a-commits] "po4a/lib/Locale/Po4a Xml.pm,1.65,1.66"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Sun Mar 2 00:46:59 UTC 2008
Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory alioth:/tmp/cvs-serv18053/lib/Locale/Po4a
Modified Files:
Xml.pm
Log Message:
get_translate_options() indicates if the tag should be put inlined
in a paragraph (i).
Index: Xml.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Xml.pm,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- Xml.pm 2 Mar 2008 00:39:18 -0000 1.65
+++ Xml.pm 2 Mar 2008 00:46:56 -0000 1.66
@@ -1068,6 +1068,7 @@
# Otherwise, returns the set of options for translation:
# w: the content shall be re-wrapped
# W: the content shall not be re-wrapped
+# i: the tag shall be inlined
sub get_translate_options {
my $self = shift;
my $path = shift;
@@ -1095,6 +1096,12 @@
$translate = 1;
}
+ $tag = $self->get_tag_from_list($path, @{$self->{inline}});
+ if (defined $tag) {
+ $usedefault = 0;
+ $options .= "i";
+ }
+
# TODO: a less precise set of tags should not override a more precise one
# The tags and tagsonly options are deprecated.
# The translated and untranslated options have an higher priority.
More information about the Po4a-commits
mailing list