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.utils/locale/oslo.utils.pot to oslo_utils/locale/oslo_utils.pot. For this we need to update setup.cfg. Update also domain name in _i18n.py. Change-Id: Ie4837571b06dd08da9676bf6a3f6eca932559fb1
This commit is contained in:
parent
866ce629bc
commit
21fbb7e829
@ -21,7 +21,7 @@ See http://docs.openstack.org/developer/oslo.i18n/usage.html .
|
|||||||
import oslo_i18n
|
import oslo_i18n
|
||||||
|
|
||||||
|
|
||||||
_translators = oslo_i18n.TranslatorFactory(domain='oslo.utils')
|
_translators = oslo_i18n.TranslatorFactory(domain='oslo_utils')
|
||||||
|
|
||||||
# The primary translation function using the well-known name "_"
|
# The primary translation function using the well-known name "_"
|
||||||
_ = _translators.primary
|
_ = _translators.primary
|
||||||
|
12
setup.cfg
12
setup.cfg
@ -34,18 +34,18 @@ all_files = 1
|
|||||||
upload-dir = doc/build/html
|
upload-dir = doc/build/html
|
||||||
|
|
||||||
[compile_catalog]
|
[compile_catalog]
|
||||||
directory = oslo.utils/locale
|
directory = oslo_utils/locale
|
||||||
domain = oslo.utils
|
domain = oslo_utils
|
||||||
|
|
||||||
[update_catalog]
|
[update_catalog]
|
||||||
domain = oslo.utils
|
domain = oslo_utils
|
||||||
output_dir = oslo.utils/locale
|
output_dir = oslo_utils/locale
|
||||||
input_file = oslo.utils/locale/oslo.utils.pot
|
input_file = oslo_utils/locale/oslo_utils.pot
|
||||||
|
|
||||||
[extract_messages]
|
[extract_messages]
|
||||||
keywords = _ gettext ngettext l_ lazy_gettext
|
keywords = _ gettext ngettext l_ lazy_gettext
|
||||||
mapping_file = babel.cfg
|
mapping_file = babel.cfg
|
||||||
output_file = oslo.utils/locale/oslo.utils.pot
|
output_file = oslo_utils/locale/oslo_utils.pot
|
||||||
|
|
||||||
[wheel]
|
[wheel]
|
||||||
universal = 1
|
universal = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user