[Qt-interest] javascript and linguist
Boudewijn Rempt
boud at valdyas.org
Sat Dec 6 11:00:27 CET 2008
On Sat, 6 Dec 2008, Konrad Rosenbaum wrote:
> On Saturday 06 December 2008, Boudewijn Rempt wrote:
> > Is there already something to extrat tr("")'ed text from javascript?
> > We're using a lot of javascript in our webkit-based Qt application and
> > when I try to run lupdate on javascript I get lots of complaints about
> > abuse of the C++ preprocessor and very little output in my .ts files. If
> > all else fails I'm going to try to extract the strings myself and put
> > them in a dummy .cpp file -- but then I'm wondering whether the context
> > works.
>
> I'm extracting tr'ed text from PHP files by adding them to the HEADERS
> variable in my .pro file. This will probably also work with Javascript.
>
I'll give that a try -- right now I'm adding them the SOURCES variable,
but may this'll work better.
Boudewijn
More information about the Qt-interest-old
mailing list