summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--po/Makefile16
-rwxr-xr-xsetup.py2
2 files changed, 17 insertions, 1 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
diff --git a/setup.py b/setup.py
index ec4dc084..2c652654 100755
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ for filepath in glob.glob("po/mo/*/LC_MESSAGES/*.mo"):
# HACK: make sure that the mo files are generated and up-to-date
os.system("cd po; make update-po")
# do the same for the desktop files
-os.system("cd date; make")
+os.system("cd data; make")
# and channels
os.system("cd channels; make")