{% extends "projects/project_menu.html" %} {% load i18n %} {% load cache %} {% load statistics_resources %} {% load permissions %} {% load upload_manager_tags %} {% block extra_head %} {% get_permission "project_perm.maintain" for request.user and resource.project as "is_maintainer" %} {% endblock %} {% block breadcrumb %} {{block.super}} » {{project}} » {{resource}} {% endblock %} {% block title %} {{ block.super }} | {% trans "Projects" %} | {{project}} {{resource}} {% endblock %} {% block body_class %}project_list{% endblock %} {% block header_menu %}{% endblock %} {% block project_header %} {{block.super}}

 / 

{{ resource.name }}

{% endblock%} {% block content_main %} {% get_permission "project_perm.maintain" for request.user and resource.project as "is_maintainer" %}
{% comment %} {% endcomment %} {% if perms.projects.edit_resource or is_maintainer or request.user.is_superuser %} {% endif %} {% cache 604800 resource_details resource.project.slug resource.slug LANGUAGE_CODE %}

{% trans "Translation Resource details" %}

{% if resource.priority %} {% with resource.priority.level as priority_level %} {% with resource.priority.display_level as display_level %} {% endwith %} {% endwith %} {% endif %} {% with resource.releases.all as releases %} {% if releases %} {% endif %} {% endwith %}
{% trans "Source Language" %} {{ resource.source_language }}
{% trans "Number of languages" %} {{ resource.available_languages|length }}
{% trans "Total Strings" %} {{ resource.total_entities }} ({{ resource.wordcount }} {% trans "words" %})
{% trans "Auto-update from URL?" %} {% if autofetch_url and autofetch_url.auto_update %}   [link to file] {% else %} {% endif %}
{% trans "Accepting Translations?" %} {% if resource.accept_translations %} {% else %} {% endif %}
{% trans "Priority Level" %} {% if is_maintainer %} {% else %} {% endif %}
{% blocktrans count releases|length as counter %}Release:{% plural %}Releases:{% endblocktrans %}

{% trans "Available translations" %}

{% for stat in statslist %} {% ifequal forloop.counter 2 %} {% endifequal %} {% cache 604800 resource_details_lang resource.project.slug resource.slug stat.language.code LANGUAGE_CODE %} {% endcache %} {% endfor %}
{% trans "Language" %} {% trans "Completion" %} {% trans "Last Updated" %}
{{ stat.language.name }} ({{ stat.language.code }}) {% ifequal resource.source_language stat.language %} {% trans "source language" %} {% endifequal %} {% if stat.lock.valid %} {% endif %} {% with 200 as barwidth %} {% stats_bar_simple stat barwidth %} {% endwith %} {% with stat.last_update as last_update %} {% with stat.last_committer as last_committer %} {% if last_update %} {{ last_update|date:"M d, h:ia" }} {% if last_committer %} by {{ last_committer }} {% endif %} {% else %} {% trans "no translations yet" %} {% endif %} {% endwith %} {% endwith %}
{% endcache %} {% get_permission "project_perm.submit_translations" for request.user and resource.project,1 as "can_submit_translation" %} {% get_permission "project_perm.maintain" for request.user and resource.project as "is_maintainer" %} {% if can_submit_translation and resource.accept_translations or is_maintainer %}

{% blocktrans %}If you cannot see your language, click the button below to translate.( You must belong to a language team of this project, to be able to translate! ){% endblocktrans %}

{% comment %} I kept this in order to remember to fix the languages in the templatetags. The change should respect the below permissions!!! {% endcomment %} {% upload_resource_translation_button request resource '' 'button-global' 'True' %}

{% trans "Add Translation" %}

{% endif %}

{% trans 'History' %}

{% load tx_action_log %} {% get_log 5 as action_log for_object resource %} {% if not action_log %}

{% trans 'No actions recorded yet :)' %}

{% else %} {% endif %} {% endblock %} {% block content_footer %} {% endblock %}