diff options
author | Olivier Blin <oblin@mandriva.org> | 2006-02-23 11:47:15 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2006-02-23 11:47:15 +0000 |
commit | 06d2c05a32a3ded34fdb62a4630b461039c38748 (patch) | |
tree | 71b7f8028be51fdbf1e2f5c388daf9aa522e2169 /live/draklive-install/po/Makefile | |
parent | 4104f6c363ca904387fe2b6f39b646925cf90ff0 (diff) | |
download | drakx-06d2c05a32a3ded34fdb62a4630b461039c38748.tar drakx-06d2c05a32a3ded34fdb62a4630b461039c38748.tar.gz drakx-06d2c05a32a3ded34fdb62a4630b461039c38748.tar.bz2 drakx-06d2c05a32a3ded34fdb62a4630b461039c38748.tar.xz drakx-06d2c05a32a3ded34fdb62a4630b461039c38748.zip |
add po files
Diffstat (limited to 'live/draklive-install/po/Makefile')
-rw-r--r-- | live/draklive-install/po/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/live/draklive-install/po/Makefile b/live/draklive-install/po/Makefile new file mode 100644 index 000000000..31afe5c45 --- /dev/null +++ b/live/draklive-install/po/Makefile @@ -0,0 +1,33 @@ +NAME = draklive-install +localedir = ${prefix}/share/locale +PL_FILES = ../$(NAME) $(shell find .. -type f -name "*pm") + +POFILES = $(shell for i in ../../../perl-install/share/po/*.po; do basename $$i; done) +MOFILES = $(POFILES:%.po=%.mo) +LANGS = $(POFILES:%.po=%) + +all: $(NAME).pot $(POFILES) $(MOFILES) + +%.mo: %.po + msgfmt -o $@ $< + +merge: $(NAME).pot + @for n in $(POFILES); do \ + echo "Merging $$n"; \ + msgmerge "$$n" $< > "$$n"t; \ + mv -f "$$n"t "$$n"; \ + done + +$(NAME).pot: + xgettext -F -n --from-code --add-comments='I18N' \ + --keyword=_ --keyword=__ --keyword=N_ --keyword=N \ + -o $@ $(PL_FILES) + +install: all + for l in $(LANGS); do \ + install -d $(localedir)/$$l/LC_MESSAGES; \ + install -m 644 $$l.mo $(localedir)/$$l/LC_MESSAGES/$(NAME).mo; \ + done + +clean: + @rm -rf *.mo $(POFILES:%=%t) $(NAME).pot |