[Po4a-devel]man module: .IP's designator should be translatable
Nicolas François
nicolas.francois@centraliens.net
Tue, 17 Aug 2004 23:58:07 +0200
--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hello,
In the useradd.8 manpage, there is the following groff lines:
.IP "\fB-c \fIcomment\fR"
The new user's password file comment field.
.IP [...]
At this time, the designator is only translatable if the indentation is
set (second argument to the .IP macro).
With the current po4a, the argument to the -c option can't be translated.
The attached patch should correct this.
I'm not used to perl, please corect my patch if needed.
Regards,
--
Nekral
--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="Man.pm.patch"
--- lib/Locale/Po4a/Man.pm.orig 2004-08-17 23:54:46.000000000 +0200
+++ lib/Locale/Po4a/Man.pm 2004-08-17 23:52:52.000000000 +0200
@@ -846,6 +846,8 @@
my $self=shift;
if (defined $_[2]) {
$self->pushmacro($_[0],$self->t($_[1]),$_[2]);
+ } elsif (defined $_[1]) {
+ $self->pushmacro($_[0],$self->t($_[1]));
} else {
$self->pushmacro(@_)
}
--BXVAT5kNtrzKuDFl--