[Top][All Lists]
[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, 11 Apr 2010 16:59:44 +0200 |
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.
I wrote a few weeks 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
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Gettext: xgettext JavaScript scanner backend,
Andreas Stricker <=