diff --git a/nummi/main/locale/fr_FR/LC_MESSAGES/django.mo b/nummi/main/locale/fr_FR/LC_MESSAGES/django.mo index 1e6d0d3..4685846 100644 Binary files a/nummi/main/locale/fr_FR/LC_MESSAGES/django.mo and b/nummi/main/locale/fr_FR/LC_MESSAGES/django.mo differ diff --git a/nummi/main/locale/fr_FR/LC_MESSAGES/django.po b/nummi/main/locale/fr_FR/LC_MESSAGES/django.po index 9d1766a..6697c94 100644 --- a/nummi/main/locale/fr_FR/LC_MESSAGES/django.po +++ b/nummi/main/locale/fr_FR/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-04-22 15:16+0200\n" -"PO-Revision-Date: 2023-04-22 15:19+0200\n" +"POT-Creation-Date: 2023-04-23 08:02+0200\n" +"PO-Revision-Date: 2023-04-23 08:03+0200\n" "Last-Translator: Edgar P. Burkhart \n" "Language-Team: \n" "Language: fr_FR\n" @@ -33,7 +33,7 @@ msgstr "Accueil" msgid "Statements" msgstr "Relevés" -#: .\main\templates\main\base.html:44 .\main\templates\main\index.html:26 +#: .\main\templates\main\base.html:44 .\main\templates\main\index.html:24 msgid "Transactions" msgstr "Transactions" @@ -105,14 +105,22 @@ msgstr "Créer" msgid "Save" msgstr "Enregistrer" -#: .\main\templates\main\index.html:16 +#: .\main\templates\main\index.html:15 msgid "Accounts" msgstr "Comptes" -#: .\main\templates\main\index.html:30 +#: .\main\templates\main\index.html:20 +msgid "No account" +msgstr "Aucun compte" + +#: .\main\templates\main\index.html:28 msgid "Categories" msgstr "Catégories" +#: .\main\templates\main\index.html:34 +msgid "No category" +msgstr "Aucune catégorie" + #: .\main\templates\main\index.html:44 msgid "History" msgstr "Historique" diff --git a/nummi/main/templates/main/index.html b/nummi/main/templates/main/index.html index 5f194d8..cdadde8 100644 --- a/nummi/main/templates/main/index.html +++ b/nummi/main/templates/main/index.html @@ -12,16 +12,14 @@ type="text/css" /> {% endblock %} {% block body %} - {% if accounts %} -

{% translate "Accounts" %}

- {% spaceless %} -

- {% for acc in accounts %} - {{ acc.icon|remix }}{{ acc }} - {% endfor %} -

- {% endspaceless %} - {% endif %} +

{% translate "Accounts" %}

+

+ {% for acc in accounts %} + {{ acc.icon|remix }}{{ acc }} + {% empty %} + {% translate "No account" %} + {% endfor %} +

{% if transactions %}

{% translate "Transactions" %}

{% include "transaction/transaction_table.html" %} @@ -31,7 +29,9 @@ {% spaceless %}

{% for cat in categories %} - {{ cat.icon|remix }}{{ cat }} + {{ cat.icon|remix }}{{ cat }} + {% empty %} + {% translate "No category" %} {% endfor %}

{% endspaceless %} diff --git a/nummi/statement/templates/statement/statement_table.html b/nummi/statement/templates/statement/statement_table.html index e6bc79b..e4310e4 100644 --- a/nummi/statement/templates/statement/statement_table.html +++ b/nummi/statement/templates/statement/statement_table.html @@ -39,12 +39,12 @@ {% if snap.file %}{{ "attachment"|remix }}{% endif %} - {{ snap.date|date:"Y-m-d" }} + {{ snap.date|date:"Y-m-d" }} {% if not account %} {{ snap.account.icon|remix }} - {{ snap.account }} + {{ snap.account }} {% endif %} {{ snap.value|value }} diff --git a/nummi/transaction/locale/fr_FR/LC_MESSAGES/django.mo b/nummi/transaction/locale/fr_FR/LC_MESSAGES/django.mo index 3084334..b34179b 100644 Binary files a/nummi/transaction/locale/fr_FR/LC_MESSAGES/django.mo and b/nummi/transaction/locale/fr_FR/LC_MESSAGES/django.mo differ diff --git a/nummi/transaction/locale/fr_FR/LC_MESSAGES/django.po b/nummi/transaction/locale/fr_FR/LC_MESSAGES/django.po index 92fd5e2..fc73dd9 100644 --- a/nummi/transaction/locale/fr_FR/LC_MESSAGES/django.po +++ b/nummi/transaction/locale/fr_FR/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-04-22 15:16+0200\n" -"PO-Revision-Date: 2023-04-22 15:23+0200\n" +"POT-Creation-Date: 2023-04-23 08:02+0200\n" +"PO-Revision-Date: 2023-04-23 08:03+0200\n" "Last-Translator: Edgar P. Burkhart \n" "Language-Team: \n" "Language: fr_FR\n" @@ -69,6 +69,7 @@ msgid "Account" msgstr "Compte" #: .\transaction\models.py:83 +#: .\transaction\templates\transaction\transaction_archive_month.html:12 #: .\transaction\templates\transaction\transaction_list.html:4 #: .\transaction\templates\transaction\transaction_list.html:7 msgid "Transactions" @@ -107,6 +108,10 @@ msgstr "Supprimer" msgid "No invoice" msgstr "Aucune facture" +#: .\transaction\templates\transaction\transaction_archive_month.html:15 +msgid "Categories" +msgstr "Catégories" + #: .\transaction\templates\transaction\transaction_form.html:5 #: .\transaction\templates\transaction\transaction_table.html:5 msgid "Create transaction" diff --git a/nummi/transaction/models.py b/nummi/transaction/models.py index 7f20c7c..46cdd20 100644 --- a/nummi/transaction/models.py +++ b/nummi/transaction/models.py @@ -64,7 +64,7 @@ class Transaction(UserModel): return f"{self.name}" def get_absolute_url(self): - return reverse("transaction", kwargs={"pk": self.pk}) + return reverse("transaction", args=(self.pk,)) def get_delete_url(self): return reverse("del_transaction", args=(self.pk,)) diff --git a/nummi/transaction/templates/transaction/transaction_table.html b/nummi/transaction/templates/transaction/transaction_table.html index 27543d2..3af719e 100644 --- a/nummi/transaction/templates/transaction/transaction_table.html +++ b/nummi/transaction/templates/transaction/transaction_table.html @@ -43,7 +43,7 @@ {{ trans.date|date:"Y-m-d" }} - {{ trans.name }} + {{ trans.name }} {{ trans.value|pmvalue }} {{ trans.trader|default_if_none:"" }} @@ -51,7 +51,7 @@ {% if trans.category %} {{ trans.category.icon|remix }} - {{ trans.category }} + {{ trans.category }} {% else %} @@ -60,7 +60,7 @@ {% if not account %} {{ trans.account.icon|remix }} - {{ trans.account }} + {{ trans.account }} {% endif %}