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

{{ resource.name }}

{% if perms.projects.edit_resource or is_maintainer or request.user.is_superuser %} {% endif %}

{% trans "Translation Resource details" %}

{% trans "Source Language:" %} {{ resource.source_language }}
{% trans "Number of languages:" %} {{ statslist.available_languages|length }}
{% trans "Total Strings:" %} {{ statslist.total_entities }} ({{ statslist.wordcount }} {% trans "words" %})

{% trans "Available translations" %}

{% for stat in statslist.language_stats %} {% cache 604800 resource_details resource.project.slug resource.slug stat.language.code %} {% endfor %}
{% trans "Language" %} {% trans "Completion" %} {% trans "Last Updated" %}
{{ stat.language.name }} ({{ stat.language.code }}) {% ifequal resource.source_language stat.language %} source language {% endifequal %} {% with 200 as barwidth %}
{% trans "Untranslated: " %}{{ stat.num_untranslated }}">
{{ stat.trans_percent }}%
{% stats_bar_simple stat barwidth %}
{% endwith %}
{% endcache %} {% with stat.last_update as last_update %} {% with stat.last_committer as last_committer %} {% if last_update %} {{ last_update|timesince }} {% if last_committer %} by {{ last_committer }} {% endif %} {% else %} {% trans "no translations yet" %} {% endif %} {% endwith %} {% endwith %}
{% get_permission "project_perm.submit_file" for request.user and resource.project,1 as "can_submit_translation" %} {% if can_submit_translation or request.user.is_superuser %}

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! )

{% 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 "Translate Resource" %}

{% 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 %}