Skip to content

Commit

Permalink
Make translations available when package installed as Django app.
Browse files Browse the repository at this point in the history
Reorganizes the i18n/locale files to follow Django conventions
so that they are available when the edx-credentials-themes package is
installed as a Django application. Also updates the MANIFEST.in file to
ensure translations are included with the edx-credentials-themes
package when it is installed.

LEARNER-1940
  • Loading branch information
amangano-edx committed Oct 18, 2017
1 parent 833eec3 commit 0e74ab8
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include README.rst
recursive-include edx_credentials_themes *.html *.png *.css *jpg *jpeg *svg *py *.otf *.ttf *.woff *.woff2
recursive-include edx_credentials_themes/locale *.mo
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ build.watch:
$(NODE_BIN)/webpack --config webpack.config.js --display-error-details --progress --watch

compile_translations:
django-admin.py compilemessages
cd edx_credentials_themes && django-admin.py compilemessages

extract_translations:
django-admin.py makemessages -l en -d django
cd edx_credentials_themes && django-admin.py makemessages -l en -d django

i18n_requirements:
pip install -r ./conf/locale/requirements.txt
pip install -r ./requirements/i18n.txt

requirements:
npm install
Expand Down
2 changes: 1 addition & 1 deletion edx_credentials_themes/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.4'
__version__ = '0.1.6'
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0e74ab8

Please sign in to comment.