load gettext in __init__ to fix '_ is not defined'
gettext.install needs to be run on every potential entrypoint; this resolves bug #885529 (the python standard library includes a noop gettext library for this purpose). This is also how nova does it. Change-Id: I4ceaa4782461ebf6d27836336f288d79ba15cf2d
This commit is contained in:
parent
5e6fb33b22
commit
8f122d954b
1
Authors
1
Authors
@ -22,6 +22,7 @@ Ken Pepple <ken.pepple@gmail.com>
|
||||
Kevin L. Mitchell <kevin.mitchell@rackspace.com>
|
||||
Mark McLoughlin <markmc@redhat.com>
|
||||
Matt Dietz <matt.dietz@rackspace.com>
|
||||
Mike Lundy <mike@pistoncloud.com>
|
||||
Monty Taylor <mordred@inaugust.com>
|
||||
Rick Clark <rick@openstack.org>
|
||||
Rick Harris <rconradharris@gmail.com>
|
||||
|
@ -14,3 +14,7 @@
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import gettext
|
||||
|
||||
gettext.install('glance', unicode=1)
|
||||
|
Loading…
Reference in New Issue
Block a user