summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
authorStefan Siegel <siegel@linux-mandrake.com>2001-08-29 13:15:24 +0000
committerStefan Siegel <siegel@linux-mandrake.com>2001-08-29 13:15:24 +0000
commitdaa99a6f71d7a084484947459c7cc28bc2b25727 (patch)
tree2894484ae76d6102c8b422c04e810b82e3cad4b4 /po/Makefile
parent57acba62c482f13eb89b4baf09703edb323d4de2 (diff)
downloadmgaonline-daa99a6f71d7a084484947459c7cc28bc2b25727.tar
mgaonline-daa99a6f71d7a084484947459c7cc28bc2b25727.tar.gz
mgaonline-daa99a6f71d7a084484947459c7cc28bc2b25727.tar.bz2
mgaonline-daa99a6f71d7a084484947459c7cc28bc2b25727.tar.xz
mgaonline-daa99a6f71d7a084484947459c7cc28bc2b25727.zip
let the translations begin ...
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile
new file mode 100644
index 00000000..f3ae5a31
--- /dev/null
+++ b/po/Makefile
@@ -0,0 +1,30 @@
+# Installation directories
+localedir = $(prefix)/usr/share/locale
+
+LANGS = $(shell ls *.po | xargs -i basename {} .po )
+PGOAL = mdkonline
+GOALS = $(PGOAL).pot $(foreach a, $(LANGS), $(a).mo)
+
+# $(foreach a, $(LANGS), $($(a).mo))
+
+all: $(GOALS)
+
+install: all
+ for l in $(LANGS); do \
+ install -d $(localedir)/$$l/LC_MESSAGES; \
+ install -m 644 $$l.mo $(localedir)/$$l/LC_MESSAGES/$(PGOAL).mo; \
+ done
+
+clean:
+ rm -f *~ *.[oas] *.mo $(GOALS) TAGS
+
+%.mo: %.po
+ msgfmt -o $@ $<
+
+%.pot: POTFILES.in
+ xgettext --default-domain=`basename $@ .pot` --directory=.. \
+ --add-comments --keyword=__ --keyword=_ --keyword=N_ \
+ --keyword=I_ --keyword=i18n \
+ --files-from=./POTFILES.in && \
+ mv `basename $@ .pot`.po $@
+