{% load i18n %} {% load statistics_resources %} {% load truncate %} {% load permissions %} {% load team_tags %} {% load locks_tags %} {% load upload_manager_tags %} {% load watches_tags %} {% load txcommontags %} {% get_permission "project_perm.maintain" for request.user and resource.project as "is_maintainer" %}
{{project.name|truncate_chars_middle:"40"}} » {{resource.name|truncate_chars_middle:"40"}} » {{ target_language }} {% watch_toggle resource target_language %}
{% blocktrans with stats.total_entities as total_entities %} Total: {{ total_entities }} strings, {{ wordcount }} words{% endblocktrans %}
{% if team %} {% comment %} This permission is provided only if team is available{% endcomment %} {% get_permission "project_perm.submit_translations" for request.user and team as "can_submit_translation" %} {% else %} {% comment %} This permission is provided if team is not available and then only the maintainers can access lotte via "Translate Now" {% endcomment %} {% get_permission "project_perm.submit_translations" for request.user and project as "can_submit_translation" %} {% endif %} {% ifequal resource.source_language target_language %} {% blocktrans %} This is the Source Language {% endblocktrans %} {% else %} {% if can_submit_translation and resource.accept_translations %} {% trans "Translate Now" %} {% else %} {% trans "Translate Now" %} {% endif %} {% endifequal %}
{% with 300 as barwidth %}
{{ stats.trans_percent }}%
{% stats_bar_actions stats barwidth %}
{% endwith %}
{{ stats.num_untranslated }} {% trans "remaining strings" %}
{% ifnotequal resource.source_language target_language %} {% if perms.projects.delete_resource or is_maintainer or request.user.is_superuser %}