{% extends "base.html" %}
-{% load soundfiles panikdbtags nonstop %}
+{% load i18n soundfiles panikdbtags nonstop %}
{% block appbar %}
<h2>{{ episode.emission.title }} — {{ episode.title }}</h2>
-<span class="actions"><a href="../">Retourner à l'émission</a></span>
+<span class="actions"><a href="../">{% trans "Back to emission" %}</a></span>
{% endblock %}
{% block content %}
{% if can_manage %}
<p>
-<a class="button" href="edit/">Modifier</a>
-<a class="button" href="add-diffusion" rel="popup">Ajouter une diffusion</a>
-<a class="button" href="add-soundfile" rel="popup">Ajouter un son</a>
+<a class="button" href="edit/">{% trans "Edit" %}</a>
+{% if perms.emissions.add_diffusion %}
+<a class="button" href="add-diffusion" rel="popup">{% trans "Add a diffusion" %}</a>
+{% endif %}
+<a class="button" href="add-soundfile" rel="popup">{% trans "Add a sound" %}</a>
{% if episode.effective_start and episode.effective_end %}
{% if internal_ip %}
- <a class="button" id="download-recording" download href="{{ episode.get_pige_download_url }}">Télécharger l'enregistrement</a>
+ <a class="button" id="download-recording" download href="{{ episode.get_pige_download_url }}">{% trans "Download recording" %}</a>
{% endif %}
{% elif not soundfiles and 0 %}
{% if episode.effective_start %}
- <a class="button" id="stop-recording" href="stop">Arrêter l'enregistrement</a>
+ <a class="button" id="stop-recording" href="stop">{% trans "Stop recording" %}</a>
{% else %}
- <a class="button" id="start-recording" href="start">Démarrer l'enregistrement</a>
+ <a class="button" id="start-recording" href="start">{% trans "Start recording" %}</a>
{% endif %}
{% endif %}
-<a class="button actually-not-that-friendly" href="delete/" rel="popup">Supprimer</a>
+<a class="button actually-not-that-friendly" rel="popup" href="delete/">{% trans "Delete" %}</a>
</p>
{% endif %}
{% if episode.tags.all %}
<p>
-Tags :
+{% trans "Tags:" %}
{% for tag in episode.tags.all %}
<span class="tag">{{ tag }}</span>{% if not forloop.last %}, {% endif %}
{% endfor %}
<div class="bo-block">
-<h3>Diffusions</h3>
+<h3>{% trans "Diffusions" %}</h3>
{% now "Y-m-d H:i" as s_now %}
{% endif %}
{% endif %}
{% if can_manage %}
- <a href="diffusion/{{ diffusion.id }}/remove" class="icon-remove-sign" title="Retirer"></a>
+<a href="diffusion/{{ diffusion.id }}/remove" class="icon-remove-sign" title="{% trans "Remove" %}"></a>
{% endif %}
</li>
{% endfor %}
</div>
<div class="bo-block">
-<h3>Sons</h3>
+<h3>{% trans "Soundfiles" %}</h3>
<table id="soundfiles">
<thead>
<tr>
- <th>Fichier</th>
- <th>Titre</th>
- <th>Durée</th>
- <th>Format</th>
- <th>Podcastable?</th>
- <th>Fragment?</th>
- <th>Nb de téléchargements</th>
- {% if can_manage %}<th>Modifier</th>{% endif %}
- {% if can_manage %}<th>Supprimer</th>{% endif %}
+ <th>{% trans "File" %}</th>
+ <th>{% trans "Title" %}</th>
+ <th>{% trans "Duration" %}</th>
+ <th>{% trans "Format" %}</th>
+ <th>{% trans "Podcast?" %}</th>
+ <th>{% trans "Fragment?" %}</th>
+ <th>{% trans "Download count" %}</th>
+ {% if can_manage %}<th>{% trans "Edit" %}</th>{% endif %}
+ {% if can_manage %}<th>{% trans "Delete" %}r</th>{% endif %}
{% if perms.emissions.add_focus %}<th>Focus</th>{% endif %}
</thead>
<tbody>
<td>{% if soundfile.fragment %}oui{% else %}non{% endif %}</td>
<td>{{ soundfile|nb_visits }}</td>
{% if can_manage %}<td><a href="sounds/{{ soundfile.id }}/"
- class="icon-edit" rel="popup" title="Modifier"></a></td>{% endif %}
+ class="icon-edit" title="Modifier"></a></td>{% endif %}
{% if can_manage %}<td><a href="sounds/{{ soundfile.id }}/remove"
- class="icon-remove-sign" rel="popup" title="Retirer"></a></td>{% endif %}
+ class="icon-remove-sign" title="{% trans "Remove" %}"></a></td>{% endif %}
{% if perms.emissions.add_focus %}
<td>
{% if soundfile|has_focus %}