Bug 892602 - Ensure translations are installed correctly and picked up at runtime
Summary: Ensure translations are installed correctly and picked up at runtime
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 2.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 6.0 (Juno)
Assignee: Sven Anderson
QA Contact: Shai Revivo
URL:
Whiteboard:
Depends On: 1086247
Blocks: 978541 1295785
TreeView+ depends on / blocked
 
Reported: 2013-01-07 11:30 UTC by Mark McLoughlin
Modified: 2019-11-18 12:50 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1086247 (view as bug list)
Environment:
Last Closed: 2017-05-16 15:52:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mark McLoughlin 2013-01-07 11:30:08 UTC
This probably applies to all services, but let's start with Nova ...

Firstly, we don't include compiled message catalogs in our packages (i.e. .mo files) - we should be able to do e.g. 'python setup.py compile_catalog' to help with this. To understand what's going on here, read docs about babel and look at setup.cfg.

Secondly, at runtime, we do:

  gettext.install('nova', unicode=1)

which means that gettext looks for message catalogs in e.g.

  /usr/share/locale/$LANG/LC_MESSAGES/nova.mo

so, we either need to install them there or use the 'localedir' argument to gettext.install() to tell gettext where they are

Comment 10 Sven Anderson 2016-02-02 12:02:59 UTC
Babel has merged a necessary patch upstream: https://github.com/python-babel/babel/pull/335
Waiting for next babel release.


Note You need to log in before you can comment on or make changes to this bug.