[Openstack-i18n] [openstack-dev] [nova][i18n] Is there any point in using _() inpython-novaclient?
Matt Riedemann
mriedem at linux.vnet.ibm.com
Tue Sep 8 15:48:04 UTC 2015
On 9/6/2015 12:18 AM, Steve Martinelli wrote:
> Isn't this just a matter of setting up novaclient for translation? IIRC
> using _() is harmless if there's no translation bits set up for the project.
>
> Thanks,
>
> Steve Martinelli
> OpenStack Keystone Core
>
> Inactive hide details for Matt Riedemann ---2015/09/04 01:50:54 PM---I
> noticed this today: https://review.openstack.org/#/c/219Matt Riedemann
> ---2015/09/04 01:50:54 PM---I noticed this today:
> https://review.openstack.org/#/c/219768/
>
> From: Matt Riedemann <mriedem at linux.vnet.ibm.com>
> To: "OpenStack Development Mailing List (not for usage questions)"
> <openstack-dev at lists.openstack.org>, openstack-i18n at lists.openstack.org
> Date: 2015/09/04 01:50 PM
> Subject: [openstack-dev] [nova][i18n] Is there any point in using _() in
> python-novaclient?
>
> ------------------------------------------------------------------------
>
>
>
> I noticed this today:
>
> https://review.openstack.org/#/c/219768/
>
> And it got me thinking about something I've wondered before - why do we
> even use _() in python-novaclient? It doesn't have any .po files for
> babel message translation, it has no babel config, there is nothing in
> setup.cfg about extracting messages and compiling them into .mo's, there
> is nothing on Transifex for python-novaclient, etc.
>
> Is there a way to change your locale and get translated output in nova
> CLIs? I didn't find anything in docs from a quick google search.
>
> Comparing to python-openstackclient, that does have a babel config and
> some locale po files in tree, at least for de and zh_TW.
>
> So if this doesn't work in python-novaclient, do we need any of the i18n
> code in there? It doesn't really hurt, but it seems pointless to push
> changes for it or try to keep user-facing messages in mind in the code.
>
> --
>
> Thanks,
>
> Matt Riedemann
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
>
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
Yeah, doffm is working on enabling i18n for python-novaclient via bug:
https://bugs.launchpad.net/python-novaclient/+bug/1492444
--
Thanks,
Matt Riedemann
More information about the Openstack-i18n
mailing list