diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-04-25 01:51:02 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-04-25 01:51:02 +0000 |
| commit | 533849b13610564129e6d12ef3d005dd2a7491fe (patch) | |
| tree | ee74e925655905404d7c8366dd169d98a138ae5e /docs | |
| parent | 5c5f7ada7f6c3baf2bf20606db60273b1ef19d87 (diff) | |
| download | pyramid-533849b13610564129e6d12ef3d005dd2a7491fe.tar.gz pyramid-533849b13610564129e6d12ef3d005dd2a7491fe.tar.bz2 pyramid-533849b13610564129e6d12ef3d005dd2a7491fe.zip | |
Example.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/i18n.rst | 3 |
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): |
