yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #74820
[Bug 1793421] Re: Hacking check should check that log messages are not translated
** Summary changed:
- Do not translate log messages
+ Hacking check should check that log messages are not translated
** Description changed:
- We should use "msg = _('My message.')" instead "msg =
- _(variable_containing_msg)" when logging message.
-
- For example: do not do this:
- # WRONG
- msg = _(variable_containing_msg)
- w_msg = _LW(variable_warning_msg)
-
- Instead, use this style:
-
- # RIGHT
- msg = _('My message.')
- w_msg = _LW('My warning message')
-
- refer to:
- https://docs.openstack.org/oslo.i18n/latest/user/guidelines.html#using-a-marker-function
+ Related to https://bugs.launchpad.net/keystone/+bug/1777671 we should
+ update our hacking check for log translations.
** Changed in: keystone
Status: Invalid => Confirmed
** Changed in: keystone
Importance: Undecided => Low
** Changed in: keystone
Assignee: fupingxie (fpxie) => (unassigned)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1793421
Title:
Hacking check should check that log messages are not translated
Status in OpenStack Identity (keystone):
Confirmed
Bug description:
Related to https://bugs.launchpad.net/keystone/+bug/1777671 we should
update our hacking check for log translations.
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1793421/+subscriptions
References