Update translation setup
Follow new infra setup for translations, see spec http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html for full details. This basically renames oslo.middleware/locale/oslo.middleware.pot to oslo_middleware/locale/oslo_middleware.pot. For this we need to update setup.cfg. Update also domain name in i18n.py. Change-Id: I5d9c146d6bc9392930c93414c04dda89c16044c1
This commit is contained in:
parent
7f7f4a3632
commit
9e32b8f19d
@ -19,7 +19,7 @@ See http://docs.openstack.org/developer/oslo.i18n/usage.html
|
||||
import oslo_i18n
|
||||
|
||||
|
||||
_translators = oslo_i18n.TranslatorFactory(domain='oslo.middleware')
|
||||
_translators = oslo_i18n.TranslatorFactory(domain='oslo_middleware')
|
||||
|
||||
# The primary translation function using the well-known name "_"
|
||||
_ = _translators.primary
|
||||
|
12
setup.cfg
12
setup.cfg
@ -53,18 +53,18 @@ all_files = 1
|
||||
upload-dir = doc/build/html
|
||||
|
||||
[compile_catalog]
|
||||
directory = oslo.middleware/locale
|
||||
domain = oslo.middleware
|
||||
directory = oslo_middleware/locale
|
||||
domain = oslo_middleware
|
||||
|
||||
[update_catalog]
|
||||
domain = oslo.middleware
|
||||
output_dir = oslo.middleware/locale
|
||||
input_file = oslo.middleware/locale/oslo.middleware.pot
|
||||
domain = oslo_middleware
|
||||
output_dir = oslo_middleware/locale
|
||||
input_file = oslo_middleware/locale/oslo_middleware.pot
|
||||
|
||||
[extract_messages]
|
||||
keywords = _ gettext ngettext l_ lazy_gettext
|
||||
mapping_file = babel.cfg
|
||||
output_file = oslo.middleware/locale/oslo.middleware.pot
|
||||
output_file = oslo_middleware/locale/oslo_middleware.pot
|
||||
|
||||
[pbr]
|
||||
warnerrors = True
|
||||
|
Loading…
Reference in New Issue
Block a user