Add hacking rule to prevent translate log messages

Bug #1700908 reported by Ngo Quoc Cuong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Invalid
Wishlist
Ngo Quoc Cuong

Bug Description

The i18n team has decided not to translate the logs because it seems like it not very useful; operators prefer to have them in English so that they can search for those strings on the internet.

Since we have removed log translations completely, we should add hacking rule to prevent future mistakes, such as:

LOG.debug(_("..."))
LOG.info(_("..."))
LOG.error(_("..."))
LOG.exception(_("..."))
LOG.critical(_("..."))

See http://lists.openstack.org/pipermail/openstack-dev/2017-March/thread.html#113365.

Translation cleanup is being organized here. https://etherpad.openstack.org/p/ironic-translation-cleanup

Changed in ironic:
assignee: nobody → Ngo Quoc Cuong (cuongnq)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to ironic (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/478421

Dmitry Tantsur (divius)
Changed in ironic:
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic (master)

Change abandoned by Riccardo Pittau (<email address hidden>) on branch: master
Review: https://review.opendev.org/478421
Reason: obsolete, please reopen if needed

Revision history for this message
Iury Gregory Melo Ferreira (iurygregory) wrote :

Marking as invalid since the change was abandoned

Changed in ironic:
status: In Progress → Invalid
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.