mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
Add missing translations
This commit is contained in:
@ -69,7 +69,7 @@
|
||||
maxPageSize: {{ settings.SITH_SAS_IMAGES_PER_PAGE }},
|
||||
})">
|
||||
|
||||
{{ download_button("Download album") }}
|
||||
{{ download_button(_("Download album")) }}
|
||||
|
||||
<h4>{% trans %}Pictures{% endtrans %}</h4>
|
||||
<div class="photos" :aria-busy="loading">
|
||||
|
@ -9,7 +9,7 @@
|
||||
This requires importing `bundled/sas/pictures-download-index.ts`
|
||||
|
||||
Parameters:
|
||||
name (str): name displayed on the button, will be translated
|
||||
name (str): name displayed on the button
|
||||
#}
|
||||
{% macro download_button(name) %}
|
||||
<div x-data="pictures_download">
|
||||
@ -21,7 +21,7 @@
|
||||
>
|
||||
<i class="fa fa-download"></i>
|
||||
{%- if name != "" -%}
|
||||
{% trans %}{{ name }}{% endtrans %}
|
||||
{{ name }}
|
||||
{%- endif -%}
|
||||
</button>
|
||||
<progress x-ref="progress" x-show="isDownloading"></progress>
|
||||
|
@ -17,7 +17,7 @@
|
||||
{% block content %}
|
||||
<main x-data="user_pictures({ userId: {{ object.id }} })">
|
||||
{% if user.id == object.id %}
|
||||
{{ download_button("Download all my pictures") }}
|
||||
{{ download_button(_("Download all my pictures")) }}
|
||||
{% endif %}
|
||||
|
||||
<template x-for="[album, pictures] in Object.entries(albums)" x-cloak>
|
||||
|
Reference in New Issue
Block a user