{% load i18n %} {% load locks_tags %} {% block submit %} {% with pofile.locks.valid.get as lock %} {% if lock %} {% ifequal request.user lock.owner %} Keep file locked {% else %}

{% trans "This file is locked by someone else." %}

{% endifequal %} {% endif %} {% endwith %} {% endblock %}