1
0
mirror of https://github.com/django/django.git synced 2024-12-28 03:55:50 +00:00
django/tests/regressiontests/views/tests
Ramiro Morales f6e38f3800 Fixed #5494, #10765, #14924 -- Modified the order in which translations are read when composing the final translation to offer at runtime.
This is slightly backward-incompatible (could result in changed final translations for literals appearing multiple times in different .po files but with different translations).

Translations are now read in the following order (from lower to higher priority):

For the 'django' gettext domain:

 * Django translations
 * INSTALLED_APPS apps translations (with the ones listed first having higher priority)
 * settings/project path translations (deprecated, see below)
 * LOCALE_PATHS translations (with the ones listed first having higher priority)

For the 'djangojs' gettext domain:

 * Python modules whose names are passed to the javascript_catalog view
 * LOCALE_PATHS translations (with the ones listed first having higher priority, previously they weren't included)

Also, automatic loading of translations from the 'locale' subdir of the settings/project path is now deprecated.

Thanks to vanschelven, vbmendes and an anonymous user for reporting issues, to vanschelven, Claude Paroz and an anonymous contributor for their initial work on fixes and to Jannis  Leidel and Claude for review and discussion.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15441 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-07 18:48:40 +00:00
..
generic Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. 2010-12-04 07:28:12 +00:00
__init__.py Fixed #12816 -- Added a render() shortcut. 2010-12-21 17:18:41 +00:00
debug.py Modified the test case from r15383 to avoid an output inconsistency with KeyError. 2011-02-01 15:13:56 +00:00
defaults.py Fixed #14565 - No csrf_token on 404 page. 2010-10-28 11:47:15 +00:00
i18n.py Fixed #5494, #10765, #14924 -- Modified the order in which translations are read when composing the final translation to offer at runtime. 2011-02-07 18:48:40 +00:00
shortcuts.py Fixed #15010 -- Added current_app parameter to close gap between TemplateResponse and render method. Thanks, acdha. 2011-01-05 22:41:43 +00:00
specials.py Fixed #11522: Restored ability of http redirect responses to correctly handle redirect locations with non-ASCII chars. 2010-03-02 19:37:48 +00:00
static.py Fixed #14812 -- Made parsing of the If-Modified-Since HTTP header more robust in presence of malformed values when serving static content. Thanks shaohua for the report, and alexey.smolsky@gmail.com for a similar report and patch. 2010-11-30 21:27:26 +00:00