develooper Front page | perl.i18n | Postings from October 2003

Re: xgettext and parameter reordering

Thread Previous | Thread Next
From:
Autrijus Tang
Date:
October 9, 2003 13:50
Subject:
Re: xgettext and parameter reordering
Message ID:
20031009181250.GA1182@not.autrijus.org
On Wed, Oct 08, 2003 at 12:50:31PM +0200, Guido Flohr wrote:
> Perl directive
> 	gettext ("%1\$s is replaced by %2\$s.");
> 	# Equivalent to:
> 	gettext ('%1$s is replaced by %2$s');
> must result in
> 	msgid "%1$s is replaced by %2$s."
> 	msgstr "%2$s remplace %1$s."
> 
> in a .po file, because in Perl qq strings a literal dollar sign must be 
> escaped, in .po files it must not be escaped.

I have just uploaded Locale-Maketext-Lexicon 0.29 to CPAN, which contains a
revamped xgettext.pl that does the Right Thing, as shown above.

I have also refactored all extraction logic into Locale::Maketext::Extract,
which is included in Locale-Maketext-Lexicon-0.29.tar.gz as well.

Let me know if you (or anyone on the list) still have problems with the
new xgettext.pl. :-)  See t/5-extract.t in the tarball if you'd like to
submit test cases for bugs.

Thanks,
/Autrijus/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About