diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2013-03-25 07:47:21 +0000 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2013-03-25 07:47:21 +0000 |
| commit | f75126c69af42a7b714890f66df4cd1f4857b68b (patch) | |
| tree | afa0a467fed7622b4e0573adea5837b47d57f22f /openstack | |
| parent | 329b8dd639e4f65369547f96f0ad841bb2fdf113 (diff) | |
| download | oslo-f75126c69af42a7b714890f66df4cd1f4857b68b.tar.gz oslo-f75126c69af42a7b714890f66df4cd1f4857b68b.tar.xz oslo-f75126c69af42a7b714890f66df4cd1f4857b68b.zip | |
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
Diffstat (limited to 'openstack')
| -rw-r--r-- | openstack/common/gettextutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
