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:
Akihiro Motoki 2016-01-29 08:03:49 +09:00
parent 866ce629bc
commit 21fbb7e829
16 changed files with 7 additions and 7 deletions

View File

@ -21,7 +21,7 @@ See http://docs.openstack.org/developer/oslo.i18n/usage.html .
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 "_"
_ = _translators.primary

View File

@ -34,18 +34,18 @@ all_files = 1
upload-dir = doc/build/html
[compile_catalog]
directory = oslo.utils/locale
domain = oslo.utils
directory = oslo_utils/locale
domain = oslo_utils
[update_catalog]
domain = oslo.utils
output_dir = oslo.utils/locale
input_file = oslo.utils/locale/oslo.utils.pot
domain = oslo_utils
output_dir = oslo_utils/locale
input_file = oslo_utils/locale/oslo_utils.pot
[extract_messages]
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = oslo.utils/locale/oslo.utils.pot
output_file = oslo_utils/locale/oslo_utils.pot
[wheel]
universal = 1