Comment 9 for bug 995287

Revision history for this message
Mark McLoughlin (markmc) wrote : Re: actually use translated strings

We don't yet actually translate any of the messages in our libraries but, if/when we do that, we'll also need to support configuring the localedir they use.

e.g.

  gettext.translation('quantumclient', fallback=True, localedir=os.environ.get('QUANTUMCLIENT_LOCALEDIR'))

We need to have a env variable for each translation domain because, again, for devstack we want them picked up from directories like /opt/stack/python-quantumclient/quantumclient/locale