]> git.0d.be Git - panikdb.git/commitdiff
mark episode page strings for translation
authorFrédéric Péters <fpeters@0d.be>
Thu, 27 May 2021 09:14:57 +0000 (11:14 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 27 May 2021 09:14:57 +0000 (11:14 +0200)
panikdb/templates/emissions/episode_detail.html

index a83dc199c27fa7c8fd577b2032bfc84400c0d96a..dff3ddc524a1f8e97a670114981cb2feb82a3f86 100644 (file)
@@ -1,29 +1,31 @@
 {% 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 %}
 
@@ -48,7 +50,7 @@
 
 {% 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 %}
@@ -58,7 +60,7 @@ Tags :
 
 
 <div class="bo-block">
-<h3>Diffusions</h3>
+<h3>{% trans "Diffusions" %}</h3>
 
 {% now "Y-m-d H:i" as s_now %}
 
@@ -88,7 +90,7 @@ Tags :
   {% 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 %}
@@ -96,20 +98,20 @@ Tags :
 </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>
@@ -123,9 +125,9 @@ Tags :
 <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 %}