瀏覽代碼

Add update-po from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Author: jgg
Date: 2003-02-19 06:51:18 GMT
Add update-po from Ralf Corsepius <corsepiu@faw.uni-ulm.de>

Arch Librarian 22 年之前
父節點
當前提交
3811262056
共有 1 個文件被更改,包括 9 次插入 和 0 次删除
  1. 9 0
      po/makefile

+ 9 - 0
po/makefile

@@ -64,6 +64,15 @@ stats:
 
 
 binary: $(POTFILES) $(PACKAGE)-all.pot $(MOFILES)
 binary: $(POTFILES) $(PACKAGE)-all.pot $(MOFILES)
 
 
+.PHONY: update-po
+update-po: $(PACKAGE)-all.pot
+	for lang in ${LINGUAS}; do\
+	echo "Updating $$lang.po"; \
+	$(MSGMERGE) $$lang.po $(PACKAGE)-all.pot -o $$lang.new.po; \
+	cmp $$lang.new.po $$lang.po || cp $$lang.new.po $$lang.po; \
+	rm -f $$lang.new.po; \
+	done
+
 clean: clean/local
 clean: clean/local
 clean/local:
 clean/local:
 	rm -f $(MOFILES) $(LANG_POFILES) $(PO)/*.d
 	rm -f $(MOFILES) $(LANG_POFILES) $(PO)/*.d