Update translations & formatting

This commit is contained in:
Gabriel Augendre 2023-03-27 16:57:38 +02:00
parent edc0cb5f0a
commit 3de1c13995
3 changed files with 133 additions and 124 deletions

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-04-27 22:58+0200\n"
"POT-Creation-Date: 2023-03-27 16:54+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,96 +18,97 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: purchase/admin.py:18
#: purchase/admin.py:19
msgid "unit price"
msgstr ""
#: purchase/admin.py:22
#: purchase/admin.py:23
msgid "sold"
msgstr ""
#: purchase/admin.py:26 purchase/admin.py:39
#: purchase/admin.py:27 purchase/admin.py:40
msgid "turnover"
msgstr ""
#: purchase/admin.py:53 purchase/admin.py:70
#: purchase/admin.py:54 purchase/admin.py:71
msgid "price"
msgstr ""
#: purchase/forms.py:23
#: purchase/forms.py:27
msgid "Save"
msgstr ""
#: purchase/models.py:13
#: purchase/models.py:17
msgid "created at"
msgstr ""
#: purchase/models.py:14
#: purchase/models.py:18
msgid "updated at"
msgstr ""
#: purchase/models.py:42 purchase/models.py:83
#: purchase/models.py:46 purchase/models.py:93
msgid "name"
msgstr ""
#: purchase/models.py:47 purchase/models.py:167
#: purchase/models.py:51 purchase/models.py:193
msgid "payment method"
msgstr ""
#: purchase/models.py:48
#: purchase/models.py:52
msgid "payment methods"
msgstr ""
#: purchase/models.py:84
#: purchase/models.py:94
msgid "image"
msgstr ""
#: purchase/models.py:86 purchase/models.py:203
#: purchase/models.py:96 purchase/models.py:229
msgid "unit price (cents)"
msgstr ""
#: purchase/models.py:86
msgid "unit price in cents"
#: purchase/models.py:98
msgid ""
"Unit price in cents. Use zero to denote that the product has no fixed price."
msgstr ""
#: purchase/models.py:89
#: purchase/models.py:103
msgid "display order"
msgstr ""
#: purchase/models.py:96 purchase/models.py:193
#: purchase/models.py:110 purchase/models.py:219
msgid "product"
msgstr ""
#: purchase/models.py:97
#: purchase/models.py:111
msgid "products"
msgstr ""
#: purchase/models.py:173 purchase/models.py:199
#: purchase/models.py:199 purchase/models.py:225
msgid "basket"
msgstr ""
#: purchase/models.py:174
#: purchase/models.py:200
msgid "baskets"
msgstr ""
#: purchase/models.py:177
#: purchase/models.py:203
#, python-format
msgid "Basket #%(id)s"
msgstr ""
#: purchase/models.py:201
#: purchase/models.py:227
msgid "quantity"
msgstr ""
#: purchase/models.py:204
#: purchase/models.py:230
msgid "product's unit price in cents at the time of purchase"
msgstr ""
#: purchase/models.py:210
#: purchase/models.py:236
msgid "basket item"
msgstr ""
#: purchase/models.py:211
#: purchase/models.py:237
msgid "basket items"
msgstr ""
@ -116,16 +117,17 @@ msgstr ""
msgid "Are you sure you want to delete \"%(basket)s\"?"
msgstr ""
#: purchase/templates/purchase/basket_form.html:11
#: purchase/templates/purchase/basket_form.html:14
msgid "Missing payment method."
msgstr ""
#: purchase/templates/purchase/basket_form.html:14
#: purchase/templates/purchase/basket_form.html:17
#: purchase/templates/purchase/basket_form.html:52
msgid "New basket"
msgstr ""
#: purchase/templates/purchase/basket_form.html:18
msgid "New"
#: purchase/templates/purchase/basket_form.html:36
msgid "Add product"
msgstr ""
#: purchase/templates/purchase/basket_list.html:5
@ -144,45 +146,45 @@ msgid_plural "%(counter)s items"
msgstr[0] ""
msgstr[1] ""
#: purchase/templates/purchase/reports.html:11
#: purchase/templates/purchase/reports.html:9
msgid "Reports"
msgstr ""
#: purchase/templates/purchase/reports.html:12
#: purchase/templates/purchase/reports.html:10
msgid "General"
msgstr ""
#: purchase/templates/purchase/reports.html:14
#: purchase/templates/purchase/reports.html:12
msgid "Total turnover:"
msgstr ""
#: purchase/templates/purchase/reports.html:15
#: purchase/templates/purchase/reports.html:13
msgid "Average basket:"
msgstr ""
#: purchase/templates/purchase/reports.html:18
#: purchase/templates/purchase/reports.html:16
msgid "By day"
msgstr ""
#: purchase/templates/purchase/reports.html:19
#: purchase/templates/purchase/reports.html:17
#: purchase/templates/purchase/snippets/report_payment_methods.html:8
#: purchase/templates/purchase/snippets/report_products.html:8
msgid "Turnover"
msgstr ""
#: purchase/templates/purchase/reports.html:25
#: purchase/templates/purchase/reports.html:23
msgid "Average basket"
msgstr ""
#: purchase/templates/purchase/reports.html:34
#: purchase/templates/purchase/reports.html:32
msgid "Products"
msgstr ""
#: purchase/templates/purchase/reports.html:40
#: purchase/templates/purchase/reports.html:36
msgid "Turnover by payment method"
msgstr ""
#: purchase/templates/purchase/reports.html:43
#: purchase/templates/purchase/reports.html:39
msgid "Baskets without payment method"
msgstr ""
@ -207,42 +209,42 @@ msgid "Product"
msgstr ""
#: purchase/templates/purchase/snippets/report_products.html:7
#: purchase/views/reports.py:79 purchase/views/reports.py:93
#: purchase/views/reports.py:102 purchase/views/reports.py:116
msgid "# sold"
msgstr ""
#: purchase/views/basket.py:15
#: purchase/views/basket.py:33
msgid "Successfully created basket."
msgstr ""
#: purchase/views/basket.py:30
#: purchase/views/basket.py:70
msgid "Successfully updated basket."
msgstr ""
#: purchase/views/basket.py:45
#: purchase/views/basket.py:116
msgid "Basket successfully deleted."
msgstr ""
#: purchase/views/reports.py:29
#: purchase/views/reports.py:64
msgid "No sale to report"
msgstr ""
#: purchase/views/reports.py:70
#: purchase/views/reports.py:93
msgid "Sales by product"
msgstr ""
#: purchase/views/reports.py:85 purchase/views/reports.py:100
#: purchase/views/reports.py:108 purchase/views/reports.py:123
msgid "Turnover by product"
msgstr ""
#: purchase/views/reports.py:122
#: purchase/views/reports.py:147
msgid "Sales by hour"
msgstr ""
#: purchase/views/reports.py:133
#: purchase/views/reports.py:158
msgid "Basket count by hour"
msgstr ""
#: purchase/views/reports.py:141
#: purchase/views/reports.py:166
msgid "Turnover by hour"
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-04-27 22:58+0200\n"
"POT-Creation-Date: 2023-03-27 16:54+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -15,96 +15,97 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: purchase/admin.py:18
#: purchase/admin.py:19
msgid "unit price"
msgstr "prix unitaire"
#: purchase/admin.py:22
#: purchase/admin.py:23
msgid "sold"
msgstr "vendu"
#: purchase/admin.py:26 purchase/admin.py:39
#: purchase/admin.py:27 purchase/admin.py:40
msgid "turnover"
msgstr "chiffre d'affaires"
#: purchase/admin.py:53 purchase/admin.py:70
#: purchase/admin.py:54 purchase/admin.py:71
msgid "price"
msgstr "prix"
#: purchase/forms.py:23
#: purchase/forms.py:27
msgid "Save"
msgstr "Enregistrer"
#: purchase/models.py:13
#: purchase/models.py:17
msgid "created at"
msgstr "créé à"
#: purchase/models.py:14
#: purchase/models.py:18
msgid "updated at"
msgstr "mis à jour à"
#: purchase/models.py:42 purchase/models.py:83
#: purchase/models.py:46 purchase/models.py:93
msgid "name"
msgstr "nom"
#: purchase/models.py:47 purchase/models.py:167
#: purchase/models.py:51 purchase/models.py:193
msgid "payment method"
msgstr "moyen de paiement"
#: purchase/models.py:48
#: purchase/models.py:52
msgid "payment methods"
msgstr "moyens de paiement"
#: purchase/models.py:84
#: purchase/models.py:94
msgid "image"
msgstr "image"
#: purchase/models.py:86 purchase/models.py:203
#: purchase/models.py:96 purchase/models.py:229
msgid "unit price (cents)"
msgstr "prix unitaire (centimes)"
#: purchase/models.py:86
msgid "unit price in cents"
msgstr "prix unitaire en centimes"
#: purchase/models.py:98
msgid ""
"Unit price in cents. Use zero to denote that the product has no fixed price."
msgstr "Prix unitaire en centimes. Utiliser zéro pour indiquer que le produit n'a pas de prix fixe."
#: purchase/models.py:89
#: purchase/models.py:103
msgid "display order"
msgstr "ordre d'affichage"
#: purchase/models.py:96 purchase/models.py:193
#: purchase/models.py:110 purchase/models.py:219
msgid "product"
msgstr "produit"
#: purchase/models.py:97
#: purchase/models.py:111
msgid "products"
msgstr "produits"
#: purchase/models.py:173 purchase/models.py:199
#: purchase/models.py:199 purchase/models.py:225
msgid "basket"
msgstr "panier"
#: purchase/models.py:174
#: purchase/models.py:200
msgid "baskets"
msgstr "paniers"
#: purchase/models.py:177
#: purchase/models.py:203
#, python-format
msgid "Basket #%(id)s"
msgstr "Panier n°%(id)s"
#: purchase/models.py:201
#: purchase/models.py:227
msgid "quantity"
msgstr "quantité"
#: purchase/models.py:204
#: purchase/models.py:230
msgid "product's unit price in cents at the time of purchase"
msgstr "prix unitaire du produit en centimes au moment de l'achat"
#: purchase/models.py:210
#: purchase/models.py:236
msgid "basket item"
msgstr "article de panier"
#: purchase/models.py:211
#: purchase/models.py:237
msgid "basket items"
msgstr "articles de panier"
@ -113,17 +114,18 @@ msgstr "articles de panier"
msgid "Are you sure you want to delete \"%(basket)s\"?"
msgstr "Êtes-vous sûr de vouloir supprimer \"%(basket)s\" ?"
#: purchase/templates/purchase/basket_form.html:11
#: purchase/templates/purchase/basket_form.html:14
msgid "Missing payment method."
msgstr "Moyen de paiement manquant."
#: purchase/templates/purchase/basket_form.html:14
#: purchase/templates/purchase/basket_form.html:17
#: purchase/templates/purchase/basket_form.html:52
msgid "New basket"
msgstr "Nouveau panier"
#: purchase/templates/purchase/basket_form.html:18
msgid "New"
msgstr "Nouveau"
#: purchase/templates/purchase/basket_form.html:36
msgid "Add product"
msgstr "Ajouter un produit"
#: purchase/templates/purchase/basket_list.html:5
msgid "Baskets"
@ -141,45 +143,45 @@ msgid_plural "%(counter)s items"
msgstr[0] "1 article"
msgstr[1] "%(counter)s articles"
#: purchase/templates/purchase/reports.html:11
#: purchase/templates/purchase/reports.html:9
msgid "Reports"
msgstr "Rapports"
#: purchase/templates/purchase/reports.html:12
#: purchase/templates/purchase/reports.html:10
msgid "General"
msgstr "Général"
#: purchase/templates/purchase/reports.html:14
#: purchase/templates/purchase/reports.html:12
msgid "Total turnover:"
msgstr "Chiffre d'affaires total :"
#: purchase/templates/purchase/reports.html:15
#: purchase/templates/purchase/reports.html:13
msgid "Average basket:"
msgstr "Panier moyen :"
#: purchase/templates/purchase/reports.html:18
#: purchase/templates/purchase/reports.html:16
msgid "By day"
msgstr "Par jour"
#: purchase/templates/purchase/reports.html:19
#: purchase/templates/purchase/reports.html:17
#: purchase/templates/purchase/snippets/report_payment_methods.html:8
#: purchase/templates/purchase/snippets/report_products.html:8
msgid "Turnover"
msgstr "Chiffre d'affaires"
#: purchase/templates/purchase/reports.html:25
#: purchase/templates/purchase/reports.html:23
msgid "Average basket"
msgstr "Panier moyen"
#: purchase/templates/purchase/reports.html:34
#: purchase/templates/purchase/reports.html:32
msgid "Products"
msgstr "Produits"
#: purchase/templates/purchase/reports.html:40
#: purchase/templates/purchase/reports.html:36
msgid "Turnover by payment method"
msgstr "Chiffre d'affaires par moyen de paiement"
#: purchase/templates/purchase/reports.html:43
#: purchase/templates/purchase/reports.html:39
msgid "Baskets without payment method"
msgstr "Paniers sans moyen de paiement"
@ -204,45 +206,42 @@ msgid "Product"
msgstr "Produit"
#: purchase/templates/purchase/snippets/report_products.html:7
#: purchase/views/reports.py:79 purchase/views/reports.py:93
#: purchase/views/reports.py:102 purchase/views/reports.py:116
msgid "# sold"
msgstr "Nb. vendus"
#: purchase/views/basket.py:15
#: purchase/views/basket.py:33
msgid "Successfully created basket."
msgstr "Panier correctement créé."
#: purchase/views/basket.py:30
#: purchase/views/basket.py:70
msgid "Successfully updated basket."
msgstr "Panier correctement modifié."
#: purchase/views/basket.py:45
#: purchase/views/basket.py:116
msgid "Basket successfully deleted."
msgstr "Panier correctement supprimé."
#: purchase/views/reports.py:29
#: purchase/views/reports.py:64
msgid "No sale to report"
msgstr "Aucune vente à afficher"
#: purchase/views/reports.py:70
#: purchase/views/reports.py:93
msgid "Sales by product"
msgstr "Ventes par produit"
#: purchase/views/reports.py:85 purchase/views/reports.py:100
#: purchase/views/reports.py:108 purchase/views/reports.py:123
msgid "Turnover by product"
msgstr "Chiffre d'affaires par produit"
#: purchase/views/reports.py:122
#: purchase/views/reports.py:147
msgid "Sales by hour"
msgstr "Ventes par heure"
#: purchase/views/reports.py:133
#: purchase/views/reports.py:158
msgid "Basket count by hour"
msgstr "Nombre de paniers par heure"
#: purchase/views/reports.py:141
#: purchase/views/reports.py:166
msgid "Turnover by hour"
msgstr "Chiffre d'affaires par heure"
#~ msgid "Basket ID"
#~ msgstr "Id de panier"

View file

@ -17,6 +17,8 @@
<h1>{% translate "New basket" %}</h1>
{% endif %}
{% crispy form %}
<div class="row">
<div class="col">
<form
hx-get="{% url "purchase:additional_unpriced_product" %}"
hx-target="#products"
@ -37,6 +39,8 @@
</button>
</div>
</form>
</div>
</div>
{% for item in basket.items.all %}
{% if item.product.unit_price_cents == 0 %}
<input
@ -48,9 +52,13 @@
>
{% endif %}
{% endfor %}
<div class="row mt-4">
<div class="col">
{% if basket %}
<a href="{% url "purchase:new" %}" class="btn btn-secondary">{% translate "New" %}</a>
<a href="{% url "purchase:new" %}" class="btn btn-secondary">{% translate "New basket" %}</a>
{% endif %}
</div>
</div>
{% endblock %}
{% block extrascript %}