summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-04-25 01:51:02 +0000
committerChris McDonough <chrism@agendaless.com>2010-04-25 01:51:02 +0000
commit533849b13610564129e6d12ef3d005dd2a7491fe (patch)
treeee74e925655905404d7c8366dd169d98a138ae5e /docs
parent5c5f7ada7f6c3baf2bf20606db60273b1ef19d87 (diff)
downloadpyramid-533849b13610564129e6d12ef3d005dd2a7491fe.tar.gz
pyramid-533849b13610564129e6d12ef3d005dd2a7491fe.tar.bz2
pyramid-533849b13610564129e6d12ef3d005dd2a7491fe.zip
Example.
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/i18n.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/narr/i18n.rst b/docs/narr/i18n.rst
index 0f19e7f5b..1381f4fed 100644
--- a/docs/narr/i18n.rst
+++ b/docs/narr/i18n.rst
@@ -494,6 +494,9 @@ avoid this caching, you can use the
You can also obtain the locale name related to a request using the
``locale_name`` attribute of a :term:`localizer`.
+.. code-block:: python
+ :linenos:
+
from repoze.bfg.i18n import get_localizer
def aview(request):