GNOME Bugzilla – Bug 698386
Strings from .ui files are not extracted
Last modified: 2013-08-03 12:17:45 UTC
Commit https://git.gnome.org/browse/gtk+/commit/?id=d90ddf85f6ce211994e4a784a2211f57bf79e3f7 changed how translations from .ui files are extracted. I'm not sure how it is supposed to work now, but neither damned-lies nor intltool can handle generated files. The result is that these translations don't end up in po files, even after adding the real .ui files to POTFILES.in.
I'm sorry for the unnecessary bug report, I forgot to add [type: gettext/glade] to .ui files in POTFILES.in.
Apparently adding these .ui files to POTFILES.in broke the build. I don't know how to fix it. make[2]: Entering directory `/ostbuild/source/gtk3/_build/po' Makefile:389: *** multiple target patterns. Stop. Reverting https://git.gnome.org/browse/gtk+/commit/?id=84126230feaefd1e48797c978b8b59cbb30c1d77 causes translations to disappear from po files.
Reverted. GTK+ is not using intltool.
Piotr, I don't know what damned-lies is doing, but I can tell you the right way to get an updated .pot file in any gettext using project: cd po; make <domain>.pot That works just fine in gtk.
Except you just broke it by removing the ui.h files from POTFILES.in
I see. I've reported bug #698393 about changing how damned-lies generates gtk+'s pot/po files. Thank you for your patience. I'm also very sorry about not adding .ui.h files back. Next time I will file a bug first.