From b5dc7fbf22caf34d6ce85b2165e8bd3f908bc9e3 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 27 Apr 2010 18:20:27 +0000 Subject: - Expanded portion of i18n narrative chapter docs which discuss working with gettext files. --- repoze/bfg/i18n.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'repoze') 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) -- cgit v1.2.3