Fix translation setup
Setup project according to http://docs.openstack.org/infra/manual/creators.html#django-projects: * Fix paths in babel*cfg * Remove unused entries with wrong paths in setup.cfg Change-Id: I5d96ad26e1587b1d35aac4bd408ffa76ebe5c196
This commit is contained in:
parent
2dbb134873
commit
22b49a5979
|
@ -1,5 +1,6 @@
|
|||
[extractors]
|
||||
django = django_babel.extract:extract_django
|
||||
|
||||
[python: horizon_cisco_ui/**.py]
|
||||
[django: horizon_cisco_ui/**/templates/**.html]
|
||||
[python: **.py]
|
||||
[django: templates/**.html]
|
||||
[django: **/templates/**.csv]
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
# details on how this works.
|
||||
angular = horizon.utils.babel_extract_angular:extract_angular
|
||||
|
||||
[javascript: horizon_cisco_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: horizon_cisco_ui/**/static/**.html]
|
||||
[angular: **/static/**.html]
|
||||
|
|
14
setup.cfg
14
setup.cfg
|
@ -35,17 +35,3 @@ source-dir = doc/source
|
|||
[nosetests]
|
||||
verbosity=2
|
||||
detailed-errors=1
|
||||
|
||||
[compile_catalog]
|
||||
domain = horizon-cisco-ui
|
||||
directory = horizon-cisco-ui/locale
|
||||
|
||||
[update_catalog]
|
||||
domain = horizon-cisco-ui
|
||||
output_dir = horizon-cisco-ui/locale
|
||||
input_file = horizon-cisco-ui/locale/horizon-cisco-ui.pot
|
||||
|
||||
[extract_messages]
|
||||
keywords = _ gettext ngettext l_ lazy_gettext
|
||||
mapping_file = babel.cfg
|
||||
output_file = horizon-cisco-ui/locale/horizon-cisco-ui.pot
|
||||
|
|
Loading…
Reference in New Issue