diff options
| author | Antti Haapala <antti@haapala.name> | 2013-02-14 12:00:49 +0200 |
|---|---|---|
| committer | Antti Haapala <antti@haapala.name> | 2013-11-15 22:57:35 +0200 |
| commit | c3aae1ffaa2bf12dd2e6f4d8bb77b17a56fd4849 (patch) | |
| tree | 06aa06e481fa4700a7f37243735db06fd685d1ad | |
| parent | 6eec4385e41ccb21317e6d2807678f93987c5036 (diff) | |
| download | pyramid-c3aae1ffaa2bf12dd2e6f4d8bb77b17a56fd4849.tar.gz pyramid-c3aae1ffaa2bf12dd2e6f4d8bb77b17a56fd4849.tar.bz2 pyramid-c3aae1ffaa2bf12dd2e6f4d8bb77b17a56fd4849.zip | |
Added a clarifying comment on i18n _LOCALE_ value
| -rw-r--r-- | pyramid/i18n.py | 3 |
1 files changed, 2 insertions, 1 deletions
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. |
