[OpenStack-I18n] [Bug 1536226] Re: Not all .po files compiled

OpenStack Infra 1536226 at bugs.launchpad.net
Tue Jun 7 10:36:01 UTC 2016


Reviewed:  https://review.openstack.org/319260
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=16d0cdba47a0ad976f1500cd91c420860c3ad149
Submitter: Jenkins
Branch:    master

commit 16d0cdba47a0ad976f1500cd91c420860c3ad149
Author: Sven Anderson <sven at redhat.com>
Date:   Fri May 20 15:54:27 2016 +0200

    Let setup.py compile_catalog process all language files
    
    Two years ago the translation files have been split into several
    files, separating the log messages of different log levels from each
    other, like X.pot, X-log-warning.pot, X-log-info.pot, and so on.
    However, the setup.py command `compile_catalogs`, that comes from the
    babel package and compiles the corresponding .po files into .mo
    files, only supported one file per python package.  This means that
    during packaging `compile_catalogs` never compiled the X-log-*.po
    files, so the corresponding translations were always missing.
    
    Since babel 2.3 the domain can be set to a space separated list of
    domains.  This change adds the the additional log level files to the
    domain list.
    
    The obsolete check that .po and .pot files are valid is removed from
    tox.ini.
    
    Change-Id: I1f0bfb181e2b84ac6dd0ce61881cd2cc4400bdcb
    Closes-Bug: #1536226


** Changed in: keystone
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of OpenStack
I18n Core Team, which is subscribed to openstack i18n.
https://bugs.launchpad.net/bugs/1536226

Title:
  Not all .po files compiled

Status in Cinder:
  New
Status in Glance:
  In Progress
Status in heat:
  New
Status in OpenStack Identity (keystone):
  Fix Released
Status in neutron:
  New
Status in OpenStack Compute (nova):
  Fix Released
Status in openstack i18n:
  New

Bug description:
  python setup.py compile_catalog only compiles one <domain>.po file per
  language to a <domain>.mo file. By default <domain> is the project
  name, that is nova.po. This means all other nova-log-*.po files are
  never compiled. The only way to get setup.py compile the other files
  is calling it several times with different domains set, like for
  instance `python setup.py --domain nova-log-info` and so on. Since
  this is not usual, it can be assumed that the usual packages don't
  contain all the .mo files.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/1536226/+subscriptions



More information about the OpenStack-I18n mailing list