From 6e2871c07ab6f7092c072d5eed264a22af340041 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 15 Nov 2005 16:45:38 +0100 Subject: * added more missing bits --- po/Makefile | 16 ++++++++++++++++ setup.py | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 po/Makefile 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") -- cgit v1.2.3