From 80004296373ecfd14f81dd2a64c3efaf1e104467 Mon Sep 17 00:00:00 2001 From: kavithahr Date: Mon, 10 Jul 2017 12:12:41 +0530 Subject: [PATCH] Remove log translations Log messages are no longer being translated. This removes all use of the _LE, _LI, and _LW translation markers to simplify logging and to avoid confusion with new contributions Change-Id: I848087a85fdc056c0b6ed6f9d597400c257afc8f --- troveclient/_i18n.py | 10 ---------- troveclient/i18n.py | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/troveclient/_i18n.py b/troveclient/_i18n.py index c8abc944..3f323fbb 100644 --- a/troveclient/_i18n.py +++ b/troveclient/_i18n.py @@ -35,16 +35,6 @@ _C = _translators.contextual_form # requires oslo.i18n >=2.1.0 _P = _translators.plural_form -# Translators for log levels. -# -# The abbreviated names are meant to reflect the usual use of a short -# name like '_'. The "L" is for "log" and the other letter comes from -# the level. -_LI = _translators.log_info -_LW = _translators.log_warning -_LE = _translators.log_error -_LC = _translators.log_critical - def get_available_languages(): return oslo_i18n.get_available_languages(DOMAIN) diff --git a/troveclient/i18n.py b/troveclient/i18n.py index 30c96a12..8d351b71 100644 --- a/troveclient/i18n.py +++ b/troveclient/i18n.py @@ -29,13 +29,3 @@ _translators = oslo_i18n.TranslatorFactory(domain='python-troveclient') # The primary translation function using the well-known name "_" _ = _translators.primary - -# Translators for log levels. -# -# The abbreviated names are meant to reflect the usual use of a short -# name like '_'. The "L" is for "log" and the other letter comes from -# the level. -_LI = _translators.log_info -_LW = _translators.log_warning -_LE = _translators.log_error -_LC = _translators.log_critical