forked from rc/aircox
update dependencies to Django 4.1 + rename blocktrans/trans templates
This commit is contained in:
@ -12,7 +12,7 @@ An empty date results to a title or a separator
|
||||
{% load i18n %}
|
||||
|
||||
<div class="media" role="menu"
|
||||
aria-label="{% trans "pick a date" %}">
|
||||
aria-label="{% translate "pick a date" %}">
|
||||
<div class="media-content">
|
||||
<div class="tabs is-toggle">
|
||||
<ul>
|
||||
@ -29,7 +29,7 @@ An empty date results to a title or a separator
|
||||
|
||||
<div class="media-right">
|
||||
<form action="{% url url_name %}" method="GET" class="navbar-body"
|
||||
aria-label="{% trans "Jump to date" %}">
|
||||
aria-label="{% translate "Jump to date" %}">
|
||||
<div class="field has-addons">
|
||||
<div class="control has-icons-left">
|
||||
<span class="icon is-small is-left"><span class="far fa-calendar"></span></span>
|
||||
@ -38,7 +38,7 @@ An empty date results to a title or a separator
|
||||
</div>
|
||||
<div class="control">
|
||||
{% comment %}Translators: form button to select a date{% endcomment %}
|
||||
<button class="button is-primary">{% trans "Go" %}</button>
|
||||
<button class="button is-primary">{% translate "Go" %}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
@ -37,8 +37,8 @@ Context variables:
|
||||
|
||||
{% if diffusion.initial %}
|
||||
{% with diffusion.initial.date as date %}
|
||||
<span title="{% blocktrans %}Rerun of {{ date }}{% endblocktrans %}">
|
||||
{% trans "(rerun)" %}
|
||||
<span title="{% blocktranslate %}Rerun of {{ date }}{% endblocktranslate %}">
|
||||
{% translate "(rerun)" %}
|
||||
</span>
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
|
@ -17,8 +17,8 @@ Context:
|
||||
<ul class="pagination-list">
|
||||
<li>
|
||||
<a href="{{ list_url }}" class="pagination-link"
|
||||
aria-label="{% trans "Show all publications" %}">
|
||||
{% trans "Show more" %}
|
||||
aria-label="{% translate "Show all publications" %}">
|
||||
{% translate "Show more" %}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -6,8 +6,8 @@ The audio player
|
||||
<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 and podcasts" %}">
|
||||
role="{% translate "player" %}"
|
||||
aria-description="{% translate "Audio player used to listen to the radio and podcasts" %}">
|
||||
<noscript>
|
||||
<audio src="{{ audio_streams.0 }}" controls>
|
||||
{% for stream in audio_streams %}
|
||||
@ -19,13 +19,13 @@ The audio player
|
||||
|
||||
<a-player ref="player"
|
||||
:live-args="{url: '{% url "api:live" %}', timeout:10, src: {{ audio_streams|json }} || []}"
|
||||
button-title="{% trans "Play or pause audio" %}">
|
||||
button-title="{% translate "Play or pause audio" %}">
|
||||
<template v-slot:content="{ loaded, live, current }">
|
||||
<h4 v-if="loaded" class="title is-4">
|
||||
[[ loaded.name ]]
|
||||
</h4>
|
||||
<h4 v-else-if="current && current.data.type == 'track'"
|
||||
class="title is-4" aria-description="{% trans "Track currently on air" %}">
|
||||
class="title is-4" aria-description="{% translate "Track currently on air" %}">
|
||||
<span class="has-text-info is-size-3">♬</span>
|
||||
<span>[[ current.data.title ]]</span>
|
||||
<span class="has-text-grey-dark has-text-weight-light">
|
||||
@ -34,12 +34,12 @@ The audio player
|
||||
</span>
|
||||
</h4>
|
||||
<div v-else-if="live && current && current.data.type == 'diffusion'">
|
||||
<h4 class="title is-4" aria-description="{% trans "Diffusion currently on air" %}">
|
||||
<h4 class="title is-4" aria-description="{% translate "Diffusion currently on air" %}">
|
||||
<a :href="current.data.url">[[ current.data.title ]]</a>
|
||||
</h4>
|
||||
<div class="">[[ current.data.info ]]</div>
|
||||
</div>
|
||||
<h4 v-else class="title is-4" aria-description="{% trans "Currently playing" %}">
|
||||
<h4 v-else class="title is-4" aria-description="{% translate "Currently playing" %}">
|
||||
{{ request.station.name }}
|
||||
</h4>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user