Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
Streamline i18n tooling and added French Canadian, German as well as …
Browse files Browse the repository at this point in the history
…Japanese (#158)

* Added more standard-ish Transifex tooling

* Updated translations

* Update translations (autogenerated message)
  • Loading branch information
OmarIthawi authored and kitsook committed Aug 1, 2019
1 parent 372497d commit 998a52f
Show file tree
Hide file tree
Showing 26 changed files with 6,879 additions and 285 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: docs
.PHONY: docs requirements

env:
pip install virtualenv && \
Expand All @@ -17,7 +17,7 @@ clean:
find . -name '*~' -exec rm -f {} \;
rm -rf bower_components node_modules

test: test-py test-js
test: test-py test-js extract

test-py:
DJANGO_SETTINGS_MODULE=settings.test python manage.py test
Expand Down Expand Up @@ -58,3 +58,11 @@ extract:
compile:
for i in `find ubcpi/translations/ -name *.po`; do msgfmt $$i -o `dirname $$i`/text.mo; done
node_modules/.bin/angular-gettext-cli --compile --files 'ubcpi/translations/**/*.po' --format javascript --dest 'ubcpi/static/js/src/translations.js'

pull_translations:
tx pull --force --mode=reviewed -l=ar,es_419,ja_JP,fr,fr_CA,he,hi,ko_KR,pt_BR,ru,zh_CN,de_DE,pl
make compile

push_translations:
make extract
tx push -s
13 changes: 12 additions & 1 deletion ubcpi/static/js/src/translations.js

Large diffs are not rendered by default.

Binary file modified ubcpi/translations/ar/LC_MESSAGES/text.mo
Binary file not shown.
Loading

0 comments on commit 998a52f

Please sign in to comment.