From 50a74ddb74fe40995c7712486386689141f6ebf9 Mon Sep 17 00:00:00 2001 From: Ngo Quoc Cuong Date: Fri, 16 Jun 2017 14:01:24 +0700 Subject: [PATCH] Remove _LI, _LW, _LE, _LC from i18n Log translation is no longer used, remove translate functions Change-Id: I2b6dbd152d4e02c638d3adfb9cda2cec1dc42f21 --- blazar/i18n.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/blazar/i18n.py b/blazar/i18n.py index 73bdd5a3..032f7915 100644 --- a/blazar/i18n.py +++ b/blazar/i18n.py @@ -25,16 +25,6 @@ _translators = oslo_i18n.TranslatorFactory(domain=DOMAIN) # 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 - def translate(value, user_locale): return oslo_i18n.translate(value, user_locale)