summaryrefslogtreecommitdiff
path: root/po/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile
new file mode 100644
index 00000000..326de934
--- /dev/null
+++ b/po/Makefile
@@ -0,0 +1,16 @@
+
+DOMAIN=update-manager
+PO_FILES := $(wildcard *.po)
+
+update-po: $(DOMAIN).pot $(patsubst %.po,%.mo,$(wildcard *.po))
+ # update the po files
+ for f in $(PO_FILES); do \
+ intltool-update -r $${f%.po} -g $(DOMAIN); \
+ done
+
+$(DOMAIN).pot:
+ intltool-update -p -g $(DOMAIN)
+
+%.mo : %.po
+ mkdir -p mo/$(subst .po,,$<)/LC_MESSAGES/
+ msgfmt $< -o mo/$(subst .po,,$<)/LC_MESSAGES/$(DOMAIN).mo