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:
1 parent
70118c268f
commit
e9d00d16ae
10 files changed
+7
-7
No files matched your search
@@ -16,7 +16,7 @@
|
||||
|
||||
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 "_"
|
||||
_ = _translators.primary
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -37,18 +37,18 @@ all_files = 1
|
||||
upload-dir = doc/build/html
|
||||
|
||||
[compile_catalog]
|
||||
directory = oslo.concurrency/locale
|
||||
domain = oslo.concurrency
|
||||
directory = oslo_concurrency/locale
|
||||
domain = oslo_concurrency
|
||||
|
||||
[update_catalog]
|
||||
domain = oslo.concurrency
|
||||
output_dir = oslo.concurrency/locale
|
||||
input_file = oslo.concurrency/locale/oslo.concurrency.pot
|
||||
domain = oslo_concurrency
|
||||
output_dir = oslo_concurrency/locale
|
||||
input_file = oslo_concurrency/locale/oslo_concurrency.pot
|
||||
|
||||
[extract_messages]
|
||||
keywords = _ gettext ngettext l_ lazy_gettext
|
||||
mapping_file = babel.cfg
|
||||
output_file = oslo.concurrency/locale/oslo.concurrency.pot
|
||||
output_file = oslo_concurrency/locale/oslo_concurrency.pot
|
||||
|
||||
[pbr]
|
||||
warnerrors = True
|
||||
|
||||
Reference in new issue
Block a user