i18n directory and message file is absence

Bug #1099603 reported by Edward
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-neutronclient
Fix Released
Medium
Akihiro Motoki

Bug Description

in __init__.py, gettext installed quantumclient domain. But there is no i18n locale directory and translated messages in place.
That means NullTranslation of gettext is actually used. The _() function call can't translate any message.

Another concern about this issue is even if we fix it by adding those files, be careful of causing another problem that has been reported as bug https://bugs.launchpad.net/nova/+bug/974810.

=================__init__.py===========================
import gettext

# gettext must be initialized before any quantumclient imports
gettext.install('quantumclient', unicode=1)

====================================================

Tags: i18n
Revision history for this message
Akihiro Motoki (amotoki) wrote :

novaclient have setup transalation infrastructure.
We can set up the translation infrastructure similarly.

Changed in python-neutronclient:
status: New → Confirmed
importance: Undecided → Wishlist
importance: Wishlist → Medium
assignee: nobody → Akihiro Motoki (amotoki)
Akihiro Motoki (amotoki)
tags: added: i18n
Changed in python-neutronclient:
status: Confirmed → In Progress
Revision history for this message
Akihiro Motoki (amotoki) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-neutronclient (master)

Reviewed: https://review.openstack.org/253248
Committed: https://git.openstack.org/cgit/openstack/python-neutronclient/commit/?id=aa2dad3d8335b3055c04be38f179cec7f2923904
Submitter: Jenkins
Branch: master

commit aa2dad3d8335b3055c04be38f179cec7f2923904
Author: Akihiro Motoki <email address hidden>
Date: Fri Dec 4 01:48:01 2015 +0900

    Setup for translation

    client translation effort starts and several client projects
    including novaclient already setup translations.

    To start translation, we need to initially import the translation
    file - and place it at the proper place so that the usual CI
    scripts can handle it. The proper place is for all python
    projects $PROJECT/locale/$PROJECT.pot - see setup.cfg.

    Further imports will be done by the OpenStack Proposal bot.

    Closes-Bug: #1099603
    Change-Id: I5b13a9428e6272e83a45b82c06f524be772d3d7a

Changed in python-neutronclient:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-neutronclient 4.1.0

This issue was fixed in the openstack/python-neutronclient 4.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.