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/
pgpUoz0WinNRs.pgp
Description: PGP signature