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

Re: xgettext and parameter reordering

Thread Previous | Thread Next
Christophe Chisogne
October 6, 2003 08:01
Re: xgettext and parameter reordering
Message ID:
Guido Flohr wrote:
> I don't think that this is an option because will also 
> double the backslash in the original string (like "xgettext --lang=C" 
> which doesn't know that a dollar sign has to be escaped in double-quoted 
> Perl strings).

That's right. gives wrong ..%2\\$d.. with src code like "..%2$d.."
It works with single quotes gives right ..%2$d..   with src code like '..%2$d..'
but then std xgettext dont work
(need "" until perl is natively supported by xgettext)

BTW I join a (very) simple patch for to recognize
the std form gettext() and not only _().
(patch for rev #22 Change: 7746 2003/08/28 10:18:18)

> BTW: The new "xgettext --lang=perl" will extract *all* kinds of strings 

Native xgettext Perl support, exactly what I was looking for :)
Thanks, but...

I got the latest CVS snapshot of GNU gettext via with
cvs -z3 -d co gettext
but it seems the added Perl support for xgettext is not there :(

$ ./xgettext --lang=perl /path/to/
xgettext: language `perl' unknown
... and in xgettext.c extension_to_language() I only see
/* Here will follow more file extensions: sh, pl ... */

Am I missing something ? (wrong cvs server?)


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