From 95b2442a49b8ba770a08c48446d08a6d466e2bdf Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Mon, 8 Apr 2013 03:21:03 +0800 Subject: [PATCH] add target to generate mo files --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 436b4b5e3..b422d4c82 100644 --- a/Makefile +++ b/Makefile @@ -84,5 +84,12 @@ pot: $(XGETTEXT_BIN) reader.lua `find frontend -iname "*.lua"` \ > $(TEMPLATE_DIR)/$(DOMAIN).pot +mo: + for po in `find l10n -iname '*.po'`; do \ + resource=`basename $$po .po` ; \ + lingua=`dirname $$po | xargs basename` ; \ + mkdir -p $(MO_DIR)/$$lingua/LC_MESSAGES/ ; \ + msgfmt -o $(MO_DIR)/$$lingua/LC_MESSAGES/$$resource.mo $$po ; \ + done