diff options
| author | Chris McDonough <chrism@plope.com> | 2013-11-18 07:03:51 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-11-18 07:03:51 -0500 |
| commit | c503891d43251e7bf6111c6c1f521b43c55d917b (patch) | |
| tree | 3028630a1d1e331718e16be26a54d69c56d76b9d /docs/narr/i18n.rst | |
| parent | 345694c8eb6dff9ef7375374c5032e53b764c1de (diff) | |
| parent | fb15c26a2960d5f7bf598c147f1dd6ad6a062952 (diff) | |
| download | pyramid-c503891d43251e7bf6111c6c1f521b43c55d917b.tar.gz pyramid-c503891d43251e7bf6111c6c1f521b43c55d917b.tar.bz2 pyramid-c503891d43251e7bf6111c6c1f521b43c55d917b.zip | |
Merge branch 'master' into 1.5-branch
Diffstat (limited to 'docs/narr/i18n.rst')
| -rw-r--r-- | docs/narr/i18n.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/narr/i18n.rst b/docs/narr/i18n.rst index b62c16ff0..c9b782c08 100644 --- a/docs/narr/i18n.rst +++ b/docs/narr/i18n.rst @@ -309,7 +309,7 @@ In particular, add the ``Babel`` and ``lingua`` distributions to the application's ``setup.py`` file: .. code-block:: python - :linenos: + :linenos: setup(name="mypackage", # ... @@ -370,7 +370,7 @@ file of a ``pcreate`` -generated :app:`Pyramid` application has stanzas in it that look something like the following: .. code-block:: ini - :linenos: + :linenos: [compile_catalog] directory = myproject/locale @@ -398,7 +398,7 @@ that you'd like the domain of your translations to be ``mydomain`` instead, change the ``setup.cfg`` file stanzas to look like so: .. code-block:: ini - :linenos: + :linenos: [compile_catalog] directory = myproject/locale @@ -1041,7 +1041,7 @@ if no locale can be determined. Here's an implementation of a simple locale negotiator: .. code-block:: python - :linenos: + :linenos: def my_locale_negotiator(request): locale_name = request.params.get('my_locale') |
