Re: Composite GtkBuilder template



On Sun, 2013-04-07 at 13:39 -0400, Matthias Clasen wrote:
And just to complete that thought, here is how I think this should work:

- Write some Makefile goo to use my utility to generate foo.ui.h from foo.ui

- Add foo.ui.h to POTFILES.in

The only slight downside is that putting generated files in
POTFILES.in means you have to generate those files before you can
update .po files.

Right, I did not know about the 'make update-po' targets, actually.

I've been spending hours trying to fix the sed command in
po/Makefile.in.in, just to find that the POTFILES target
in there doesnt actually run (at least not on a fresh checkout).

I've also tried adding sed mumbo-jumbo similar to the extra
stuff for po-properties... into configure.ac... but still
no luck stripping out the "\[.*\]" from POTFILES.

I was under the impression translators, for instance spanish,
would just go into the po/ dir and type 'intltool-update es',
but now that you mention a special target for that in GTK+,
I wonder that... even if I got my sed command to run, if
it would manage to extract the translations from the .ui files
or not.

Generating an intermediate .ui.h file is something that crossed
my mind after looking at your attached program, but I've been
spending some time now... really trying to avoid that, but
if that's what you want, we could do that.

Note that, afaics (not sure about 'make update-po'), just naming
the glade files as .glade, fixes this issue without the need
for intermediate generated headers and the like.

I guess it's time for me to drop this for the day, I just dont
know if I can afford to spend time on it tomorrow, looks like
I'll be spending some long nights after hours on this...

Regards,
    -Tristan




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