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.log/locale/oslo.log.pot to oslo_log/locale/oslo_log.pot. For this we need to update setup.cfg. Update also domain name in _i18n.py. Change-Id: Idde80095739bbb00ce982748c312161dd861b0aa
This commit is contained in:
parent
dbf33a8bb0
commit
64dc9f8456
@ -21,7 +21,7 @@ See http://docs.openstack.org/developer/oslo.i18n/usage.html .
|
||||
import oslo_i18n
|
||||
|
||||
|
||||
_translators = oslo_i18n.TranslatorFactory(domain='oslo.log')
|
||||
_translators = oslo_i18n.TranslatorFactory(domain='oslo_log')
|
||||
|
||||
# The primary translation function using the well-known name "_"
|
||||
_ = _translators.primary
|
||||
|
12
setup.cfg
12
setup.cfg
@ -42,18 +42,18 @@ all_files = 1
|
||||
upload-dir = doc/build/html
|
||||
|
||||
[compile_catalog]
|
||||
directory = oslo.log/locale
|
||||
domain = oslo.log
|
||||
directory = oslo_log/locale
|
||||
domain = oslo_log
|
||||
|
||||
[update_catalog]
|
||||
domain = oslo.log
|
||||
output_dir = oslo.log/locale
|
||||
input_file = oslo.log/locale/oslo.log.pot
|
||||
domain = oslo_log
|
||||
output_dir = oslo_log/locale
|
||||
input_file = oslo_log/locale/oslo_log.pot
|
||||
|
||||
[extract_messages]
|
||||
keywords = _ gettext ngettext l_ lazy_gettext
|
||||
mapping_file = babel.cfg
|
||||
output_file = oslo.log/locale/oslo.log.pot
|
||||
output_file = oslo_log/locale/oslo_log.pot
|
||||
|
||||
[wheel]
|
||||
universal = 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user