Skip to content
Browse files

Fixed #9847: mark the permission denied message for translation.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent c860758 commit c4f7bf8312a520ecd4bfcfb3f4868e5de9ab11ae @jacobian jacobian committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 django/core/handlers/
3 django/core/handlers/
@@ -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 @@ def get_response(self, request):
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

0 comments on commit c4f7bf8

Please sign in to comment.
Something went wrong with that request. Please try again.