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 760202 - gtkbuilder: Install gettext ITS files
gtkbuilder: Install gettext ITS files
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-01-06 09:27 UTC by Daiki Ueno
Modified: 2016-01-10 04:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtkbuilder: Install gettext ITS files (2.64 KB, patch)
2016-01-06 09:27 UTC, Daiki Ueno
committed Details | Review

Description Daiki Ueno 2016-01-06 09:27:54 UTC
Recent gettext has a feature to allow consumer projects to supply their
own string extraction rules for XML files, in ITS format.

Gettext still ships the rule for *.ui, but it would be better
maintained in the upstream project.
Comment 1 Daiki Ueno 2016-01-06 09:27:57 UTC
Created attachment 318312 [details] [review]
gtkbuilder: Install gettext ITS files
Comment 2 Matthias Clasen 2016-01-06 14:16:48 UTC
Review of attachment 318312 [details] [review]:

Interesting. Looks fine to me
Comment 3 Matthias Clasen 2016-01-07 23:09:58 UTC
Attachment 318312 [details] pushed as f9e6ccd - gtkbuilder: Install gettext ITS files
Comment 4 Yanko Kaneti 2016-01-09 18:19:44 UTC
Hm...
itsdir = $(datadir)/gettext/its which is /usr/share/gettext/its on Fedora
in the mean time in gettext 
itsdir = $(pkgdatadir)$(PACKAGE_SUFFIX)/its which is /usr/share/gettext-0.19.7/its

Which is it?
Comment 5 Daiki Ueno 2016-01-10 04:21:50 UTC
As briefly mentioned in the documentation:
http://www.gnu.org/software/gettext/manual/html_node/Preparing-ITS-Rules.html
user projects should install those files under /usr/share/gettext/its, rather than /usr/share/gettext-VERSION/its, which is used exclusively by gettext and has lower priority than /usr/share/gettext/its.

This is analogous to the use of /usr/share/aclocal and /usr/share/aclocal-VERSION in Automake, or /usr/share/vala/vapi and /usr/share/vala-VERSION/vapi in Vala.