diff --git a/requirements/prod.txt b/requirements/prod.txt index aa345087f8..5b05f8cf50 100644 --- a/requirements/prod.txt +++ b/requirements/prod.txt @@ -36,6 +36,7 @@ djangorestframework-jwt==1.7.2 django-statsd-mozilla==0.3.10 django-storages==1.1.8 django-waffle==0.11 +django-babel==0.4.0 easy-thumbnails==1.4 elasticsearch==1.1.1 fastchardet==0.2.0 diff --git a/src/olympia/lib/settings_base.py b/src/olympia/lib/settings_base.py index 4911c96082..48a580458b 100644 --- a/src/olympia/lib/settings_base.py +++ b/src/olympia/lib/settings_base.py @@ -438,11 +438,18 @@ PUENTE = { 'DOMAIN_METHODS': { 'django': [ ('src/olympia/**.py', 'python'), + + # Make sure we're parsing django-admin templates with the django + # template extractor + ( + 'src/olympia/zadmin/templates/admin/*.html', + 'django_babel.extract.extract_django' + ), + ('src/olympia/**/templates/**.html', 'jinja2'), - ('templates/**.html', 'jinja2'), ('**/templates/**.lhtml', 'jinja2'), ], - 'javascript': [ + 'djangojs': [ # We can't say **.js because that would dive into mochikit and timeplot # and all the other baggage we're carrying. Timeplot, in particular, # crashes the extractor with bad unicode data.