summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2018-01-19 00:24:43 +0100
committerJan Tojnar <jtojnar@gmail.com>2018-01-19 02:24:20 +0100
commit4dbbbba56f4040f05cba595d14972cacbf856e44 (patch)
tree66cc80ec16ef1e9e1d7cc600cc643b320604b893 /Makefile
parent84018eea6b578ed7cf536add2d0d765e2c0e4cc4 (diff)
Replace intltool with pure gettext
https://wiki.gnome.org/MigratingFromIntltoolToGettext
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7e607b5..2f99ff2 100644
--- a/Makefile
+++ b/Makefile
@@ -32,10 +32,10 @@ bustle-pcap.1: dist/build/bustle-pcap
help2man --output=$@ --no-info --name='Generate D-Bus logs for bustle' $<
org.freedesktop.Bustle.desktop: data/org.freedesktop.Bustle.desktop.in
- LC_ALL=C intltool-merge -d -u po $< $@
+ msgfmt --desktop -d po --template $< -o $@
org.freedesktop.Bustle.appdata.xml: data/org.freedesktop.Bustle.appdata.xml.in
- LC_ALL=C intltool-merge -x -u po $< $@
+ msgfmt --xml -d po --template $< -o $@
# https://github.com/flathub/flathub/wiki/Review-Guidelines
validate-metadata: org.freedesktop.Bustle.desktop org.freedesktop.Bustle.appdata.xml
@@ -109,6 +109,8 @@ org.freedesktop.Bustle.flatpak: flatpak/org.freedesktop.Bustle.json
# Maintainer stuff
maintainer-update-messages-pot:
find Bustle -name '*.hs' -print0 | xargs -0 hgettext -k __ -o po/messages.pot
+ xgettext data/bustle.ui data/org.freedesktop.Bustle.desktop.in \
+ data/org.freedesktop.Bustle.appdata.xml.in --join-existing -o po/messages.pot
maintainer-make-release: bustle.cabal dist/build/autogen/version.txt
cabal test