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

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

Re: Gettext: xgettext JavaScript scanner backend


From: Andreas Stricker
Subject: Re: Gettext: xgettext JavaScript scanner backend
Date: Sun, 27 Jun 2010 23:10:03 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4

Hi

I finally managed to write a xgettext scanner backend for JavaScript.
It's hosted on github and the branch is called 'javascript':

http://github.com/AndyStricker/gettext-javascript

I'll like to hear some feedback. I've waited since last mail as
there were a few issues that needed to be resolved first.

It's running fine with the 0.18 version. But I've to finish the
0.17 port for all needing it on an older system. I've tested it
both with GNU/Linux (Ubuntu 10.04) and OSX 10.6.4.

I wrote a few months ago:
> 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.

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

Regards, Andy


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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