summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-09-10 12:55:55 +0200
committerBastien Nocera <hadess@hadess.net>2019-09-10 13:18:09 +0200
commit7202880675f61e06bbb94d7b7974438a2a909ed0 (patch)
tree08c943d709b352ae1f198e1d65c9d9cf84ad5844 /po
parenta4aaf5780ca0aea7dc58cb8753b2f65a4992348d (diff)
downloadshared-mime-info-7202880675f61e06bbb94d7b7974438a2a909ed0.tar.gz
build: Don't use an intermediate .pot file to do translationswip/hadess/really-gettext
Declare freedesktop.org.xml.in to be translatable directly, without extracting translatable strings from a .pot which we then translate, which we then need to merge into translations. Files in its/ from Robert Ancell <robert.ancell@canonical.com> https://gitlab.freedesktop.org/xdg/shared-mime-info/merge_requests/4
Diffstat (limited to 'po')
-rw-r--r--po/Makevars3
-rw-r--r--po/POTFILES.in2
2 files changed, 4 insertions, 1 deletions
diff --git a/po/Makevars b/po/Makevars
index b5da6bcc..ec459209 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -7,6 +7,9 @@ DOMAIN = $(PACKAGE)
subdir = po
top_builddir = ..
+# This allows us using local its files
+XGETTEXT := env GETTEXTDATADIRS="$(top_srcdir)/" $(XGETTEXT)
+
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 6f9935af..88fa57bd 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1 +1 @@
-shared-mime-info.pot
+freedesktop.org.xml.in