po/Makefile.in.in: intltool compatibility fixes
authorRyan Lortie <desrt@desrt.ca>
Mon, 5 Sep 2011 01:31:13 +0000 (21:31 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 5 Sep 2011 02:03:53 +0000 (22:03 -0400)
Our infrastructure for updating the glib20.pot file was incompatible
with intltool in a couple of ways:

 - we didn't set the Report-Msgid-Bugs-To to

 - we used paths relative to the $(top_srcdir), rather than po/

This resulted in spamming of pointless changes to the .po files whenever
'make update-po' was run (since all of the translators are using
intltool-based tools).

po/Makefile.in.in

index 4ed29e6..53b496d 100644 (file)
@@ -93,7 +93,8 @@ all-yes: $(CATALOGS)
 all-no:
 
 $(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
-       $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \
+       $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) \
+         --msgid-bugs-address='http://bugzilla.gnome.org/enter_bug.cgi?product=glib&keywords=I18N+L10N&component=general' \
          --add-comments --keyword=_ --keyword=N_ \
          --keyword=C_:1c,2 \
          --keyword=NC_:1c,2 \
@@ -119,7 +120,7 @@ $(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
           --flag=g_snprintf:3:c-format \
           --flag=g_scanner_error:2:c-format \
           --flag=g_scanner_warn:2:c-format \
-         --files-from=$(srcdir)/POTFILES.in \
+         $(POTFILES) \
        && test ! -f $(GETTEXT_PACKAGE).po \
           || ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \
                && mv $(GETTEXT_PACKAGE).po $(srcdir)/$(GETTEXT_PACKAGE).pot )