summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshihanzhang <ayshihanzhang@gmail.com>2017-03-21 13:52:31 +0800
committershihanzhang <ayshihanzhang@gmail.com>2017-03-21 13:53:50 +0800
commit41a6cc6e13ade599724f96b34ebb46dfc93ce0f4 (patch)
tree3b80829dffac7f86aff4094b5a80df98c1d9268e
parent8bfbc8bdf695778cb0304f7e754123b3d914946c (diff)
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. See: http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html Change-Id: I525013db086e2eed874c5cc9bb8fc409d5a527cc
Notes
Notes (review): Code-Review+1: Eduardo Gonzalez <dabarren@gmail.com> Code-Review+2: Liping Mao <limao@cisco.com> Code-Review+1: Dongcan Ye <yedongcan@yeah.net> Code-Review+1: Jaivish Kothari(janonymous) <jaivish.kothari@nectechnologies.in> Code-Review+1: Zhaokun Fu <fuzk@inspur.com> Code-Review+2: Gal Sagie <gal.sagie@gmail.com> Workflow+1: Gal Sagie <gal.sagie@gmail.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Mon, 17 Apr 2017 16:56:23 +0000 Reviewed-on: https://review.openstack.org/447835 Project: openstack/kuryr Branch: refs/heads/master
-rw-r--r--kuryr/lib/_i18n.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/kuryr/lib/_i18n.py b/kuryr/lib/_i18n.py
index 581d76c..9d4d371 100644
--- a/kuryr/lib/_i18n.py
+++ b/kuryr/lib/_i18n.py
@@ -27,16 +27,6 @@ _C = _translators.contextual_form
27# The plural translation function using the name "_P" 27# The plural translation function using the name "_P"
28_P = _translators.plural_form 28_P = _translators.plural_form
29 29
30# Translators for log levels.
31#
32# The abbreviated names are meant to reflect the usual use of a short
33# name like '_'. The "L" is for "log" and the other letter comes from
34# the level.
35_LI = _translators.log_info
36_LW = _translators.log_warning
37_LE = _translators.log_error
38_LC = _translators.log_critical
39
40 30
41def get_available_languages(): 31def get_available_languages():
42 return oslo_i18n.get_available_languages(DOMAIN) 32 return oslo_i18n.get_available_languages(DOMAIN)