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.messaging/locale/oslo.messaging.pot to
oslo_messaging/locale/oslo_messaging.pot. For this we need to update
setup.cfg.

Update also domain name in i18n.py.

Change-Id: Idf5300224f572d29953261ac998e7bf32a12822d
This commit is contained in:
Andreas Jaeger 2016-01-29 11:34:55 +01:00 committed by Andreas Jaeger
parent b7d70c42bd
commit e32560e9eb
10 changed files with 7 additions and 7 deletions

View File

@ -19,7 +19,7 @@ See http://docs.openstack.org/developer/oslo.i18n/usage.html
import oslo_i18n import oslo_i18n
_translators = oslo_i18n.TranslatorFactory(domain='oslo.messaging') _translators = oslo_i18n.TranslatorFactory(domain='oslo_messaging')
# The primary translation function using the well-known name "_" # The primary translation function using the well-known name "_"
_ = _translators.primary _ = _translators.primary

View File

@ -70,18 +70,18 @@ all_files = 1
upload-dir = doc/build/html upload-dir = doc/build/html
[compile_catalog] [compile_catalog]
directory = oslo.messaging/locale directory = oslo_messaging/locale
domain = oslo.messaging domain = oslo_messaging
[update_catalog] [update_catalog]
domain = oslo.messaging domain = oslo_messaging
output_dir = oslo.messaging/locale output_dir = oslo_messaging/locale
input_file = oslo.messaging/locale/oslo.messaging.pot input_file = oslo_messaging/locale/oslo_messaging.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.messaging/locale/oslo.messaging.pot output_file = oslo_messaging/locale/oslo_messaging.pot
[pbr] [pbr]
warnerrors = true warnerrors = true