Fix i18n set up
Really use MODULENAME as documented in http://docs.openstack.org/infra/manual/creators.html#python-projects. Otherwise the infra scripts will not work properly. Change-Id: If21a76d2aa64312e59127bfd0790ef3301737d6b
This commit is contained in:
parent
554a9edced
commit
8d0898e57e
|
@ -17,7 +17,7 @@ See http://docs.openstack.org/developer/oslo.i18n/usage.html
|
|||
|
||||
import oslo_i18n
|
||||
|
||||
_translators = oslo_i18n.TranslatorFactory(domain='murano-pkg-checker')
|
||||
_translators = oslo_i18n.TranslatorFactory(domain='muranopkgcheck')
|
||||
|
||||
# The primary translation function using the well-known name "_"
|
||||
_ = _translators.primary
|
||||
|
|
|
@ -38,17 +38,17 @@ upload-dir = doc/build/html
|
|||
|
||||
[compile_catalog]
|
||||
directory = muranopkgcheck/locale
|
||||
domain = murano-pkg-check
|
||||
domain = muranopkgcheck
|
||||
|
||||
[update_catalog]
|
||||
domain = murano-pkg-check
|
||||
output_dir = muranopkgcheck/locale
|
||||
input_file = muranopkgcheck/locale/murano-pkg-check.pot
|
||||
input_file = muranopkgcheck/locale/muranopkgcheck.pot
|
||||
|
||||
[extract_messages]
|
||||
keywords = _ gettext ngettext l_ lazy_gettext
|
||||
mapping_file = babel.cfg
|
||||
output_file = muranopkgcheck/locale/murano-pkg-check.pot
|
||||
output_file = muranopkgcheck/locale/muranopkgcheck.pot
|
||||
|
||||
[entry_points]
|
||||
console_scripts =
|
||||
|
|
Loading…
Reference in New Issue