Skip to content

Commit

Permalink
Merge cf6c3a3 into 5b6e12d
Browse files Browse the repository at this point in the history
  • Loading branch information
dsjen committed Jan 10, 2017
2 parents 5b6e12d + cf6c3a3 commit 6bb9313
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,14 @@ demo:
python manage.py waffle_switch display_names_for_course_index off --create
python manage.py waffle_switch display_course_name_in_nav off --create

# compiles the *.po & *.mo files
# compiles djangojs and django .po and .mo files
compile_translations:
cd analytics_dashboard && i18n_tool generate -v
python manage.py compilemessages

# creates the django-partial.po & django-partial.mo files
# creates the source django & djangojs files
extract_translations:
cd analytics_dashboard && i18n_tool extract -v
cd analytics_dashboard && python ../manage.py makemessages -l en -v1 --ignore="docs/*" --ignore="src/*" --ignore="i18n/*" --ignore="assets/*" -d django
cd analytics_dashboard && python ../manage.py makemessages -l en -v1 --ignore="docs/*" --ignore="src/*" --ignore="i18n/*" --ignore="assets/*" -d djangojs

dummy_translations:
cd analytics_dashboard && i18n_tool dummy -v
Expand All @@ -97,6 +98,7 @@ detect_changed_source_translations:

# extract, compile, and check if translation files are up-to-date
validate_translations: extract_translations compile_translations detect_changed_source_translations
cd analytics_dashboard && i18n_tool validate

static_no_compress:
$(NODE_BIN)/r.js -o build.js
Expand Down
8 changes: 4 additions & 4 deletions analytics_dashboard/.tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
host = https://www.transifex.com

[edx-platform.analytics-dashboard]
file_filter = conf/locale/<lang>/LC_MESSAGES/django-partial.po
source_file = conf/locale/en/LC_MESSAGES/django-partial.po
file_filter = conf/locale/<lang>/LC_MESSAGES/django.po
source_file = conf/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO

[edx-platform.analytics-dashboard-js]
file_filter = conf/locale/<lang>/LC_MESSAGES/djangojs-partial.po
source_file = conf/locale/en/LC_MESSAGES/djangojs-partial.po
file_filter = conf/locale/<lang>/LC_MESSAGES/djangojs.po
source_file = conf/locale/en/LC_MESSAGES/djangojs.po
source_lang = en
type = PO

0 comments on commit 6bb9313

Please sign in to comment.