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

Re: xgettext and parameter reordering

Thread Previous | Thread Next
Autrijus Tang
October 9, 2003 13:50
Re: xgettext and parameter reordering
Message ID:
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 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 :-)  See t/5-extract.t in the tarball if you'd like to
submit test cases for bugs.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About