Add missing translations

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

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-02-12 15:55+0100\n" "POT-Creation-Date: 2025-02-18 15:03+0100\n"
"PO-Revision-Date: 2016-07-18\n" "PO-Revision-Date: 2016-07-18\n"
"Last-Translator: Maréchal <thomas.girod@utbm.fr\n" "Last-Translator: Maréchal <thomas.girod@utbm.fr\n"
"Language-Team: AE info <ae.info@utbm.fr>\n" "Language-Team: AE info <ae.info@utbm.fr>\n"
@ -935,6 +935,10 @@ msgstr "rôle"
msgid "description" msgid "description"
msgstr "description" msgstr "description"
#: club/models.py
msgid "past member"
msgstr "ancien membre"
#: club/models.py #: club/models.py
msgid "Email address" msgid "Email address"
msgstr "Adresse email" msgstr "Adresse email"
@ -1425,8 +1429,9 @@ msgstr ""
#: com/templates/com/macros.jinja #: com/templates/com/macros.jinja
#, python-format #, python-format
msgid "" msgid ""
"This event will take place every week for %(nb)s weeks. If you moderate or delete " "This event will take place every week for %(nb)s weeks. If you moderate or "
"this event, it will also be moderated (or deleted) for the following weeks." "delete this event, it will also be moderated (or deleted) for the following "
"weeks."
msgstr "" msgstr ""
"Cet événement se déroulera chaque semaine pendant %(nb)s semaines. Si vous " "Cet événement se déroulera chaque semaine pendant %(nb)s semaines. Si vous "
"modérez ou supprimez cet événement, il sera également modéré (ou supprimé) " "modérez ou supprimez cet événement, il sera également modéré (ou supprimé) "
@ -3070,20 +3075,6 @@ msgstr "Éditer les groupes pour %(user_name)s"
msgid "User list" msgid "User list"
msgstr "Liste d'utilisateurs" msgstr "Liste d'utilisateurs"
#: core/templates/core/user_pictures.jinja
#, python-format
msgid "%(user_name)s's pictures"
msgstr "Photos de %(user_name)s"
#: core/templates/core/user_pictures.jinja
msgid "Download all my pictures"
msgstr "Télécharger toutes mes photos"
#: core/templates/core/user_pictures.jinja sas/templates/sas/album.jinja
#: sas/templates/sas/macros.jinja
msgid "To be moderated"
msgstr "A modérer"
#: core/templates/core/user_preferences.jinja core/views/user.py #: core/templates/core/user_preferences.jinja core/views/user.py
msgid "Preferences" msgid "Preferences"
msgstr "Préférences" msgstr "Préférences"
@ -3336,8 +3327,8 @@ msgstr "Nom d'utilisateur, email, ou numéro de compte AE"
#: core/views/forms.py #: core/views/forms.py
msgid "" msgid ""
"Profile: you need to be visible on the picture, in order to be recognized (e." "Profile: you need to be visible on the picture, in order to be recognized "
"g. by the barmen)" "(e.g. by the barmen)"
msgstr "" msgstr ""
"Photo de profil: vous devez être visible sur la photo afin d'être reconnu " "Photo de profil: vous devez être visible sur la photo afin d'être reconnu "
"(par exemple par les barmen)" "(par exemple par les barmen)"
@ -3947,8 +3938,8 @@ msgstr ""
#: counter/templates/counter/mails/account_dump.jinja #: counter/templates/counter/mails/account_dump.jinja
msgid "If you think this was a mistake, please mail us at ae@utbm.fr." msgid "If you think this was a mistake, please mail us at ae@utbm.fr."
msgstr "" msgstr ""
"Si vous pensez qu'il s'agit d'une erreur, veuillez envoyer un mail à ae@utbm." "Si vous pensez qu'il s'agit d'une erreur, veuillez envoyer un mail à "
"fr." "ae@utbm.fr."
#: counter/templates/counter/mails/account_dump.jinja #: counter/templates/counter/mails/account_dump.jinja
msgid "" msgid ""
@ -5217,6 +5208,15 @@ msgstr "SAS"
msgid "Albums" msgid "Albums"
msgstr "Albums" msgstr "Albums"
#: sas/templates/sas/album.jinja
msgid "Download album"
msgstr "Télécharger l'album"
#: sas/templates/sas/album.jinja sas/templates/sas/macros.jinja
#: sas/templates/sas/user_pictures.jinja
msgid "To be moderated"
msgstr "A modérer"
#: sas/templates/sas/album.jinja #: sas/templates/sas/album.jinja
msgid "Upload" msgid "Upload"
msgstr "Envoyer" msgstr "Envoyer"
@ -5286,6 +5286,15 @@ msgstr "Personne(s)"
msgid "Identify users on pictures" msgid "Identify users on pictures"
msgstr "Identifiez les utilisateurs sur les photos" msgstr "Identifiez les utilisateurs sur les photos"
#: sas/templates/sas/user_pictures.jinja
#, python-format
msgid "%(user_name)s's pictures"
msgstr "Photos de %(user_name)s"
#: sas/templates/sas/user_pictures.jinja
msgid "Download all my pictures"
msgstr "Télécharger toutes mes photos"
#: sith/settings.py #: sith/settings.py
msgid "English" msgid "English"
msgstr "Anglais" msgstr "Anglais"
@ -6022,6 +6031,3 @@ msgstr "Vous ne pouvez plus écrire de commentaires, la date est passée."
#, python-format #, python-format
msgid "Maximum characters: %(max_length)s" msgid "Maximum characters: %(max_length)s"
msgstr "Nombre de caractères max: %(max_length)s" msgstr "Nombre de caractères max: %(max_length)s"
#~ msgid "past member"
#~ msgstr "ancien membre"

View File

@ -69,7 +69,7 @@
maxPageSize: {{ settings.SITH_SAS_IMAGES_PER_PAGE }}, maxPageSize: {{ settings.SITH_SAS_IMAGES_PER_PAGE }},
})"> })">
{{ download_button("Download album") }} {{ download_button(_("Download album")) }}
<h4>{% trans %}Pictures{% endtrans %}</h4> <h4>{% trans %}Pictures{% endtrans %}</h4>
<div class="photos" :aria-busy="loading"> <div class="photos" :aria-busy="loading">

View File

@ -9,7 +9,7 @@
This requires importing `bundled/sas/pictures-download-index.ts` This requires importing `bundled/sas/pictures-download-index.ts`
Parameters: Parameters:
name (str): name displayed on the button, will be translated name (str): name displayed on the button
#} #}
{% macro download_button(name) %} {% macro download_button(name) %}
<div x-data="pictures_download"> <div x-data="pictures_download">
@ -21,7 +21,7 @@
> >
<i class="fa fa-download"></i> <i class="fa fa-download"></i>
{%- if name != "" -%} {%- if name != "" -%}
{% trans %}{{ name }}{% endtrans %} {{ name }}
{%- endif -%} {%- endif -%}
</button> </button>
<progress x-ref="progress" x-show="isDownloading"></progress> <progress x-ref="progress" x-show="isDownloading"></progress>

View File

@ -17,7 +17,7 @@
{% block content %} {% block content %}
<main x-data="user_pictures({ userId: {{ object.id }} })"> <main x-data="user_pictures({ userId: {{ object.id }} })">
{% if user.id == object.id %} {% if user.id == object.id %}
{{ download_button("Download all my pictures") }} {{ download_button(_("Download all my pictures")) }}
{% endif %} {% endif %}
<template x-for="[album, pictures] in Object.entries(albums)" x-cloak> <template x-for="[album, pictures] in Object.entries(albums)" x-cloak>