diff --git a/contrib/fr/overrides/admin.html b/contrib/fr/overrides/admin.html
index 2b6026e..df8f551 100644
--- a/contrib/fr/overrides/admin.html
+++ b/contrib/fr/overrides/admin.html
@@ -64,24 +64,24 @@
×
{{ project.name }}
- {{ "{:.2f}".format(one_times(project) / 100) }}€
- {{ "{:.2f}".format(recurring(project) / 100) }}€
- {{ "{:.2f}".format(recurring_ever(project) / 100) }}€
+ {{ currency.amount("{:.2f}".format(one_times(project) / 100)) }}
+ {{ currency.amount("{:.2f}".format(recurring(project) / 100)) }}
+ {{ currency.amount("{:.2f}".format(recurring_ever(project) / 100)) }}
{% endfor %}
(non précisé)
- {{ "{:.2f}".format(unspecified_one_times / 100) }}€
- {{ "{:.2f}".format(unspecified_recurring / 100) }}€
- {{ "{:.2f}".format(unspecified_recurring_ever / 100) }}€
+ {{ currency.amount("{:.2f}".format(unspecified_one_times / 100)) }}
+ {{ currency.amount("{:.2f}".format(unspecified_recurring / 100)) }}
+ {{ currency.amount("{:.2f}".format(unspecified_recurring_ever / 100)) }}
Total
- {{ "{:.2f}".format(total_one_time / 100) }}€
- {{ "{:.2f}".format(total_recurring / 100) }}€
- {{ "{:.2f}".format(total_recurring_ever / 100) }}€
+ {{ currency.amount("{:.2f}".format(total_one_time / 100)) }}
+ {{ currency.amount("{:.2f}".format(total_recurring / 100)) }}
+ {{ currency.amount("{:.2f}".format(total_recurring_ever / 100)) }}
@@ -117,7 +117,7 @@
{{ donation.user.email }}
{{ donation.project.name if donation.project else "" }}
{{ donation.comment if donation.comment else "" }}
- {{ "{:.2f}".format(donation.amount / 100) }}€
+ {{ currency.amount("{:.2f}".format(donation.amount / 100)) }}
{{ "Unique" if str(donation.type) == "DonationType.one_time" else "Mensuel" }}
{{ "(cancelled)" if not donation.active else "" }}
diff --git a/contrib/fr/overrides/goal.html b/contrib/fr/overrides/goal.html
index bd464fb..deed792 100644
--- a/contrib/fr/overrides/goal.html
+++ b/contrib/fr/overrides/goal.html
@@ -23,21 +23,21 @@
class="progress-bar progress-bar-primary"
style="width: {{ recurring_progress * 100 }}%; line-height: 2.5"
>
- {{ "{:.0f}".format(recurring_sum / 100) }}€
+ {{ currency.amount("{:.0f}".format(recurring_sum / 100)) }}
- {{ "{:.0f}".format(patreon_sum / 100) }}€
+ {{ currency.amount("{:.0f}".format(patreon_sum / 100)) }}
- {{ "{:.0f}".format(lp_sum / 100) }}€
+ {{ currency.amount("{:.0f}".format(lp_sum / 100)) }}
{% endif %}
@@ -47,13 +47,13 @@
diff --git a/contrib/fr/overrides/index.html b/contrib/fr/overrides/index.html
index f5b8ef2..c3ab241 100644
--- a/contrib/fr/overrides/index.html
+++ b/contrib/fr/overrides/index.html
@@ -17,6 +17,8 @@ const i18n = {
};
// Fin de traduction
+const currency = "{{ _cfg("currency") }}";
+
{% if user %}
window.email = "{{user.email}}";
{% endif %}
@@ -66,7 +68,7 @@ window.email = "{{user.email}}";
{{ amt }}€
+ >{{ currency.amount(amt) }}
{% endfor %}
@@ -79,7 +81,7 @@ window.email = "{{user.email}}";
{{ donation.created.strftime("%d-%m-%Y") }}
- {{ "{:.2f}".format(donation.amount / 100) }}€
+ {{ currency.amount("{:.2f}".format(donation.amount / 100)) }}
{{ donation.project.name if donation.project else "Non précisé" }}
{% endfor %}
@@ -51,7 +51,7 @@
{% for donation in one_times(user) %}
{{ donation.created.strftime("%d-%m-%Y") }}
- {{ "{:.2f}".format(donation.amount / 100) }}€
+ {{ currency.amount("{:.2f}".format(donation.amount / 100)) }}
{{ donation.project.name if donation.project else "Non précisé" }}
{% endfor %}
diff --git a/templates/goal.html b/templates/goal.html
index b98c514..e433617 100644
--- a/templates/goal.html
+++ b/templates/goal.html
@@ -83,7 +83,7 @@
{% else %}
- Supported with ${{ currency.amount("{:.2f}".format(total_sum / 100)) }}
+ Supported with {{ currency.amount("{:.2f}".format(total_sum / 100)) }}
from {{ total_count }} supporters!
{% endif %}
diff --git a/templates/index.html b/templates/index.html
index 20882fd..e843931 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -15,6 +15,8 @@ const i18n = {
"Submitting...": "Submitting...",
"Donate": "Donate"
};
+// End of translation of index.js
+
const currency = "{{ _cfg("currency") }}";
{% if user %}