document translations

This commit is contained in:
bkfox
2020-01-06 14:15:49 +01:00
parent 253045e976
commit 078a90f09a
33 changed files with 355 additions and 543 deletions

View File

@ -32,6 +32,7 @@ An empty date results to a title or a separator
name="date" value="{{ date|date:"Y-m-d" }}">
</div>
<div class="control">
{% comment %}Translators: form button to select a date{% endcomment %}
<button class="button is-primary">{% trans "Go" %}</button>
</div>
</div>

View File

@ -1,13 +1,15 @@
{% extends "aircox/widgets/page_item.html" %}
{% load i18n easy_thumbnails_tags aircox %}
{% comment %}
List item for an episode.
Context variables:
- object: episode
- diffusion: episode's diffusion
- hide_schedule: if True, do not display start time
{% endcomment %}
{% load i18n easy_thumbnails_tags aircox %}
{% block title %}
{% if not object.is_published and object.program.is_published %}
<a href="{{ object.program.get_absolute_url }}">{{ object.title }}</a>

View File

@ -1,5 +1,7 @@
{% load i18n aircox %}
{% comment %}
List item for a log, either for a logged track or diffusion (as diffusion).
Context objects:
- object: object to render
- hide_schedule: if true, hide the schedule

View File

@ -1,5 +1,7 @@
{% load i18n easy_thumbnails_tags aircox %}
{% comment %}
List item for a page
Context variables:
- object: the object to render
- render_card: render as card

View File

@ -1,11 +1,14 @@
{% load i18n %}
{% comment %}
The audio player
{% endcomment %}
{% if audio_streams %}
<br>
<div class="box is-fullwidth is-fixed-bottom is-paddingless player"
role="{% trans "player" %}"
aria-description="{% trans "audio player used to listen to the radio" %}">
aria-description="{% trans "Audio player used to listen to the radio and podcasts" %}">
<noscript>
<audio src="{{ audio_streams.0 }}" controls>
{% for stream in audio_streams %}

View File

@ -1,3 +1,7 @@
{% comment %}
List item for a podcast.
{% endcomment %}
<div class="podcast">
{% if object.embed %}
{{ object.embed|safe }}

View File

@ -1,4 +1,6 @@
{% comment %}
List item for a track
Context:
- object: track to render
{% endcomment %}