Re: xgettext and parameter reordering

[email protected] (Autrijus Tang) Fri, 10 Oct 2003 02:12:51 +0800
Newsgroups perl.i18n
Message-ID <[email protected]>
--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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/

--Dxnq1zWXvFF0Q93v
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/haUitLPdNzw1AaARAjbfAKCgMFuUy9ZzYQqxhlfBnPMmcHmzrACgieqD
PYB0UaiFeDilrSjeKtZhe6o=
=uH65
-----END PGP SIGNATURE-----

--Dxnq1zWXvFF0Q93v--