From f75126c69af42a7b714890f66df4cd1f4857b68b Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Mon, 25 Mar 2013 07:47:21 +0000 Subject: 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 --- openstack/common/gettextutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openstack') diff --git a/openstack/common/gettextutils.py b/openstack/common/gettextutils.py index 235350c..1e66538 100644 --- a/openstack/common/gettextutils.py +++ b/openstack/common/gettextutils.py @@ -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): -- cgit