From 330164c3190d92a3e1df89baafba12570d03bd32 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 29 Aug 2013 05:08:53 -0400 Subject: make local_name an attribute of Request, move logic from get_localizer into Request.localizer, fix docs; closes #1099 --- CHANGES.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 6cb2932fa..93349abe6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -9,8 +9,10 @@ Features represent a "bare" ``{{a}}``. See https://github.com/Pylons/pyramid/pull/862 -- Add ``localizer`` property (reified) to the request. - See https://github.com/Pylons/pyramid/issues/508. +- Add ``localizer`` and ``locale_name`` properties (reified) to the request. + See https://github.com/Pylons/pyramid/issues/508. Note that the + ``pyramid.i18n.get_localizer`` and ``pyramid.i18n.get_locale_name`` functions + now simply look up these properties on the request. - Add ``pdistreport`` script, which prints the Python version in use, the Pyramid version in use, and the version number and location of all Python @@ -224,6 +226,12 @@ Backwards Incompatibilities as WSGI servers always unquote the slash anyway, and Pyramid never sees the quoted value. +- It is no longer possible to set a ``locale_name`` attribute of the request, + nor is it possible to set a ``localizer`` attribute of the request. These + are now "reified" properties that look up a locale name and localizer + respectively using the machinery described in the "Internationalization" + chapter of the documentation. + 1.4 (2012-12-18) ================ -- cgit v1.2.3