Add missing translations

This commit is contained in:
2025-02-18 15:05:23 +01:00
parent 93a5c3a02a
commit e8db68b960
4 changed files with 34 additions and 28 deletions

View File

@ -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">

View File

@ -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>

View File

@ -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>