diff --git a/nummi/main/locale/fr/LC_MESSAGES/django.mo b/nummi/main/locale/fr/LC_MESSAGES/django.mo index 0f0cdd5..a8b4937 100644 Binary files a/nummi/main/locale/fr/LC_MESSAGES/django.mo and b/nummi/main/locale/fr/LC_MESSAGES/django.mo differ diff --git a/nummi/main/locale/fr/LC_MESSAGES/django.po b/nummi/main/locale/fr/LC_MESSAGES/django.po index b235ea0..6dd373c 100644 --- a/nummi/main/locale/fr/LC_MESSAGES/django.po +++ b/nummi/main/locale/fr/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-29 22:10+0100\n" +"POT-Creation-Date: 2022-12-31 09:49+0100\n" "PO-Revision-Date: 2022-12-21 17:30+0100\n" "Last-Translator: edpibu \n" "Language-Team: edpibu \n" @@ -17,128 +17,133 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" +#: .\main\forms.py:64 +msgid "Add transactions" +msgstr "Ajouter des transactions" + #: .\main\models.py:16 msgid "User" msgstr "Utilisateur" -#: .\main\models.py:35 .\main\models.py:59 .\main\models.py:67 -#: .\main\models.py:208 .\main\templates\main\base.html:39 +#: .\main\models.py:35 .\main\models.py:62 .\main\models.py:70 +#: .\main\models.py:225 .\main\templates\main\base.html:39 #: .\main\templates\main\index.html:50 #: .\main\templates\main\tag\transaction_table.html:11 msgid "Account" msgstr "Compte" -#: .\main\models.py:35 .\main\models.py:77 .\main\models.py:179 -#: .\main\models.py:247 .\main\templates\main\tag\transaction_table.html:7 +#: .\main\models.py:35 .\main\models.py:80 .\main\models.py:196 +#: .\main\models.py:270 .\main\templates\main\tag\transaction_table.html:7 #: .\main\templates\main\transaction_form.html:27 msgid "Name" msgstr "Nom" -#: .\main\models.py:37 .\main\models.py:79 +#: .\main\models.py:39 .\main\models.py:85 msgid "Icon" msgstr "Icône" -#: .\main\models.py:60 .\main\templates\main\index.html:16 +#: .\main\models.py:63 .\main\templates\main\index.html:16 msgid "Accounts" msgstr "Comptes" -#: .\main\models.py:77 .\main\models.py:97 .\main\models.py:198 +#: .\main\models.py:80 .\main\models.py:105 .\main\models.py:215 #: .\main\templates\main\base.html:49 #: .\main\templates\main\tag\transaction_table.html:10 msgid "Category" msgstr "Catégorie" -#: .\main\models.py:80 +#: .\main\models.py:88 msgid "Budget" msgstr "Budget" -#: .\main\models.py:98 .\main\templates\main\index.html:35 +#: .\main\models.py:106 .\main\templates\main\index.html:35 #: .\main\templates\main\snapshot_form.html:34 msgid "Categories" msgstr "Catégories" -#: .\main\models.py:107 +#: .\main\models.py:115 msgid "End date" msgstr "Date de fin" -#: .\main\models.py:109 +#: .\main\models.py:117 msgid "Start date" msgstr "Date de début" -#: .\main\models.py:112 +#: .\main\models.py:120 msgid "End value" msgstr "Valeur de fin" -#: .\main\models.py:115 +#: .\main\models.py:123 msgid "Start value" msgstr "Valeur de début" -#: .\main\models.py:121 .\main\templates\main\index.html:52 +#: .\main\models.py:129 .\main\templates\main\index.html:52 msgid "Difference" msgstr "Différence" -#: .\main\models.py:128 +#: .\main\models.py:136 msgid "Transaction difference" msgstr "Différence des transactions" -#: .\main\models.py:134 .\main\models.py:252 +#: .\main\models.py:142 .\main\models.py:275 msgid "File" msgstr "Fichier" -#: .\main\models.py:141 +#: .\main\models.py:149 +#, python-format msgid "%(date)s statement" msgstr "Relevé du %(date)s" -#: .\main\models.py:172 .\main\models.py:203 +#: .\main\models.py:189 .\main\models.py:220 msgid "Statement" msgstr "Relevé" -#: .\main\models.py:173 +#: .\main\models.py:190 msgid "Statements" msgstr "Relevés" -#: .\main\models.py:179 .\main\models.py:236 .\main\templates\main\base.html:44 +#: .\main\models.py:196 .\main\models.py:259 .\main\templates\main\base.html:44 msgid "Transaction" msgstr "Transaction" -#: .\main\models.py:181 .\main\templates\main\tag\transaction_table.html:12 +#: .\main\models.py:198 .\main\templates\main\tag\transaction_table.html:12 msgid "Description" msgstr "Description" -#: .\main\models.py:183 .\main\templates\main\index.html:51 +#: .\main\models.py:200 .\main\templates\main\index.html:51 #: .\main\templates\main\tag\transaction_table.html:8 msgid "Value" msgstr "Valeur" -#: .\main\models.py:185 .\main\templates\main\index.html:49 +#: .\main\models.py:202 .\main\templates\main\index.html:49 #: .\main\templates\main\tag\transaction_table.html:6 msgid "Date" msgstr "Date" -#: .\main\models.py:186 +#: .\main\models.py:203 msgid "Real date" msgstr "Date réelle" -#: .\main\models.py:188 .\main\templates\main\tag\transaction_table.html:9 +#: .\main\models.py:205 .\main\templates\main\tag\transaction_table.html:9 msgid "Trader" msgstr "Commerçant" -#: .\main\models.py:191 +#: .\main\models.py:208 msgid "Payment" msgstr "Paiement" -#: .\main\models.py:237 .\main\templates\main\category_form.html:25 +#: .\main\models.py:260 .\main\templates\main\category_form.html:25 #: .\main\templates\main\index.html:27 .\main\templates\main\index.html:53 #: .\main\templates\main\snapshot_form.html:75 #: .\main\templates\main\transactions.html:15 msgid "Transactions" msgstr "Transactions" -#: .\main\models.py:247 .\main\models.py:279 +#: .\main\models.py:270 .\main\models.py:302 msgid "Invoice" msgstr "Facture" -#: .\main\models.py:280 .\main\templates\main\transaction_form.html:23 +#: .\main\models.py:303 .\main\templates\main\transaction_form.html:23 msgid "Invoices" msgstr "Factures" diff --git a/nummi/main/migrations/0021_alter_account_options_alter_category_options_and_more.py b/nummi/main/migrations/0021_alter_account_options_alter_category_options_and_more.py new file mode 100644 index 0000000..4885c6f --- /dev/null +++ b/nummi/main/migrations/0021_alter_account_options_alter_category_options_and_more.py @@ -0,0 +1,297 @@ +# Generated by Django 4.1.4 on 2022-12-31 08:51 + +import datetime +import re + +import django.core.validators +import django.db.models.deletion +from django.conf import settings +from django.db import migrations, models + +import main.models + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ("main", "0020_alter_account_options_alter_snapshot_options_and_more"), + ] + + operations = [ + migrations.AlterModelOptions( + name="account", + options={ + "ordering": ["name"], + "verbose_name": "Account", + "verbose_name_plural": "Accounts", + }, + ), + migrations.AlterModelOptions( + name="category", + options={ + "ordering": ["name"], + "verbose_name": "Category", + "verbose_name_plural": "Categories", + }, + ), + migrations.AlterModelOptions( + name="invoice", + options={"verbose_name": "Invoice", "verbose_name_plural": "Invoices"}, + ), + migrations.AlterModelOptions( + name="snapshot", + options={ + "ordering": ["-date"], + "verbose_name": "Statement", + "verbose_name_plural": "Statements", + }, + ), + migrations.AlterField( + model_name="account", + name="icon", + field=models.CharField( + default="building-columns", + max_length=64, + validators=[ + django.core.validators.RegexValidator( + re.compile("^[-a-zA-Z0-9_]+\\Z"), + "Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.", + "invalid", + ) + ], + verbose_name="Icon", + ), + ), + migrations.AlterField( + model_name="account", + name="name", + field=models.CharField( + default="Account", max_length=64, verbose_name="Name" + ), + ), + migrations.AlterField( + model_name="account", + name="user", + field=models.ForeignKey( + editable=False, + on_delete=django.db.models.deletion.CASCADE, + to=settings.AUTH_USER_MODEL, + verbose_name="User", + ), + ), + migrations.AlterField( + model_name="category", + name="icon", + field=models.CharField( + default="folder", + max_length=64, + validators=[ + django.core.validators.RegexValidator( + re.compile("^[-a-zA-Z0-9_]+\\Z"), + "Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.", + "invalid", + ) + ], + verbose_name="Icon", + ), + ), + migrations.AlterField( + model_name="category", + name="name", + field=models.CharField( + default="Category", max_length=64, verbose_name="Name" + ), + ), + migrations.AlterField( + model_name="category", + name="user", + field=models.ForeignKey( + editable=False, + on_delete=django.db.models.deletion.CASCADE, + to=settings.AUTH_USER_MODEL, + verbose_name="User", + ), + ), + migrations.AlterField( + model_name="invoice", + name="file", + field=models.FileField( + max_length=128, + upload_to=main.models.invoice_path, + validators=[django.core.validators.FileExtensionValidator(["pdf"])], + verbose_name="File", + ), + ), + migrations.AlterField( + model_name="invoice", + name="name", + field=models.CharField( + default="Invoice", max_length=256, verbose_name="Name" + ), + ), + migrations.AlterField( + model_name="invoice", + name="user", + field=models.ForeignKey( + editable=False, + on_delete=django.db.models.deletion.CASCADE, + to=settings.AUTH_USER_MODEL, + verbose_name="User", + ), + ), + migrations.AlterField( + model_name="snapshot", + name="account", + field=models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + to="main.account", + verbose_name="Account", + ), + ), + migrations.AlterField( + model_name="snapshot", + name="date", + field=models.DateField( + default=datetime.date.today, verbose_name="End date" + ), + ), + migrations.AlterField( + model_name="snapshot", + name="diff", + field=models.DecimalField( + decimal_places=2, + default=0, + editable=False, + max_digits=12, + verbose_name="Difference", + ), + ), + migrations.AlterField( + model_name="snapshot", + name="file", + field=models.FileField( + blank=True, + default="", + max_length=256, + upload_to=main.models.snapshot_path, + validators=[django.core.validators.FileExtensionValidator(["pdf"])], + verbose_name="File", + ), + ), + migrations.AlterField( + model_name="snapshot", + name="start_date", + field=models.DateField( + default=datetime.date.today, verbose_name="Start date" + ), + ), + migrations.AlterField( + model_name="snapshot", + name="start_value", + field=models.DecimalField( + decimal_places=2, default=0, max_digits=12, verbose_name="Start value" + ), + ), + migrations.AlterField( + model_name="snapshot", + name="sum", + field=models.DecimalField( + decimal_places=2, + default=0, + editable=False, + max_digits=12, + verbose_name="Transaction difference", + ), + ), + migrations.AlterField( + model_name="snapshot", + name="user", + field=models.ForeignKey( + editable=False, + on_delete=django.db.models.deletion.CASCADE, + to=settings.AUTH_USER_MODEL, + verbose_name="User", + ), + ), + migrations.AlterField( + model_name="snapshot", + name="value", + field=models.DecimalField( + decimal_places=2, default=0, max_digits=12, verbose_name="End value" + ), + ), + migrations.AlterField( + model_name="transaction", + name="account", + field=models.ForeignKey( + editable=False, + on_delete=django.db.models.deletion.CASCADE, + to="main.account", + verbose_name="Account", + ), + ), + migrations.AlterField( + model_name="transaction", + name="category", + field=models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.SET_NULL, + to="main.category", + verbose_name="Category", + ), + ), + migrations.AlterField( + model_name="transaction", + name="name", + field=models.CharField( + default="Transaction", max_length=256, verbose_name="Name" + ), + ), + migrations.AlterField( + model_name="transaction", + name="payment", + field=models.CharField( + blank=True, max_length=128, null=True, verbose_name="Payment" + ), + ), + migrations.AlterField( + model_name="transaction", + name="real_date", + field=models.DateField(blank=True, null=True, verbose_name="Real date"), + ), + migrations.AlterField( + model_name="transaction", + name="snapshot", + field=models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + to="main.snapshot", + verbose_name="Statement", + ), + ), + migrations.AlterField( + model_name="transaction", + name="trader", + field=models.CharField( + blank=True, max_length=128, null=True, verbose_name="Trader" + ), + ), + migrations.AlterField( + model_name="transaction", + name="user", + field=models.ForeignKey( + editable=False, + on_delete=django.db.models.deletion.CASCADE, + to=settings.AUTH_USER_MODEL, + verbose_name="User", + ), + ), + migrations.AlterField( + model_name="transaction", + name="value", + field=models.DecimalField( + decimal_places=2, default=0, max_digits=12, verbose_name="Value" + ), + ), + ]