From d5d23cb6ce2536cc978b5b4abbbb138ec8580b5c Mon Sep 17 00:00:00 2001 From: st4lk Date: Tue, 24 Feb 2015 13:48:10 +0300 Subject: [PATCH] don't show pgettext en language warning --- tornado/locale.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tornado/locale.py b/tornado/locale.py index 1a87ed1eb..57faa295a 100644 --- a/tornado/locale.py +++ b/tornado/locale.py @@ -427,7 +427,8 @@ class CSVLocale(Locale): return message_dict.get(message, message) def pgettext(self, context, message, plural_message=None, count=None): - gen_log.warning('pgettext is not supported by CSVLocale') + if self.translations: + gen_log.warning('pgettext is not supported by CSVLocale') return self.translate(message, plural_message, count) -- 2.47.2