Skip to content

Commit 5493889

Browse files
committed
translation: drop babel extractor definitions
babel extractors are now registered via python entry points, so there is no need to declare babel extractors in babel configs. This change is important to make translation work in Django 2.2. django-babel does not work with Django 2.2 and looks unmaintained for over two years. The horizon team is thinking to switch the extractor to enmerkar (a fork of django-babel) to make extraction of translation string work again near future. It is important to drop the extractor definition to make the transition smooth. Change-Id: I9b856e6ba9b5783a765ea8d14f0bd6f012256876
1 parent 367e07c commit 5493889

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

babel-django.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[extractors]
2-
django = django_babel.extract:extract_django
3-
41
[python: **.py]
52
[django: **/templates/**.html]
63
[django: **/templates/**.csv]

babel-djangojs.cfg

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,2 @@
1-
[extractors]
2-
# We use a custom extractor to find translatable strings in AngularJS
3-
# templates. The extractor is included in horizon.utils for now.
4-
# See http://babel.pocoo.org/docs/messages/#referencing-extraction-methods for
5-
# details on how this works.
6-
angular = horizon.utils.babel_extract_angular:extract_angular
7-
81
[javascript: **.js]
9-
10-
# We need to look into all static folders for HTML files.
11-
# The **/static ensures that we also search within
12-
# .../dashboards/XYZ/static which will ensure
13-
# that plugins are also translated.
142
[angular: **/static/**.html]

0 commit comments

Comments
 (0)