For some reasons BeautifulSouf does not convert entities with convertEntities=["xml","html"], use convertEntities=BeautifulSoup.ALL_ENTITIES instead.
{% extends "site/layout/base.html" %}
{% load i18n %}
{% block content %}
<h1>{% blocktrans %}Unauthorized{% endblocktrans %}</h1>
{% endblock %}