Merge "Translation preparation for neutron-lbaas-dashboard"

This commit is contained in:
Jenkins 2016-10-04 00:09:45 +00:00 committed by Gerrit Code Review
commit 460e27c5a1
4 changed files with 20 additions and 16 deletions

6
babel-django.cfg Normal file
View File

@ -0,0 +1,6 @@
[extractors]
django = django_babel.extract:extract_django
[python: **.py]
[django: templates/**.html]
[django: **/templates/**.csv]

14
babel-djangojs.cfg Normal file
View File

@ -0,0 +1,14 @@
[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]

View File

@ -1,2 +0,0 @@
[python: **.py]

View File

@ -27,17 +27,3 @@ all_files = 1
[upload_sphinx]
upload-dir = doc/build/html
[compile_catalog]
directory = neutron_lbaas_dashboard/locale
domain = neutron-lbaas-dashboard
[update_catalog]
domain = neutron-lbaas-dashboard
output_dir = neutron_lbaas_dashboard/locale
input_file = neutron_lbaas_dashboard/locale/neutron-lbaas-dashboard.pot
[extract_messages]
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = neutron_lbaas_dashboard/locale/neutron-lbaas-dashboard.pot