aboutsummaryrefslogtreecommitdiffstats
path: root/po
diff options
context:
space:
mode:
authorChristian Belisle <cbelisle@mandriva.com>2002-01-07 18:33:34 +0000
committerChristian Belisle <cbelisle@mandriva.com>2002-01-07 18:33:34 +0000
commitdb89eceab664c5c5758720028f3f6c0a254315a2 (patch)
tree498516ed9eb6370ad93b0ba8b718045a318b46ab /po
parentdf92b2a14c60e70c5d6529e95a3927af9ba4ab72 (diff)
downloadtransfugdrake-db89eceab664c5c5758720028f3f6c0a254315a2.tar
transfugdrake-db89eceab664c5c5758720028f3f6c0a254315a2.tar.gz
transfugdrake-db89eceab664c5c5758720028f3f6c0a254315a2.tar.bz2
transfugdrake-db89eceab664c5c5758720028f3f6c0a254315a2.tar.xz
transfugdrake-db89eceab664c5c5758720028f3f6c0a254315a2.zip
Initial commit
Diffstat (limited to 'po')
-rw-r--r--po/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile
new file mode 100644
index 0000000..b684e0e
--- /dev/null
+++ b/po/Makefile
@@ -0,0 +1,29 @@
+# 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 $@