gettextutils: fix translation domain
Fixes bug #1076285 When oslo-incubator code gets copied into a project, the project's l10n infrastructure will extract translatable messages from the oslo code into the project's message catalog. Translations of those messages will not be found if we use 'openstack.common' as the translation domain. Instead, use 'oslo' as the translation domain and update.py will change this to the project name. Change-Id: I7ab46c4f860c9c307758ab63002ae410e4f975fe
This commit is contained in:
parent
66df1b2719
commit
fe8f5c64eb
|
@ -26,7 +26,7 @@ Usual usage in an openstack.common module:
|
|||
import gettext
|
||||
|
||||
|
||||
t = gettext.translation('openstack-common', 'locale', fallback=True)
|
||||
t = gettext.translation('oslo', 'locale', fallback=True)
|
||||
|
||||
|
||||
def _(msg):
|
||||
|
|
Loading…
Reference in New Issue