From f0627aeff7a40cf6939437521afec33e581caa71 Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Fri, 27 Dec 2019 01:39:04 +0900 Subject: [PATCH] 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 allows us to switch the message extractor easily. For example, the horizon team plans to switch the babel extractor from django-babel to enmerkar (a fork of django-babel) near future as django-babel does not work with Django 2.2 (the recent LTS of Django) and looks unmaintained for over two years. Change-Id: I4580aa4b0f1ba2f6fd4dcaa3510b665ca5a77024 --- doc/source/creators.rst | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/doc/source/creators.rst b/doc/source/creators.rst index 8036fe0..623024a 100644 --- a/doc/source/creators.rst +++ b/doc/source/creators.rst @@ -1224,9 +1224,6 @@ Create file ``babel-django.cfg`` with the following content: .. code-block:: ini - [extractors] - django = django_babel.extract:extract_django - [python: **.py] [django: **/templates/**.html] [django: **/templates/**.csv] @@ -1235,19 +1232,7 @@ Create file ``babel-djangojs.cfg`` with the following content: .. code-block:: ini - [extractors] - # We use a custom extractor to find translatable strings in AngularJS - # templates. The extractor is included in horizon.utils for now. - # See http://babel.pocoo.org/docs/messages/#referencing-extraction-methods for - # details on how this works. - angular = horizon.utils.babel_extract_angular:extract_angular - [javascript: **.js] - - # We need to look into all static folders for HTML files. - # The **/static ensures that we also search within - # .../dashboards/XYZ/static which will ensure - # that plugins are also translated. [angular: **/static/**.html] ReactJS Projects