summaryrefslogtreecommitdiff
path: root/repoze
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-04-27 18:20:27 +0000
committerChris McDonough <chrism@agendaless.com>2010-04-27 18:20:27 +0000
commitb5dc7fbf22caf34d6ce85b2165e8bd3f908bc9e3 (patch)
tree06724076f2ed60271d9575f84f8933bcd044a123 /repoze
parent12cb6df7728c8321905a08b0864b3ff0386c62cf (diff)
downloadpyramid-b5dc7fbf22caf34d6ce85b2165e8bd3f908bc9e3.tar.gz
pyramid-b5dc7fbf22caf34d6ce85b2165e8bd3f908bc9e3.tar.bz2
pyramid-b5dc7fbf22caf34d6ce85b2165e8bd3f908bc9e3.zip
- Expanded portion of i18n narrative chapter docs which discuss
working with gettext files.
Diffstat (limited to 'repoze')
-rw-r--r--repoze/bfg/i18n.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/repoze/bfg/i18n.py b/repoze/bfg/i18n.py
index 640ee030b..c3ba7efad 100644
--- a/repoze/bfg/i18n.py
+++ b/repoze/bfg/i18n.py
@@ -100,7 +100,8 @@ def default_locale_negotiator(request):
or ``None``.
- First, the negotiator looks for the ``_LOCALE_`` attribute of
- the request object (possibly set by an :term:`event listener`).
+ the request object (possibly set by a view or a listener for an
+ :term:`event`).
- Then it looks for the ``request.params['_LOCALE_']`` value.
@@ -109,7 +110,7 @@ def default_locale_negotiator(request):
- Finally, the negotiator returns ``None`` if the locale could not
be determined via any of the previous checks (when a locale
negotiator returns ``None``, it signifies that the
- :term:`default locale` should be used.)
+ :term:`default locale name` should be used.)
"""
name = '_LOCALE_'
locale_name = getattr(request, name, None)