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

Update also domain name in _i18n.py.

Let's remove the po and pot files in the outdated paths.
The updated scripts work without them. So, we can just
delete the files and once the infra script runs,
an updated pot file together with translations
will be imported automatically.

Change-Id: Id4bade9ffd23c57153b415514c82b384fd0977aa
This commit is contained in:
Akihiro Motoki 2016-01-29 01:28:08 +09:00
parent e9f0e5aed5
commit b27265cc2c
3 changed files with 7 additions and 1640 deletions

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@
import oslo_i18n
DOMAIN = "vmware-nsx"
DOMAIN = "vmware_nsx"
_translators = oslo_i18n.TranslatorFactory(domain=DOMAIN)