summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-04-28 08:40:19 +0000
committerChris McDonough <chrism@agendaless.com>2010-04-28 08:40:19 +0000
commit0284cbdc978e0fd63474b9d97307677edefe8915 (patch)
tree69537f45b49c4eaba9be5187fc2ef03ec56cd587 /docs
parent75e6a6b62f6378522a9cc4151f70cd747203632d (diff)
downloadpyramid-0284cbdc978e0fd63474b9d97307677edefe8915.tar.gz
pyramid-0284cbdc978e0fd63474b9d97307677edefe8915.tar.bz2
pyramid-0284cbdc978e0fd63474b9d97307677edefe8915.zip
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/i18n.rst22
1 files changed, 11 insertions, 11 deletions
diff --git a/docs/narr/i18n.rst b/docs/narr/i18n.rst
index 1a72ca95b..0e1d99b9e 100644
--- a/docs/narr/i18n.rst
+++ b/docs/narr/i18n.rst
@@ -602,17 +602,17 @@ You can obtain the locale name related to a request by using the
locale_name = get_locale_name(request)
This returns the locale name negotiated by the currently active
-:term:`locale negotiator` or the :term:`default locale name` (usually
-``en``) if the locale negotiator returns ``None``. You can change the
-default locale name by changing the ``default_locale_name`` setting;
-see :ref:`default_locale_name_setting`.
-
-Once :func:`repoze.bfg.i18n.get_locale_name` has run once, the local
-name is stored on the request object it is passed. Subsequent calls
-to :func:`repoze.bfg.i18n.get_locale_name` will return the stored
-locale name without invoking the :term:`locale negotiator`. To
-avoid this caching, you can use the
-:func:`repoze.bfg.i18n.negotiate_locale_name` function:
+:term:`locale negotiator` or the :term:`default locale name` if the
+locale negotiator returns ``None``. You can change the default locale
+name by changing the ``default_locale_name`` setting; see
+:ref:`default_locale_name_setting`.
+
+Once :func:`repoze.bfg.i18n.get_locale_name` has run once, the locale
+name is stored on the request object. Subsequent calls to
+:func:`repoze.bfg.i18n.get_locale_name` will return the stored locale
+name without invoking the :term:`locale negotiator`. To avoid this
+caching, you can use the :func:`repoze.bfg.i18n.negotiate_locale_name`
+function:
.. code-block:: python
:linenos: