From c3aae1ffaa2bf12dd2e6f4d8bb77b17a56fd4849 Mon Sep 17 00:00:00 2001 From: Antti Haapala Date: Thu, 14 Feb 2013 12:00:49 +0200 Subject: Added a clarifying comment on i18n _LOCALE_ value --- pyramid/i18n.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyramid/i18n.py b/pyramid/i18n.py index cdedbc877..6ffd93e8f 100644 --- a/pyramid/i18n.py +++ b/pyramid/i18n.py @@ -107,7 +107,8 @@ def default_locale_negotiator(request): - First, the negotiator looks for the ``_LOCALE_`` attribute of the request object (possibly set by a view or a listener for an - :term:`event`). + :term:`event`). If the attribute exists and it is not ``None``, + its value will be used. - Then it looks for the ``request.params['_LOCALE_']`` value. -- cgit v1.2.3