bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Gettext: xgettext JavaScript scanner backend


From: Andreas Stricker
Subject: Gettext: xgettext JavaScript scanner backend
Date: Tue, 23 Feb 2010 18:09:34 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1

Hi

I've implemented gettext for a huge JavaScript application. I'm using
jsgettext [1] for the runtime. Instead of mo files it builds the
message catalog as JSON object from PO file.

For string message extraction I'll like to use the usual toolchain
especially xgettext. But - as you may have guessed - xgettext doesn't
recognize JavaScript syntax yet [2].

So I took a look at the scanner backends and finally added a new one
for JavaScript. It works quite well: Our hole codebase (40k lines)
was processed without any problems.

Well, the patch is there, sitting in my clone of the gettext GIT
repository (and is a bit huge to attach here). Whats you favorit
way to submit patches? Should I host my clone somewhere (my page
or github), or should I create a patch? Should I open an issue
on Savannah's bug tracker?

Regards, Andy

[1] http://jsgettext.berlios.de/
[2] Some tried to misuse C, Perl or Python, but this won't work well

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]