diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 2001-02-16 15:01:11 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 2001-02-16 15:01:11 +0000 |
commit | 1a6c067bfd5d6d1537f4c2ffd02fc5d04188bafa (patch) | |
tree | a04a7e7f437713dc6260aa4d9e0de10496bb6a3a /po/Makefile | |
parent | 08576b987c0f6177d3e1522a2a59d598299ed5d1 (diff) | |
download | control-center-1a6c067bfd5d6d1537f4c2ffd02fc5d04188bafa.tar control-center-1a6c067bfd5d6d1537f4c2ffd02fc5d04188bafa.tar.gz control-center-1a6c067bfd5d6d1537f4c2ffd02fc5d04188bafa.tar.bz2 control-center-1a6c067bfd5d6d1537f4c2ffd02fc5d04188bafa.tar.xz control-center-1a6c067bfd5d6d1537f4c2ffd02fc5d04188bafa.zip |
added i18n support
Diffstat (limited to 'po/Makefile')
-rw-r--r-- | po/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile new file mode 100644 index 00000000..ccb6b47e --- /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 = DrakConf +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 $@ + |