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.concurrency/locale/oslo.concurrency.pot to oslo_concurrency/locale/oslo_concurrency.pot. For this we need to update setup.cfg. Update also domain name in i18n.py. Change-Id: Ie774c4252f8481f2541ed0a2cad565d149dfcc72
This commit is contained in:
parent
70118c268f
commit
e9d00d16ae
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
import oslo_i18n
|
import oslo_i18n
|
||||||
|
|
||||||
_translators = oslo_i18n.TranslatorFactory(domain='oslo.concurrency')
|
_translators = oslo_i18n.TranslatorFactory(domain='oslo_concurrency')
|
||||||
|
|
||||||
# The primary translation function using the well-known name "_"
|
# The primary translation function using the well-known name "_"
|
||||||
_ = _translators.primary
|
_ = _translators.primary
|
||||||
|
12
setup.cfg
12
setup.cfg
@ -37,18 +37,18 @@ all_files = 1
|
|||||||
upload-dir = doc/build/html
|
upload-dir = doc/build/html
|
||||||
|
|
||||||
[compile_catalog]
|
[compile_catalog]
|
||||||
directory = oslo.concurrency/locale
|
directory = oslo_concurrency/locale
|
||||||
domain = oslo.concurrency
|
domain = oslo_concurrency
|
||||||
|
|
||||||
[update_catalog]
|
[update_catalog]
|
||||||
domain = oslo.concurrency
|
domain = oslo_concurrency
|
||||||
output_dir = oslo.concurrency/locale
|
output_dir = oslo_concurrency/locale
|
||||||
input_file = oslo.concurrency/locale/oslo.concurrency.pot
|
input_file = oslo_concurrency/locale/oslo_concurrency.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.concurrency/locale/oslo.concurrency.pot
|
output_file = oslo_concurrency/locale/oslo_concurrency.pot
|
||||||
|
|
||||||
[pbr]
|
[pbr]
|
||||||
warnerrors = True
|
warnerrors = True
|
||||||
|
Loading…
Reference in New Issue
Block a user