diff options
| author | Chris McDonough <chrism@plope.com> | 2013-08-29 05:08:53 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-08-29 05:08:53 -0400 |
| commit | 330164c3190d92a3e1df89baafba12570d03bd32 (patch) | |
| tree | 42b8647b1ea631cd53e75d157a6f1af13bcf9276 /docs/api | |
| parent | 8a7e80dc64947691fa72925d701d35c3e1d8c87a (diff) | |
| download | pyramid-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')
| -rw-r--r-- | docs/api/request.rst | 14 |
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 |
