Hello,
I'm trying to use wxrc to translate the strings in a .xrc resource file, but
I don't know how to do that.
wxrc can generate a file with all strings in the form _("<mystring>"), but
then, what ? Do I manualy have to make a .po file ? Is there a way to
automatically generate it ? Is it possible to interface wxrc from poedit,
like with xgettext ?
···
--
Frederic
http://linux.gbiloba.org
Frederic wrote:
wxrc can generate a file with all strings in the form
_("<mystring>"), but then, what ?
Then scan the file just as any other C file, with xgettext.
Do I manualy have to make a .po
file ? Is there a way to automatically generate it ? Is it possible
to interface wxrc from poedit, like with xgettext ?
Yes, of course. Add new parser record in File -> Preferences ->
Parsers.
Vaclav
···
--
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x465264C9
Frederic wrote:
> wxrc can generate a file with all strings in the form
> _("<mystring>"), but then, what ?
Then scan the file just as any other C file, with xgettext.
So simple...
> Do I manualy have to make a .po
> file ? Is there a way to automatically generate it ? Is it possible
> to interface wxrc from poedit, like with xgettext ?
Yes, of course. Add new parser record in File -> Preferences ->
Parsers.
It needs 2 steps: first create the strings file from the .xrc file (with
wxrc), and then compile it with xgettext. How to do that within the Parsers
preferences ?
···
On Wednesday 29 October 2003 14:52, Vaclav Slavik wrote:
--
Frederic
http://linux.gbiloba.org
Hi,
Frederic wrote:
> Yes, of course. Add new parser record in File -> Preferences ->
> Parsers.
It needs 2 steps: first create the strings file from the .xrc file
(with wxrc), and then compile it with xgettext. How to do that
within the Parsers preferences ?
I thought that wxrc can output to stdout, so a pipe could be built
(wxrc -g | xggetext), but obviously it doesn't, sorry for false
answer. A simple wrapper script xrcgettext that calls wxrc and then
xgettext should work, but we ought to change wxrc to produce po
catalogs directly...
Vaclav
···
--
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x465264C9