1
0
mirror of https://github.com/django/django.git synced 2024-11-19 07:54:07 +00:00
django/django/utils
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
..
simplejson Fixed #10006 -- Avoid inadvertently using third-party "json" module. 2009-02-27 05:14:11 +00:00
translation 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
unittest Fixed #14486 -- Modified the import order for the bundled unittest so that a locally installed unittest2 (which will have more features) will supersede the Python 2.7 native version. Thanks to Michael Foord for the suggestion. 2010-10-18 16:01:11 +00:00
__init__.py Imported Django from private SVN repository (created from r. 8825) 2005-07-13 01:25:57 +00:00
_os.py Added our own rmtree error handler to make sure we can delete correctly delete .svn directories when running the tests on Windows which are read-only for some reason. 2010-12-31 14:22:55 +00:00
_threading_local.py More typo fixing. :-( 2009-03-20 00:58:35 +00:00
autoreload.py Fixed #13062 -- Ensure that runserver exposes all warnings requested at the command line. Thanks to gremmie for the report, and claudep for the patch. 2011-01-17 13:15:08 +00:00
cache.py Fixed #13283 -- Corrected CACHE_MIDDLEWARE_ANONYMOUS_ONLY's bad habit of setting Vary: Cookie on all responses and destroying cache efficiency. Thanks to natrius for the fix. 2011-02-01 00:20:31 +00:00
checksums.py Fixed #5475 -- Added the Luhn check algorithm to django.utils.checksums so that 2007-10-20 13:40:20 +00:00
copycompat.py Fixed #11753 - Q objects with callables no longer explode on Python 2.4. Thanks, Jeremy Dunck. 2009-12-17 22:06:41 +00:00
crypto.py Fixed Python 2.4 incompatibility introduced in [14218] 2010-10-15 11:11:08 +00:00
daemonize.py Fixed #6994 -- For fastcgi, set a more sensible default umask. 2008-06-30 11:22:41 +00:00
datastructures.py Fixed MultiValueDict's copy implementation to be consistant with all other copies. 2010-10-27 20:39:20 +00:00
dateformat.py Fixed #14570 -- Added new date format character for alternative month names using the new context capabilities. Also add context to Associated Press style month names (refs #9988). Thanks to Claude and shell_dweller. 2010-12-13 13:51:28 +00:00
dates.py Fixed #9988 (again) -- Updated list of Associated Press months names to use a translation context. Thanks, Claude Paroz. 2011-01-21 22:25:50 +00:00
datetime_safe.py Fixed #12524 -- Clarified handling of pre-1000AD dates in datetime_safe (and thus, the serializers). Patch includes moving the datetime_safe tests into the utils regressiontests module. Thanks to gsf for the report and initial patch. 2010-02-13 14:02:32 +00:00
decorators.py Fixed #14512 -- Added documentation on how to apply decorators to class-based generic views. Thanks to Łukasz Rekucki for his work on the issue. 2010-11-20 05:10:13 +00:00
dictconfig.py Fixed #12012 -- Added support for logging. Thanks to Vinay Sajip for his draft patch, and to the many people who gave feedback during development of the patch. 2010-10-04 15:12:39 +00:00
encoding.py Fixed #15181 -- Ensure that special characters are escaped when querying for the URL of an uploaded file. Thanks to e.generalov for the report and patch. 2011-02-04 14:43:10 +00:00
feedgenerator.py Fixed #10447 -- Made sure the syndication feeds helper function that returns RFC 2822-formatted datetime strings isn't affected by the current locale, removing use of strftime() because the '%a' and '%b' format specifiers are problematic in this respect. Thanks bear330 for the report and lupus for an initial patch. 2010-12-29 21:23:21 +00:00
formats.py Fixed #14824 -- Corrected the handling of formats when USE_L10N is disabled. Thanks to nullie for the report and initial patch, and to idle for the separate report with helpful debug info. 2011-02-04 13:52:36 +00:00
functional.py Fixed #12164 -- Removed the Python 2.3 compatibility imports and workarounds. Thanks to timo and claudep for the patch. 2010-05-04 14:00:30 +00:00
hashcompat.py Fixed #13653: Fixed django.utils.hashcompat to support running on Python 2.4 with standalone hashlib. 2010-05-28 11:46:03 +00:00
html.py Fixed #2986 -- Made the JavaScript code that drives related model instance addition in a popup window handle a model representation containing new lines. Also, moved the escapejs functionality yoo django.utils.html so it can be used from Python code. Thanks andrewwatts for the patch. 2011-01-02 17:34:52 +00:00
http.py Fixed #15067 -- Modified the range checks on base36_to_int so you are guaranteed to always get an int, avoiding possible OverflowErrors. Thanks to Garthex for the report, jboutros for the patch, and kfrazier for the feedback. 2011-01-24 08:02:40 +00:00
importlib.py Fixed #8193: all dynamic imports in Django are now done correctly. I know this because Brett Cannon borrowed the time machine and brought Python 2.7's 'importlib back for inclusion in Django. Thanks for the patch-from-the-future, Brett! 2009-03-18 16:55:59 +00:00
itercompat.py Fiexed #3055 -- Validate that models target of a GenericRelation have a GenericForeignKey field. 2010-11-14 23:21:39 +00:00
log.py Fixed #14972 -- Ensure that the HTML email logger always produces useful output, regardless of whether it has been given an exception or a request. Thanks to jamstooks for the report, and bpeschier for the initial patch. 2011-02-01 14:18:07 +00:00
module_loading.py Fixed #14698 -- Ensure that module_has_sumodule doesn't mistake a cache miss for an existent package. Thanks to Łukasz Rekucki for the report and patch, and to shields for the test case. 2011-01-30 13:10:47 +00:00
numberformat.py Fixed #14290 -- Made format localization faster by caching the format modules. Thanks, Teemu Kurppa and Anssi Kääriäinen for the report and initial patches. 2010-09-27 15:25:08 +00:00
regex_helper.py Changed the reverse() call for creating URLs to convert a "." in the reg-exp 2008-09-03 17:53:45 +00:00
safestring.py Fixed #6071 -- Fixed another infinite recursion problem in SafeString and 2007-12-02 20:17:10 +00:00
stopwords.py Merged Unicode branch into trunk (r4952:5608). This should be fully 2007-07-04 12:11:04 +00:00
synch.py Removed a bunch of annoying trailing whitespace. 2007-04-25 07:25:22 +00:00
termcolors.py Fixed #12849 -- Corrected the way strings are encoded for display by the colorizer so that they work with unicode. Thanks to jype for the report, and frasern for his work on the issue. 2010-03-18 13:24:11 +00:00
text.py Fixed #5672 -- Allow the separator in the get_text_list utility function to be translated. Thanks, Claude. 2010-12-12 22:53:49 +00:00
timesince.py Fixed #9065 -- Fixed the timesince and timeuntil template tags to work when both values involved are date objects, thanks to morty and mboersma for the patch. 2009-03-30 21:32:34 +00:00
tree.py Fixed #11753 - Q objects with callables no longer explode on Python 2.4. Thanks, Jeremy Dunck. 2009-12-17 22:06:41 +00:00
tzinfo.py Fixed #10979 -- Fixed misleading FixedOffset.__repr__(). Thanks, gsong 2010-01-10 17:28:20 +00:00
version.py Fixed #10372: made get_svn_revision() more robust. Thanks, mboersma. 2009-04-03 20:28:23 +00:00
xmlutils.py Eliminated lots of mutable default arguments (since they are bugs 2006-06-03 13:37:34 +00:00