diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 2001-02-14 17:22:34 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 2001-02-14 17:22:34 +0000 |
commit | 217226efe1f63f3b9383e22a6c2616a118d1e6de (patch) | |
tree | d3e026a2307be35f057d5fbc398df27a262c1590 /po/Makefile | |
parent | 2a2de4e6275563b1d974f695ef87fa7748df6520 (diff) | |
download | urpmi-217226efe1f63f3b9383e22a6c2616a118d1e6de.tar urpmi-217226efe1f63f3b9383e22a6c2616a118d1e6de.tar.gz urpmi-217226efe1f63f3b9383e22a6c2616a118d1e6de.tar.bz2 urpmi-217226efe1f63f3b9383e22a6c2616a118d1e6de.tar.xz urpmi-217226efe1f63f3b9383e22a6c2616a118d1e6de.zip |
i18n improvements
Diffstat (limited to 'po/Makefile')
-rw-r--r-- | po/Makefile | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/po/Makefile b/po/Makefile index 5005a700..26e4596a 100644 --- a/po/Makefile +++ b/po/Makefile @@ -1,21 +1,31 @@ -POFILES = $(shell ls *.po) -LOCALEDIR = $(PREFIX)/usr/share/locale +# Installation directories +localedir = $(prefix)/usr/share/locale -all: $(POFILES) +LANGS = $(shell ls *.po | xargs -i basename {} .po ) +PGOAL = urpmi +GOALS = $(PGOAL).pot $(foreach a, $(LANGS), $(a).mo) -install: $(POFILES) - for i in $(POFILES:%.po=%); do \ - install -d $(LOCALEDIR)/$$i/LC_MESSAGES ; \ - cp -f $$i.po $(LOCALEDIR)/$$i/LC_MESSAGES/urpmi.po ; \ - done +# $(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 messages empty.po $(POFILES:%=%t) + rm -f *~ *.[oas] *.mo $(GOALS) TAGS + +%.mo: %.po + msgfmt -o $@ $< -$(POFILES): urpmi.pot - cp -f $@ $@t - msgmerge $@t $< > $@ - rm $@t +%.pot: POTFILES.in + ./create_placeholder + xgettext --default-domain=`basename $@ .pot` --directory=.. \ + --add-comments --keyword=__ --keyword=_ --keyword=N_ \ + --keyword=I_ --keyword=i18n + --files-from=./POTFILES.in && \ + mv `basename $@ .pot`.po $@ -urpmi.pot: ../urpmi - xgettext -L C -F -n --keyword=_ -o $@ $< |