diff --git a/.gitignore b/.gitignore index 4fa05a215..794561f46 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ *.pyc *~ -*.mo +*.po *.debhelper *.iml *.ipr diff --git a/Makefile b/Makefile index 80a931df0..ba3971f94 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ help: @echo "" -all: submodules alltests docs web compilemessages +all: submodules alltests docs web compilemessages transifex dev: @echo export PYTHONPATH=`pwd` @@ -97,6 +97,7 @@ pytests: @echo clean: + @rm -rf mailpile/locale/?? mailpile/locale/??_* @rm -f `find . -name \\*.pyc` \ `find . -name \\*.mo` \ mailpile-tmp.py mailpile.py \ @@ -107,7 +108,7 @@ clean: mailpile/tests/data/tmp/ testing/tmp/ mrproper: clean - @rm -rf dist/ bower_components/ + @rm -rf dist/ bower_components/ mailpile/locale/mailpile.pot git reset --hard && git clean -dfx sdist: clean @@ -168,14 +169,17 @@ genmessages: compilemessages: @scripts/compile-messages.sh +transifex: + tx pull -a --minimum-perc=50 + tx pull -l is + # ----------------------------------------------------------------------------- # BUILD # ----------------------------------------------------------------------------- -tarball: mrproper js - #TODO: get transifex files +tarball: mrproper js genmessages transifex git submodule update --init --recursive git submodule foreach 'git reset --hard && git clean -dfx' tar --exclude='./packages/debian' --exclude-vcs -czf /tmp/mailpile.tar.gz -C $(shell pwd) . diff --git a/babel.cfg b/babel.cfg index bd8ba47ed..7950911ae 100644 --- a/babel.cfg +++ b/babel.cfg @@ -2,7 +2,18 @@ [python: mailpile/**.py] encoding = utf-8 +[python: shared-data/contrib/**.py] +encoding = utf-8 + # Extraction from Jinja2 template files -[jinja2: mailpile/www/default/html/**] +[jinja2: shared-data/default-theme/html/**] +encoding = utf-8 +ignore_tags = style + +[jinja2: shared-data/contrib/html/**.html] +encoding = utf-8 +ignore_tags = style + +[jinja2: shared-data/contrib/html/**.js] encoding = utf-8 ignore_tags = style