[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Qt4, gettext and autopoint
From: |
Christophe Mutricy |
Subject: |
Qt4, gettext and autopoint |
Date: |
Wed, 25 Mar 2009 01:18:21 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hello,
In VLC, we use mainly C and auto*. So it just works with gettext and the
Makefile.in.in installed by autopoint.
Now, it gets more tricky with the Qt4 interface. No problem with the
strings in the C++ files. But the strings in the .ui files cause
problems.
These .ui files are xml files and are translated in C headers files by
uic which take care of transforming the xml-escaped strings in proper C
strings.
Running msgfmt on the .h files works OK but as they are generated files
we don't keep them in Git and they are in builddir rather than srcdir.
So first question: Is there a way to have files in
${top_builddir}/foo/bar in POTFILES.in
Another option would be to run sed (or another program) on the .ui
before parsing them with msgfmt. I can't find a way to do that with the
default Makefile.in.in installed by autopoint. Have I mised something?
Thanks for any pointers
--
Xtophe
- Qt4, gettext and autopoint,
Christophe Mutricy <=