Finalize puente config, add django-babel support.
This commit is contained in:
Родитель
7229daf2f9
Коммит
901bf3b461
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче