Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: standardize make extract_translations #212

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ edx_ace/tests/__init__.py
default.db

.hypothesis

# Translation
edx_ace/conf/locale/*/LC_MESSAGES/*
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ write-pylintrc:

extract_translations: ## extract strings to be translated, outputting .mo files
rm -rf docs/_build
cd edx-ace && ../manage.py makemessages -l en -v1 -d django
cd edx-ace && ../manage.py makemessages -l en -v1 -d djangojs
cd edx_ace && django-admin makemessages -l en -v1 -d django
cd edx_ace && django-admin makemessages -l en -v1 -d djangojs

compile_translations: ## compile translation files, outputting .po files for each supported language
cd edx-ace && ../manage.py compilemessages
cd edx_ace && django-admin compilemessages

detect_changed_source_translations:
cd edx-ace && i18n_tool changed
cd edx_ace && i18n_tool changed

pull_translations: ## pull translations from Transifex
tx pull -t -a -f --mode reviewed
Expand Down
72 changes: 0 additions & 72 deletions locale/config.yaml

This file was deleted.