summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <egon@top>2005-11-15 16:45:38 +0100
committerMichael Vogt <egon@top>2005-11-15 16:45:38 +0100
commit6e2871c07ab6f7092c072d5eed264a22af340041 (patch)
treefdd58eb27c038c145ee3b9f606a3e8a800699f3a
parent949a7e408b9e77aeaed979a3c30c3d17829596d1 (diff)
downloadpython-apt-6e2871c07ab6f7092c072d5eed264a22af340041.tar.gz
* added more missing bits
-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")