mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
update po file from transifex automatically on each build
This commit is contained in:
5
Makefile
5
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` ; \
|
||||
|
||||
Reference in New Issue
Block a user