After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698386 - Strings from .ui files are not extracted
Strings from .ui files are not extracted
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-04-19 17:35 UTC by Piotr Drąg
Modified: 2013-08-03 12:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Piotr Drąg 2013-04-19 17:35:09 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.
Comment 1 Piotr Drąg 2013-04-19 17:44:11 UTC
I'm sorry for the unnecessary bug report, I forgot to add [type: gettext/glade] to .ui files in POTFILES.in.
Comment 2 Piotr Drąg 2013-04-19 18:06:10 UTC
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.
Comment 3 Matthias Clasen 2013-04-19 18:30:37 UTC
Reverted.

GTK+ is not using intltool.
Comment 4 Matthias Clasen 2013-04-19 18:34:53 UTC
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.
Comment 5 Matthias Clasen 2013-04-19 18:37:42 UTC
Except you just broke it by removing the ui.h files from POTFILES.in
Comment 6 Piotr Drąg 2013-04-19 18:45:56 UTC
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.