{% load i18n %} {% load permissions %} {% load locks_tags %} {% load txcommontags %} {% url resource_language_lock resource.project.slug resource.slug language.code as url_lock %} {% url resource_language_unlock resource.project.slug resource.slug language.code as url_unlock %} {% url resource_language_extend resource.project.slug resource.slug language.code as url_extend %} {% with lock.owner as owner %} {% get_permission "project_perm.maintain" for request.user and resource.project as "is_maintainer" %} {% if is_locked %}
  • {% if is_owner %} {% blocktrans %}You locked this translation.{% endblocktrans %} {% else %} {% blocktrans %}User '{{ owner }}' locked this translation.{% endblocktrans %} {% endif %} {% blocktrans with lock.expires|timeuntil as lock_expires %}({{ lock_expires }} left){% endblocktrans %} {% if is_unlockable %}({% trans "unlock" %}){% endif %} {% if is_owner %} {% endif %}
  • {% else %} {% if can_lock %}
  • {% trans "Lock this translation to notify others you're working with it." %}
  • {% else %}
  • {% blocktrans %}This translation isn't locked. Most likely no one is working on it right now.{% endblocktrans %}
  • {% endif %} {% endif %} {% endwith %}