Red Hat Bugzilla – Bug 892602
Ensure translations are installed correctly and picked up at runtime
Last modified: 2016-04-22 01:09:15 EDT
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:
which means that gettext looks for message catalogs in e.g.
so, we either need to install them there or use the 'localedir' argument to gettext.install() to tell gettext where they are
Babel has merged a necessary patch upstream: https://github.com/python-babel/babel/pull/335
Waiting for next babel release.