Remove log translations in keystone

Log messages are no longer being translated. This removes all use of
the _LC, _LE, _LI, and _LW translation markers to simplify logging
and to avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Co-Authored-By: David Stanek <dstanek@dstanek.com>

Change-Id: I45862f944107c1b4b73aa4d2fd95940f0b67eb1b
This commit is contained in:
wingwj
2017-03-21 14:19:23 +08:00
committed by David Stanek
parent 7de0a759e2
commit ca35d003dc
41 changed files with 334 additions and 565 deletions

View File

@@ -19,7 +19,7 @@ from oslo_log import log
import six
from keystone import exception
from keystone.i18n import _, _LE
from keystone.i18n import _
CONF = cfg.CONF
@@ -40,8 +40,8 @@ def validate_password(password):
raise exception.PasswordRequirementsValidationError(
detail=pattern_desc)
except re.error:
msg = _LE("Unable to validate password due to invalid regular "
"expression - password_regex: ")
msg = ("Unable to validate password due to invalid regular "
"expression - password_regex: ")
LOG.error(msg, pattern)
detail = _("Unable to validate password due to invalid "
"configuration")