Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=7a3193488984735a42d40d760eb7825199327b07
commit 7a3193488984735a42d40d760eb7825199327b07 Author: janny <[EMAIL PROTECTED]> Date: Thu Sep 27 16:43:41 2007 +0200 accidental deleted diff --git a/po/Makefile b/po/Makefile new file mode 100644 index 0000000..66343bc --- /dev/null +++ b/po/Makefile @@ -0,0 +1,44 @@ +top_srcdir = +PO_DIR=~/git/translations/po +LANGS = $(shell ls $(PO_DIR)/fwlive) + +pos: + [ -d $(PO_DIR) ] + for i in $(LANGS); \ + do \ + cp $(PO_DIR)/fwlive/$$i/fwlive.po $$i.po; \ + if ! msgfmt -c --statistics -o $$i.gmo $$i.po; then \ + echo "WARNING: $$i.po will break your build!"; \ + fi; \ + done + +mos: + for i in $(wildcard *.po); do \ + echo -n "$$i: "; \ + msgfmt -c --statistics -o $(CHROOTDIR)/$(TREE)/usr/share/locale/`basename $$i .po`/LC_MESSAGES/fwlive.mo $$i; \ + done + +pot: intltool-extract + for i in `cat POTFILES.in`; do \ + ln -s `basename $$i .sh` ../$$i; \ + done + intltool-update --pot --gettext-package=fwlive + for i in `cat POTFILES.in`; do \ + rm ../$$i; \ + done + +intltool-extract: + cp /usr/bin/intltool-extract ./ + +update-po: pot + for lang in $(LANGS); do \ + if msgmerge $$lang.po fwlive.pot -o $$lang.new.po; then \ + mv -f $$lang.new.po $$lang.po; \ + else \ + echo "msgmerge for $$cat failed!"; \ + rm -f $$lang.new.po; \ + fi; \ + done + +distclean: + rm -f intltool-extract *.pot *.po *.gmo diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 0000000..9ac0e06 --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1,7 @@ +configsave.sh +fileswap.sh +fpm2lzm.sh +rc.config.sh +rc.fsupd.sh +rc.fwlive.sh +rc.parse_cmdline.sh _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
