summaryrefslogtreecommitdiff
path: root/docs/api/request.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2013-08-29 05:08:53 -0400
committerChris McDonough <chrism@plope.com>2013-08-29 05:08:53 -0400
commit330164c3190d92a3e1df89baafba12570d03bd32 (patch)
tree42b8647b1ea631cd53e75d157a6f1af13bcf9276 /docs/api/request.rst
parent8a7e80dc64947691fa72925d701d35c3e1d8c87a (diff)
downloadpyramid-330164c3190d92a3e1df89baafba12570d03bd32.tar.gz
pyramid-330164c3190d92a3e1df89baafba12570d03bd32.tar.bz2
pyramid-330164c3190d92a3e1df89baafba12570d03bd32.zip
make local_name an attribute of Request, move logic from get_localizer into Request.localizer, fix docs; closes #1099
Diffstat (limited to 'docs/api/request.rst')
-rw-r--r--docs/api/request.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/api/request.rst b/docs/api/request.rst
index a90cb1ac0..02290eaf3 100644
--- a/docs/api/request.rst
+++ b/docs/api/request.rst
@@ -311,6 +311,20 @@
.. versionadded:: 1.3
+ .. attribute:: localizer
+
+ A :term:`localizer` which will use the current locale name to
+ translate values.
+
+ .. versionadded:: 1.5
+
+ .. attribute:: locale_name
+
+ The locale name of the current request as computed by the
+ :term:`locale negotiator`.
+
+ .. versionadded:: 1.5
+
.. note::
For information about the API of a :term:`multidict` structure (such as