summaryrefslogtreecommitdiff
path: root/docs/narr/i18n.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2011-07-30 01:50:24 -0600
committerMichael Merickel <michael@merickel.org>2011-07-30 01:50:24 -0600
commit875ded31e7fdd0c85d1c91458248581b9dd729d7 (patch)
tree2063e301734ef5a79e308f67a126df48546acf07 /docs/narr/i18n.rst
parente1b25974a4dcc9eb9ceab70ec2276043de775f82 (diff)
downloadpyramid-875ded31e7fdd0c85d1c91458248581b9dd729d7.tar.gz
pyramid-875ded31e7fdd0c85d1c91458248581b9dd729d7.tar.bz2
pyramid-875ded31e7fdd0c85d1c91458248581b9dd729d7.zip
Updated all of the docs to reflect the new pyramid.* settings prefix.
Diffstat (limited to 'docs/narr/i18n.rst')
-rw-r--r--docs/narr/i18n.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/narr/i18n.rst b/docs/narr/i18n.rst
index 924fb047a..ba5490b31 100644
--- a/docs/narr/i18n.rst
+++ b/docs/narr/i18n.rst
@@ -623,7 +623,7 @@ You can obtain the locale name related to a request by using the
This returns the locale name negotiated by the currently active
: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
+name by changing the ``pyramid.default_locale_name`` setting; see
:ref:`default_locale_name_setting`.
Once :func:`~pyramid.i18n.get_locale_name` is first run, the locale
@@ -768,7 +768,7 @@ Internationalization" which explains how to add idiomatic I18N support to
Localization-Related Deployment Settings
----------------------------------------
-A :app:`Pyramid` application will have a ``default_locale_name``
+A :app:`Pyramid` application will have a ``pyramid.default_locale_name``
setting. This value represents the :term:`default locale name` used
when the :term:`locale negotiator` returns ``None``. Pass it to the
:mod:`~pyramid.config.Configurator` constructor at startup
@@ -778,9 +778,9 @@ time:
:linenos:
from pyramid.config import Configurator
- config = Configurator(settings={'default_locale_name':'de'})
+ config = Configurator(settings={'pyramid.default_locale_name':'de'})
-You may alternately supply a ``default_locale_name`` via an
+You may alternately supply a ``pyramid.default_locale_name`` via an
application's Paster ``.ini`` file:
.. code-block:: ini
@@ -788,10 +788,10 @@ application's Paster ``.ini`` file:
[app:main]
use = egg:MyProject#app
- reload_templates = true
- debug_authorization = false
- debug_notfound = false
- default_locale_name = de
+ pyramid.reload_templates = true
+ pyramid.debug_authorization = false
+ pyramid.debug_notfound = false
+ pyramid.default_locale_name = de
If this value is not supplied via the Configurator constructor or via
a Paste config file, it will default to ``en``.
@@ -804,7 +804,7 @@ If this setting is supplied within the :app:`Pyramid` application
from pyramid.threadlocal import get_current_registry
settings = get_current_registry().settings
- default_locale_name = settings['default_locale_name']
+ default_locale_name = settings['pyramid.default_locale_name']
.. index::
single: detecting langauges