exception message should use gettextutils

Bug #1285530 reported by Yongli He
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Won't Fix
Undecided
Yongli He
oslo-incubator
Won't Fix
Low
Unassigned
oslo.messaging
Expired
Undecided
Unassigned
python-neutronclient
Won't Fix
Undecided
Unassigned
tuskar
Won't Fix
Low
Yongli He
tuskar-ui
Won't Fix
Undecided
Yongli He

Bug Description

What To Translate

At present the convention is to translate all user-facing strings. This means API messages, CLI responses, documentation, help text, etc.

There has been a lack of consensus about the translation of log messages; the current ruling is that while it is not against policy to mark log messages for translation if your project feels strongly about it, translating log messages is not actively encouraged.

Exception text should not be marked for translation, becuase if an exception occurs there is no guarantee that the translation machinery will be functional.

Tags: oslo
Yongli He (yongli-he)
Changed in nova:
status: New → In Progress
assignee: nobody → Yongli He (yongli-he)
Yongli He (yongli-he)
description: updated
Yongli He (yongli-he)
Changed in neutron:
assignee: nobody → Yongli He (yongli-he)
Changed in cinder:
assignee: nobody → Yongli He (yongli-he)
Changed in tuskar:
assignee: nobody → Yongli He (yongli-he)
Changed in nova:
status: In Progress → New
Yongli He (yongli-he)
Changed in tuskar-ui:
assignee: nobody → Yongli He (yongli-he)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tuskar-ui (master)

Fix proposed to branch: master
Review: https://review.openstack.org/76797

Changed in tuskar-ui:
status: New → In Progress
Changed in tuskar:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tuskar (master)

Fix proposed to branch: master
Review: https://review.openstack.org/76799

Yongli He (yongli-he)
Changed in ironic:
assignee: nobody → Yongli He (yongli-he)
Changed in swift:
assignee: nobody → Yongli He (yongli-he)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to swift (master)

Fix proposed to branch: master
Review: https://review.openstack.org/76801

Changed in swift:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-neutronclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/76802

Changed in python-neutronclient:
assignee: nobody → Yongli He (yongli-he)
status: New → In Progress
Yongli He (yongli-he)
Changed in python-ironicclient:
assignee: nobody → Yongli He (yongli-he)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-ironicclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/76803

Changed in python-ironicclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.messaging (master)

Fix proposed to branch: master
Review: https://review.openstack.org/76806

Changed in oslo.messaging:
assignee: nobody → Yongli He (yongli-he)
status: New → In Progress
Revision history for this message
Jiří Stránský (jistr) wrote :

Is there some OpenStack-wide consensus that exception messages should not be translated? Maybe openstack-dev thread or something?

Changed in tuskar:
importance: Undecided → Low
Tracy Jones (tjones-i)
tags: added: oslo
Revision history for this message
Ben Nemec (bnemec) wrote :

There is a mailing list discussion about this, but it didn't get a lot of response. I do think it's something we need to address though.

http://lists.openstack.org/pipermail/openstack-dev/2014-March/028939.html

Changed in oslo:
importance: Undecided → Low
status: New → Triaged
aeva black (tenbrae)
Changed in ironic:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Mark McLoughlin (markmc) wrote :

I'm extremely sceptical about translating the error messages from libraries

Also, it's not sufficient to just use gettext() - you need to actually hook up the babel infrastructure to extract messages into .pot files, upload to transifex, sync the .po files back, install the .mo files, etc.

Changed in oslo.messaging:
assignee: Yongli He (yongli-he) → nobody
status: In Progress → Incomplete
Changed in neutron:
status: New → Incomplete
Changed in cinder:
status: New → Incomplete
Sean Dague (sdague)
no longer affects: nova
Dmitry Tantsur (divius)
no longer affects: ironic
Dmitry Tantsur (divius)
no longer affects: python-ironicclient
Revision history for this message
Romil Gupta (romilg) wrote :

Hi Yongli He,

Shall I take the translation changes for Neutron project ?

Romil Gupta (romilg)
Changed in neutron:
status: Incomplete → Fix Released
assignee: Yongli He (yongli-he) → Romil Gupta (romilg)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tuskar (master)

Change abandoned by Yongli He (<email address hidden>) on branch: master
Review: https://review.openstack.org/76799
Reason: not get agreement. hold it.

Changed in oslo-incubator:
status: Triaged → Won't Fix
no longer affects: cinder
Akihiro Motoki (amotoki)
Changed in python-neutronclient:
assignee: Yongli He (yongli-he) → nobody
status: In Progress → Incomplete
Dougal Matthews (d0ugal)
Changed in tuskar:
status: In Progress → Won't Fix
Changed in tuskar-ui:
status: In Progress → Won't Fix
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

This bug is > 180 days without activity. We are unsetting assignee and milestone and setting status to Incomplete in order to allow its expiry in 60 days.

If the bug is still valid, then update the bug status.

no longer affects: neutron
Revision history for this message
Akihiro Motoki (amotoki) wrote :

neutron CLI is now deprecated and actually there is no translation now. we have no plan to fix this.

Changed in python-neutronclient:
status: Incomplete → Won't Fix
Revision history for this message
Thiago da Silva (thiagodasilva) wrote :

swift patch as been abandoned, closing bug for now.

Changed in swift:
status: In Progress → Won't Fix
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for oslo.messaging because there has been no activity for 60 days.]

Changed in oslo.messaging:
status: Incomplete → Expired
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.