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:
parent
e9f0e5aed5
commit
b27265cc2c
12
setup.cfg
12
setup.cfg
@ -51,18 +51,18 @@ all_files = 1
|
|||||||
upload-dir = doc/build/html
|
upload-dir = doc/build/html
|
||||||
|
|
||||||
[compile_catalog]
|
[compile_catalog]
|
||||||
directory = vmware-nsx/locale
|
directory = vmware_nsx/locale
|
||||||
domain = vmware-nsx
|
domain = vmware_nsx
|
||||||
|
|
||||||
[update_catalog]
|
[update_catalog]
|
||||||
domain = vmware-nsx
|
domain = vmware_nsx
|
||||||
output_dir = vmware-nsx/locale
|
output_dir = vmware_nsx/locale
|
||||||
input_file = vmware-nsx/locale/vmware-nsx.pot
|
input_file = vmware_nsx/locale/vmware_nsx.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 = vmware-nsx/locale/vmware-nsx.pot
|
output_file = vmware_nsx/locale/vmware_nsx.pot
|
||||||
|
|
||||||
[pbr]
|
[pbr]
|
||||||
autodoc_index_modules = 1
|
autodoc_index_modules = 1
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
import oslo_i18n
|
import oslo_i18n
|
||||||
|
|
||||||
DOMAIN = "vmware-nsx"
|
DOMAIN = "vmware_nsx"
|
||||||
|
|
||||||
_translators = oslo_i18n.TranslatorFactory(domain=DOMAIN)
|
_translators = oslo_i18n.TranslatorFactory(domain=DOMAIN)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user