From 533849b13610564129e6d12ef3d005dd2a7491fe Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 25 Apr 2010 01:51:02 +0000 Subject: Example. --- docs/narr/i18n.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/narr/i18n.rst') 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): -- cgit v1.2.3