From 67f627f2fbcc0eb84e972371835b3a6119d6ca70 Mon Sep 17 00:00:00 2001 From: chrox Date: Fri, 29 Nov 2013 22:41:56 +0800 Subject: [PATCH] update po file from transifex automatically on each build --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fc3dc34e3..93ec7666d 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ XGETTEXT_BIN=$(KOREADER_MISC_TOOL)/gettext/lua_xgettext.py MO_DIR=$(INSTALL_DIR)/koreader/i18n -all: $(KOR_BASE)/$(OUTPUT_DIR)/luajit mo +all: $(KOR_BASE)/$(OUTPUT_DIR)/luajit po mo $(MAKE) -C $(KOR_BASE) echo $(VERSION) > git-rev mkdir -p $(INSTALL_DIR)/koreader @@ -94,6 +94,9 @@ pot: $(XGETTEXT_BIN) reader.lua `find frontend -iname "*.lua"` \ > $(TEMPLATE_DIR)/$(DOMAIN).pot +po: + $(MAKE) -i -C l10n bootstrap update + mo: for po in `find l10n -iname '*.po'`; do \ resource=`basename $$po .po` ; \