GResource, GtkBuilder and gettext translations

387 views Asked by At

I'm using Meson (with glib gettext preset) to bundle GtkBuilder files in a GResource file, but I can't figure how to get gettext to recognize the translatable strings.

I've marked the strings with the translatable attribute, put the domain attribute on the <interface> element and listed the file in my GResource xml and POTFILE, but the strings don't appear in the generated pot.

I've seen a number of projects in C such as this one which don't use the domain attribute on the interface, but either way I get no results.

How can I get my translatable GtkBuilder files to be recognized?

0

There are 0 answers