Skip to content

Commit

Permalink
remove template pot and translated po files in the main repo
Browse files Browse the repository at this point in the history
aternatively the resource file(pot file) in Transifex is updated
with `make pot` and the translated files(po files) is updated with
`make po`. `make pot po` will be handled automatically on the nightly
build machine.
  • Loading branch information
chrox committed Aug 26, 2014
1 parent f2c2657 commit 1817a91
Show file tree
Hide file tree
Showing 18 changed files with 16 additions and 11,955 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ koreader-*.zip
koreader-*.apk
koreader-*.tar.gz

l10n/*
!l10n/Makefile
!l10n/README.md

/.cproject
/.project

koreader-arm-linux-androideabi
koreader-arm-linux-gnueabi
koreader-arm-linux-gnueabihf
koreader-x86_64-linux-gnu

4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ pot:
$(XGETTEXT_BIN) reader.lua `find frontend -iname "*.lua"` \
`find plugins -iname "*.lua"` \
> $(TEMPLATE_DIR)/$(DOMAIN).pot
# push source file to Transifex
$(MAKE) -i -C l10n bootstrap push

po:
$(MAKE) -i -C l10n bootstrap update
$(MAKE) -i -C l10n bootstrap pull
11 changes: 7 additions & 4 deletions l10n/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
all: update

update:
tx pull -a -f
all: bootstrap push pull

bootstrap:
tx set --auto-local -r koreader.koreader "<lang>/koreader.po" \
--source-language=en \
--source-file "templates/koreader.pot" --execute

pull:
tx pull -a -f

push:
tx push -sl en

.PHONY: all clean

2 changes: 1 addition & 1 deletion l10n/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
2. configure the client:
http://support.transifex.com/customer/portal/articles/1000855-configuring-the-client

3. pull changes from transifex: `make update`
3. pull changes from transifex: `make pull`
Loading

0 comments on commit 1817a91

Please sign in to comment.