Author: jacob Date: 2009-04-01 16:46:42 -0500 (Wed, 01 Apr 2009) New Revision: 10346
Modified: django/trunk/django/core/handlers/base.py Log: Fixed #9847: mark the permission denied message for translation. Modified: django/trunk/django/core/handlers/base.py =================================================================== --- django/trunk/django/core/handlers/base.py 2009-04-01 21:37:34 UTC (rev 10345) +++ django/trunk/django/core/handlers/base.py 2009-04-01 21:46:42 UTC (rev 10346) @@ -4,6 +4,7 @@ from django.core import signals from django.utils.encoding import force_unicode from django.utils.importlib import import_module +from django.utils.translation import ugettext_lazy as _ class BaseHandler(object): # Changes that are always applied to a response (in this order). @@ -123,7 +124,7 @@ finally: receivers = signals.got_request_exception.send(sender=self.__class__, request=request) except exceptions.PermissionDenied: - return http.HttpResponseForbidden('<h1>Permission denied</h1>') + return http.HttpResponseForbidden('<h1>%s</h1>' % _("Permission denied")) except SystemExit: # Allow sys.exit() to actually exit. See tickets #1023 and #4701 raise --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---