diff --git a/babel-django.cfg b/babel-django.cfg index ab7d37bf..e7ee76ae 100644 --- a/babel-django.cfg +++ b/babel-django.cfg @@ -1,5 +1,6 @@ [extractors] django = django_babel.extract:extract_django -[python: ironic_ui/**.py] -[django: ironic_ui/**/templates/**.html] +[python: **.py] +[django: templates/**.html] +[django: **/templates/**.csv] diff --git a/babel-djangojs.cfg b/babel-djangojs.cfg index 8234f0f8..a8273b62 100644 --- a/babel-djangojs.cfg +++ b/babel-djangojs.cfg @@ -5,10 +5,10 @@ # details on how this works. angular = horizon.utils.babel_extract_angular:extract_angular -[javascript: ironic_ui/**.js] +[javascript: **.js] # We need to look into all static folders for HTML files. # The **/static ensures that we also search within # /openstack_dashboard/dashboards/XYZ/static which will ensure # that plugins are also translated. -[angular: ironic_ui/**/static/**.html] +[angular: **/static/**.html] diff --git a/setup.cfg b/setup.cfg index 45fa7021..f1dcc0bc 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,13 +33,3 @@ upload-dir = doc/build/html [compile_catalog] directory = ironic_ui/locale domain = ironic-ui - -[update_catalog] -domain = ironic-ui -output_dir = ironic_ui/locale -input_file = ironic_ui/locale/ironic-ui.pot - -[extract_messages] -keywords = _ gettext ngettext l_ lazy_gettext -mapping_file = babel.cfg -output_file = ironic_ui/locale/ironic_ui.pot