fix(i18n): fix i18n for services's labels

This commit is contained in:
Romain J 2020-05-16 16:10:20 +02:00
parent 4be392e35f
commit bf16a7ebfb

View file

@ -44,19 +44,19 @@
</div> </div>
<div class="uk-card-footer uk-card-media"> <div class="uk-card-footer uk-card-media">
{% if service.sources == 'CLOSED' %} {% if service.sources == 'CLOSED' %}
<span class="uk-label uk-label-warning">{{ service.get_sources_display }}</span> <span class="uk-label uk-label-warning">{% trans service.get_sources_display %}</span>
{% elif service.sources == 'OPEN' %} {% elif service.sources == 'OPEN' %}
<span class="uk-label uk-label-success">{{ service.get_sources_display }}</span> <span class="uk-label uk-label-success">{% trans service.get_sources_display %}</span>
{% else %} {% else %}
<span class="uk-label">{{ service.get_sources_display }}</span> <span class="uk-label">{% trans service.get_sources_display %}</span>
{% endif %} {% endif %}
{% if service.hosted == 'CENT' %} {% if service.hosted == 'CENT' %}
<span class="uk-label uk-label-warning">{{ service.get_hosted_display }}</span> <span class="uk-label uk-label-warning">{% trans service.get_hosted_display %}</span>
{% elif service.hosted == 'FED' %} {% elif service.hosted == 'FED' %}
<span class="uk-label uk-label-success">{{ service.get_hosted_display }}</span> <span class="uk-label uk-label-success">{% trans service.get_hosted_display %}</span>
{% else %} {% else %}
<span class="uk-label">{{ service.get_hosted_display }}</span> <span class="uk-label">{% trans service.get_hosted_display %}</span>
{% endif %} {% endif %}
</div> </div>
</div> </div>