[Po4a-commits] "po4a/lib/Locale/Po4a Texinfo.pm,1.8,1.9"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Sun Sep 16 15:46:41 UTC 2007
Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory alioth:/tmp/cvs-serv22268/lib/Locale/Po4a
Modified Files:
Texinfo.pm
Log Message:
Also translate in the menu environments the paragraphs which are not par
of a menu entry.
Index: Texinfo.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Texinfo.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Texinfo.pm 16 Sep 2007 14:17:51 -0000 1.8
+++ Texinfo.pm 16 Sep 2007 15:46:39 -0000 1.9
@@ -281,6 +281,7 @@
my ($self,$buffer, at env) = (shift,shift, at _);
print STDERR "translate_buffer_menu($buffer, at env)="
if ($debug{'translate_buffer'});
+
my $translated_buffer = "";
my $spaces = "";
if ($buffer =~ m/(\s*)$/s) {
@@ -332,6 +333,10 @@
my $spaces = ' 'x($l+2);
$t =~ s/\n/\n$spaces/sg;
$translated_buffer .= $t;
+ } else {
+# FIXME: no-wrap if a line start by a space
+ my ($t, @e) = $self->translate_buffer($buffer, @env);
+ $translated_buffer = $t;
}
print STDERR "($translated_buffer, at env)\n"
More information about the Po4a-commits
mailing list