From 31618ace8f9b360632573a45b161fe326b0ce1df Mon Sep 17 00:00:00 2001 From: LRVT <21357789+l4rm4nd@users.noreply.github.com> Date: Wed, 30 Oct 2024 10:09:04 +0100 Subject: [PATCH] fix: french translation + variable quoting --- locale/fr/LC_MESSAGES/django.mo | Bin 8830 -> 8798 bytes locale/fr/LC_MESSAGES/django.po | 11 ++++++----- myapp/templates/dashboard.html | 8 ++++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/locale/fr/LC_MESSAGES/django.mo b/locale/fr/LC_MESSAGES/django.mo index 8538e2f988bb98a6a1223c61fba619306c252062..d3fe5e31cbb6487ed8bfa163f4f3ff9affe8795c 100644 GIT binary patch delta 575 zcmXZZ&nrYx6u|K#-t(B@(eV6wGvNs^Tm8%c?Y4Xc-}g_MQe{0pYW z#@50{`3KaLu#ni2^5c8BtIs{>-p)Pu-0!dwmgelp5s{xRk!o~&k#3A*8xCR`L*$68 zqnON&^<X$yDUi6H0_=Y;U5A4IhVJ=!|7`1^h)P`nJ3oMs6onoTw R`uCP4`JL^(Q!7)bl3%Oir_k7>tPwU>Kt~ffivz~jevec5gxWt87m467w&Emq<9uA4zsBnnv~dN)c!(o-id}f? z)*syb6+5Yaxw*&uzbJ}2SPH$EMgymD5N%w+P3*%P(-G+*c%+~cexSazi8TzNiTc6} z>UjYxcz|R0>7JXGh=+XEbpbobv)GGkIF4nU!AoqxH-{iZ@QwkjqfQp!R{aH|sGFHX zUF{O;MpjW@R>TyRklE!7(|C>geGPRZ-{?n!HR$Gon8budpp6z$2UtcOXalvuUUkcN h9`ad*WG-LKm8;&^izm{^BvabiZzLzR#IC=Q$S*P-L;nB( diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po index bb583a7..51cbabf 100644 --- a/locale/fr/LC_MESSAGES/django.po +++ b/locale/fr/LC_MESSAGES/django.po @@ -1,3 +1,4 @@ + # FR Translation for VoucherVault # PixPaws, 2024. # @@ -117,7 +118,7 @@ msgstr "Carte cadeau" #: myapp/templates/create-item.html:51 myapp/templates/edit-item.html:44 msgid "Voucher" -msgstr "Bon d'achat" +msgstr "Bon" #: myapp/templates/create-item.html:52 myapp/templates/edit-item.html:45 msgid "Coupon" @@ -261,7 +262,7 @@ msgstr "Mes coupons" #: myapp/templates/dashboard.html:163 msgid "My Vouchers" -msgstr "Mes bons d'achat" +msgstr "Mes bons" #: myapp/templates/dashboard.html:181 msgid "My Loyalty Cards" @@ -289,7 +290,7 @@ msgstr "Coupons" #: myapp/templates/dashboard.html:267 myapp/templates/inventory.html:26 msgid "Vouchers" -msgstr "Bons d'achat" +msgstr "Bons" #: myapp/templates/dashboard.html:268 myapp/templates/inventory.html:27 msgid "Gift Cards" @@ -3691,7 +3692,7 @@ msgid "loyaltycard" msgstr "Carte de fidélité" msgid "voucher" -msgstr "Bon d'achat" +msgstr "Bon" msgid "coupon" msgstr "Coupon" @@ -3700,4 +3701,4 @@ msgid "Value" msgstr "Valeur" msgid "Threshold" -msgstr "Seuil" \ No newline at end of file +msgstr "Seuil" diff --git a/myapp/templates/dashboard.html b/myapp/templates/dashboard.html index fa8cf01..e7d4b00 100644 --- a/myapp/templates/dashboard.html +++ b/myapp/templates/dashboard.html @@ -263,10 +263,10 @@
{% trans "Item Distribution" %} | {% trans "Total" show: false }, data: [ - { value: {{ coupons_count }}, name: '{% trans "Coupons" %}' }, - { value: {{ vouchers_count }}, name: '{% trans "Vouchers" %}' }, - { value: {{ giftcards_count }}, name: '{% trans "Gift Cards" %}' }, - { value: {{ loyaltycards_count }}, name: '{% trans "Loyalty Cards" %}' } + { value: {{ coupons_count }}, name: "{% trans "Coupons" %}" }, + { value: {{ vouchers_count }}, name: "{% trans "Vouchers" %}" }, + { value: {{ giftcards_count }}, name: "{% trans "Gift Cards" %}" }, + { value: {{ loyaltycards_count }}, name: "{% trans "Loyalty Cards" %}" } ], itemStyle: { color: function(params) {