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

Update also domain name in _i18n.py.

Change-Id: I9ab5c9cc1e3d210e80c140ce0e2c7122bbeb5691
This commit is contained in:
Akihiro Motoki 2016-01-29 07:54:16 +09:00
parent 2bedc185e3
commit 8d2c04e459
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
_translators = oslo_i18n.TranslatorFactory(domain='oslo.vmware')
_translators = oslo_i18n.TranslatorFactory(domain='oslo_vmware')
# The primary translation function using the well-known name "_"
_ = _translators.primary

View File

@ -31,18 +31,18 @@ all_files = 1
upload-dir = doc/build/html
[compile_catalog]
directory = oslo.vmware/locale
domain = oslo.vmware
directory = oslo_vmware/locale
domain = oslo_vmware
[update_catalog]
domain = oslo.vmware
output_dir = oslo.vmware/locale
input_file = oslo.vmware/locale/oslo.vmware.pot
domain = oslo_vmware
output_dir = oslo_vmware/locale
input_file = oslo_vmware/locale/oslo_vmware.pot
[extract_messages]
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = oslo.vmware/locale/oslo.vmware.pot
output_file = oslo_vmware/locale/oslo_vmware.pot
[pbr]
autodoc_index_modules = 1