From eae73e2163f3a4df93dbd46a1cb47b3bda8a5c4d Mon Sep 17 00:00:00 2001 From: emy Date: Sun, 16 Sep 2018 20:01:52 +0200 Subject: [PATCH] French translation of templates files --- contrib/fr/emails/reset-password | 1 - contrib/fr/overrides/admin.html | 166 +++++++++++++++++++++++++++++++ contrib/fr/overrides/goal.html | 97 ++++++++++++++++++ contrib/fr/overrides/index.html | 147 +++++++++++++++++++++++++++ contrib/fr/overrides/layout.html | 24 +++++ contrib/fr/overrides/login.html | 32 ++++++ contrib/fr/overrides/panel.html | 62 ++++++++++++ contrib/fr/overrides/reset.html | 43 ++++++++ 8 files changed, 571 insertions(+), 1 deletion(-) create mode 100644 contrib/fr/overrides/admin.html create mode 100644 contrib/fr/overrides/goal.html create mode 100644 contrib/fr/overrides/index.html create mode 100644 contrib/fr/overrides/layout.html create mode 100644 contrib/fr/overrides/login.html create mode 100644 contrib/fr/overrides/panel.html create mode 100644 contrib/fr/overrides/reset.html diff --git a/contrib/fr/emails/reset-password b/contrib/fr/emails/reset-password index d9dfa0b..637772d 100644 --- a/contrib/fr/emails/reset-password +++ b/contrib/fr/emails/reset-password @@ -13,4 +13,3 @@ Si vous avez des questions, envoyez-nous un e-mail : {{your_email}} -- {{your_name}} - diff --git a/contrib/fr/overrides/admin.html b/contrib/fr/overrides/admin.html new file mode 100644 index 0000000..2b6026e --- /dev/null +++ b/contrib/fr/overrides/admin.html @@ -0,0 +1,166 @@ +{% extends "layout.html" %} +{% block title %} +Gestion des dons +{% endblock %} +{% block body %} +
+
+

+ + Obtenir un bouton de donation + + Se déconnecter +

+

Gestion des dons

+

Utilisez cette page en plus du panneau de contrôle Stripe pour davantage d'informations.

+
+
+
+ {% if first %} +
+

+ You're set up and ready to go! This is your admin panel. Next steps: +

+
    +
  1. + Set up a cron job to handle monthly donations. + + Relevant documentation + . +
  2. +
  3. + Add some projects. Donors can tell you which project they want to support + when they donate. +
  4. +
  5. + Customize the look & feel. Look at the contents of the templates + directory - you can copy and paste any of these templates into the + overrides directory and change it to suit your needs. +
  6. +
  7. + Donate to fosspay upstream? +
  8. +
  9. + Contribute code to fosspay upstream? +
  10. +
+
+ {% endif %} +

Projets

+
+
+ + + + + + + + + + + + {% for project in projects %} + + + + + + + + {% endfor %} + + + + + + + + + + + + + + + +
ProjetsUniquesRécurrents (actifs)Récurrents (somme totale)
{{ project.name }}{{ "{:.2f}".format(one_times(project) / 100) }}€{{ "{:.2f}".format(recurring(project) / 100) }}€{{ "{:.2f}".format(recurring_ever(project) / 100) }}€
(non précisé){{ "{:.2f}".format(unspecified_one_times / 100) }}€{{ "{:.2f}".format(unspecified_recurring / 100) }}€{{ "{:.2f}".format(unspecified_recurring_ever / 100) }}€
Total{{ "{:.2f}".format(total_one_time / 100) }}€{{ "{:.2f}".format(total_recurring / 100) }}€{{ "{:.2f}".format(total_recurring_ever / 100) }}€
+
+
+

Ajouter un projet

+

Les donateurices ne pourront pas choisir de projet avant que vous en ayez ajouté au moins deux.

+
+
+ +
+ +
+
+
+

Dons récents (50 derniers)

+ + + + + + + + + + + + + + {% for donation in donations %} + + + + + + + + + + {% endfor %} + +
DateEmailProjetCommentaireMontantTypePayments
{{ donation.created.strftime("%d-%m-%Y") }}{{ donation.user.email }}{{ donation.project.name if donation.project else "" }}{{ donation.comment if donation.comment else "" }}{{ "{:.2f}".format(donation.amount / 100) }}€ + {{ "Unique" if str(donation.type) == "DonationType.one_time" else "Mensuel" }} + {{ "(cancelled)" if not donation.active else "" }} + + {{donation.payments}} +
+
+ + +{% endblock %} diff --git a/contrib/fr/overrides/goal.html b/contrib/fr/overrides/goal.html new file mode 100644 index 0000000..bd464fb --- /dev/null +++ b/contrib/fr/overrides/goal.html @@ -0,0 +1,97 @@ +{% if _cfg("public-income") == "yes" %} +
+
+
+ {% set total_sum = recurring_sum + patreon_sum + lp_sum %} + {% set total_count = recurring_count + patreon_count + lp_count %} + {% if _cfg("goal") %} + {% set goal = int(_cfg("goal")) %} + + {% if goal < total_sum %} + {# Make the graph still make sense if we exceeded the goal #} + {% set adjusted_goal = total_sum %} + {% else %} + {% set adjusted_goal = goal %} + {% endif %} + + {% set recurring_progress = recurring_sum / adjusted_goal %} + {% set patreon_progress = patreon_sum / adjusted_goal %} + {% set lp_progress = lp_sum / adjusted_goal %} + {% set progress = total_sum / goal %} +
+
+ {{ "{:.0f}".format(recurring_sum / 100) }}€ +
+ +
+ {{ "{:.0f}".format(patreon_sum / 100) }}€ +
+ +
+ {{ "{:.0f}".format(lp_sum / 100) }}€ +
+
+ {% endif %} +
+
+
+
+ {% if patreon_count or lp_count %} +

+ {{ "{:.2f}".format(recurring_sum / 100) }}€ par mois + via {{ domain }} + ({{ recurring_count }} donateurice{{ "s" if recurring_count != 1 else "" }}) +

+ {% if patreon_count %} +

+ {{ "{:.2f}".format(patreon_sum / 100) }}€ par mois + via + + Patreon + ({{ patreon_count }} donateurice{{ "s" if patreon_count != 1 else "" }}) +

+ {% endif %} + {% if lp_count %} +

+ {{ "{:.2f}".format(lp_sum / 100) }}€ par mois + via + + Liberapay + ({{ lp_count }} donateurice{{ "s" if lp_count != 1 else "" }}) +

+ {% endif %} + {% endif %} + {% if goal %} +

+ {{ "{:.2f}".format(total_sum / 100)}}€ par mois + sur l'objectif de + {{ "{:.2f}".format(goal / 100) }}€. +

+ {% else %} +

+ Supported with ${{ "{:.2f}".format(total_sum / 100) }} + from {{ total_count }} supporters! +

+ {% endif %} +
+
+
+
+ {% include "goal-summary.html" %} +
+
+
+{% endif %} diff --git a/contrib/fr/overrides/index.html b/contrib/fr/overrides/index.html new file mode 100644 index 0000000..b5600cb --- /dev/null +++ b/contrib/fr/overrides/index.html @@ -0,0 +1,147 @@ +{% extends "layout.html" %} +{% block scripts %} + + + +{% endblock %} +{% block body %} +
+
+
+
+ +

Soutenir le {{ _cfg("your-name") }}

+ {% include "summary.html" %} +
+
+
+
+ + +
+

Choississez votre montant :

+
+
+
+ {% for amt in _cfg("default-amounts").split(" ") %} +
+ +
+ {% endfor %} +
+ +
+
+
+
+ +

Donner :

+
+
+
+
+
+ +
+
+ +
+
+
+
+
+ {% if len(projects) > 1 %} +

Pour quel projet ?

+
+
+
+ +
+
+
+ {% endif %} +
+
+
+ +
+
+
+
+
+ + +
+
+
+{% include "goal.html" %} +
+
+ {% if not user %} +

+ + Si vous nous avez déjà fait au moins un don, vous pouvez vous connecter pour voir + votre historique ou éditer vos dons récurrents. :) + +

+ {% endif %} +

+ + Powered by fosspay. + +

+
+{% endblock %} diff --git a/contrib/fr/overrides/layout.html b/contrib/fr/overrides/layout.html new file mode 100644 index 0000000..41c90d8 --- /dev/null +++ b/contrib/fr/overrides/layout.html @@ -0,0 +1,24 @@ + + + + + + + {% block title %} + Donations pour {{_cfg("your-name")}} + {% endblock %} + + {% block styles %}{% endblock %} + + + {% block body %} +
+ {% block container %} + {% endblock %} +
+ {% endblock %} + + + {% block scripts %}{% endblock %} + + diff --git a/contrib/fr/overrides/login.html b/contrib/fr/overrides/login.html new file mode 100644 index 0000000..672a452 --- /dev/null +++ b/contrib/fr/overrides/login.html @@ -0,0 +1,32 @@ +{% extends "layout.html" %} +{% block body %} +
+
+

Soutenir le {{ _cfg("your-name") }}

+
+
+
+
+
+

Connexion

+ {% if errors %} +
+

+ Identifiant ou mot de passe invalide·s. +

+
+ {% endif %} +
+
+ +
+
+ +
+ + Mot de passe perdu +
+
+
+
+{% endblock %} diff --git a/contrib/fr/overrides/panel.html b/contrib/fr/overrides/panel.html new file mode 100644 index 0000000..fd7ca8c --- /dev/null +++ b/contrib/fr/overrides/panel.html @@ -0,0 +1,62 @@ +{% extends "layout.html" %} +{% block body %} +
+
+

+ Donner à nouveau + Se déconnecter +

+

Vos dons

+
+
+
+ {% if any(recurring(user)) %} +

Dons mensuels

+ + + + + + + + + + + {% for donation in recurring(user) %} + + + + + + + {% endfor %} + +
DateMontantProjet
+
+ +
+
{{ donation.created.strftime("%d-%m-%Y") }}{{ "{:.2f}".format(donation.amount / 100) }}€{{ donation.project.name if donation.project else "Non précisé" }}
+ {% endif %} + {% if any(one_times(user)) %} +

Dons uniques

+ + + + + + + + + + {% for donation in one_times(user) %} + + + + + + {% endfor %} + +
DateMontantProjet
{{ donation.created.strftime("%d-%m-%Y") }}{{ "{:.2f}".format(donation.amount / 100) }}€{{ donation.project.name if donation.project else "Non précisé" }}
+ {% endif %} +
+{% endblock %} diff --git a/contrib/fr/overrides/reset.html b/contrib/fr/overrides/reset.html new file mode 100644 index 0000000..b8d2cf4 --- /dev/null +++ b/contrib/fr/overrides/reset.html @@ -0,0 +1,43 @@ +{% extends "layout.html" %} +{% block body %} +
+
+

Soutenir le {{ _cfg("your-name") }}

+
+
+
+
+
+

Récupération de votre compte

+ {% if errors %} +
+

+ {{ errors }} +

+
+ {% endif %} + {% if done %} +

+ Un e-mail devrait arriver. En cas de souci vous pouvez nous contacter : + {{_cfg("your-email")}}. +

+ {% elif token %} +
+
+ + +
+ +
+ {% else %} +
+
+ +
+ +
+ {% endif %} +
+
+
+{% endblock %}