diff --git a/nummi/main/locale/fr/LC_MESSAGES/django.mo b/nummi/main/locale/fr/LC_MESSAGES/django.mo new file mode 100644 index 0000000..c34a049 Binary files /dev/null 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 new file mode 100644 index 0000000..59bcce2 --- /dev/null +++ b/nummi/main/locale/fr/LC_MESSAGES/django.po @@ -0,0 +1,106 @@ +# NUMMI. +# Copyright (C) 2022 +# This file is distributed under the same license as the nummi package. +# edpibu , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: 0.0.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-05-30 19:19+0200\n" +"PO-Revision-Date: 2022-05-30 19:00+0200\n" +"Last-Translator: edpibu \n" +"Language-Team: edpibu \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: main/templates/main/base.html:30 main/templates/main/category.html:22 +#: main/templates/main/index.html:16 main/templates/main/index.html:27 +#: main/templates/main/snapshot.html:87 +#: main/templates/main/transactions.html:13 +msgid "Transactions" +msgstr "" + +#: main/templates/main/base.html:35 +msgid "Add transaction" +msgstr "Nouvelle transaction" + +#: main/templates/main/base.html:40 +msgid "Add category" +msgstr "Nouvelle catégorie" + +#: main/templates/main/base.html:45 +msgid "Add snapshot" +msgstr "Nouveau relevé" + +#: main/templates/main/base.html:50 +msgid "Log Out" +msgstr "Se déconnecter" + +#: main/templates/main/index.html:21 +#, fuzzy +#| msgid "Add snapshot" +msgid "Snapshots" +msgstr "Nouveau relevé" + +#: main/templates/main/index.html:24 +#: main/templates/main/tag/transaction_table.html:6 +msgid "Date" +msgstr "Date" + +#: main/templates/main/index.html:25 +#: main/templates/main/tag/transaction_table.html:8 +msgid "Value" +msgstr "Valeur" + +#: main/templates/main/index.html:26 +msgid "Difference" +msgstr "Différence" + +#: main/templates/main/index.html:28 +msgid "Valid" +msgstr "Valide" + +#: main/templates/main/index.html:59 main/templates/main/snapshot.html:33 +msgid "Categories" +msgstr "Catégories" + +#: main/templates/main/login.html:12 +#, fuzzy +#| msgid "Log Out" +msgid "Log In" +msgstr "Se connecter" + +#: main/templates/main/tag/form_buttons.html:6 +msgid "Delete" +msgstr "Supprimer" + +#: main/templates/main/tag/form_buttons.html:13 +msgid "Save" +msgstr "Enregistrer" + +#: main/templates/main/tag/transaction_table.html:7 +msgid "Name" +msgstr "Nom" + +#: main/templates/main/tag/transaction_table.html:9 +msgid "Trader" +msgstr "Commerçant" + +#: main/templates/main/tag/transaction_table.html:10 +#, fuzzy +#| msgid "Add category" +msgid "Category" +msgstr "Catégorie" + +#: main/templates/main/tag/transaction_table.html:11 +msgid "Description" +msgstr "Description" + +#: main/templates/main/transaction.html:23 +msgid "Invoices" +msgstr "Facture" diff --git a/nummi/main/templates/main/base.html b/nummi/main/templates/main/base.html index 8dc22f0..4d79ecf 100644 --- a/nummi/main/templates/main/base.html +++ b/nummi/main/templates/main/base.html @@ -1,4 +1,5 @@ {% load static %} +{% load i18n %} @@ -26,27 +27,27 @@ - Transactions + {% translate "Transactions" %} - Add transaction + {% translate "Add transaction" %} - Add category + {% translate "Add category" %} - Add snapshot + {% translate "Add snapshot" %} - Log Out + {% translate "Log Out" %} {% endspaceless %} diff --git a/nummi/main/templates/main/category.html b/nummi/main/templates/main/category.html index f9ee58c..e6f4fef 100644 --- a/nummi/main/templates/main/category.html +++ b/nummi/main/templates/main/category.html @@ -1,6 +1,7 @@ {% extends "main/base.html" %} {% load static %} {% load main_extras %} +{% load i18n %} {% block link %} {{ block.super }} @@ -18,7 +19,7 @@ {% if transactions %} -

Transactions

+

{% translate "Transactions" %}

{% transaction_table transactions %} {% endif %} {% endblock %} diff --git a/nummi/main/templates/main/index.html b/nummi/main/templates/main/index.html index c608a41..b618b94 100644 --- a/nummi/main/templates/main/index.html +++ b/nummi/main/templates/main/index.html @@ -1,6 +1,7 @@ {% extends "main/base.html" %} {% load static %} {% load main_extras %} +{% load i18n %} {% block link %} {{ block.super }} @@ -12,19 +13,19 @@

Nummi

{% if transactions %} -

Transactions

+

{% translate "Transactions" %}

{% transaction_table transactions %} {% endif %} {% if snapshots %} -

Relevés

+

{% translate "Snapshots" %}

- Date - Valeur - Différence - Transactions - Valide + {% translate "Date" %} + {% translate "Value" %} + {% translate "Difference" %} + {% translate "Transactions" %} + {% translate "Valid" %}
{% for snap in snapshots %}
@@ -55,7 +56,7 @@ {% endif %} {% if categories %} -

Catégories

+

{% translate "Categories" %}

{% for cat in categories %} {{ cat }} diff --git a/nummi/main/templates/main/login.html b/nummi/main/templates/main/login.html index 16454cd..b76b4a6 100644 --- a/nummi/main/templates/main/login.html +++ b/nummi/main/templates/main/login.html @@ -1,5 +1,6 @@ {% extends "main/base.html" %} {% load static %} +{% load i18n %} {% block link %} {{ block.super }} @@ -8,7 +9,7 @@ {% block body %} -

Login

+

{% translate "Log In" %}

{% csrf_token %} diff --git a/nummi/main/templates/main/snapshot.html b/nummi/main/templates/main/snapshot.html index 4bfb42d..4458f25 100644 --- a/nummi/main/templates/main/snapshot.html +++ b/nummi/main/templates/main/snapshot.html @@ -1,6 +1,7 @@ {% extends "main/base.html" %} {% load static %} {% load main_extras %} +{% load i18n %} {% block link %} {{ block.super }} @@ -29,7 +30,7 @@
{% if categories %} -

Plot

+

{% translate "Categories" %}

{% for cat in categories %}
@@ -83,7 +84,7 @@ {% endif %} {% if snapshot.transactions %} -

Transactions ({{ sum|pmvalue }} / {{ snapshot.diff|pmvalue }})

+

{% translate "Transactions" %} ({{ sum|pmvalue }} / {{ snapshot.diff|pmvalue }})

{% transaction_table snapshot.transactions %} {% endif %} diff --git a/nummi/main/templates/main/tag/form_buttons.html b/nummi/main/templates/main/tag/form_buttons.html index 95aaefd..f682b39 100644 --- a/nummi/main/templates/main/tag/form_buttons.html +++ b/nummi/main/templates/main/tag/form_buttons.html @@ -1,13 +1,15 @@ +{% load i18n %}
{% if not adding %} + {% translate "Delete" as del %} - Delete + {{ del }} {% endif %} - +
diff --git a/nummi/main/templates/main/tag/transaction_table.html b/nummi/main/templates/main/tag/transaction_table.html index 9dd3cf5..d4a0622 100644 --- a/nummi/main/templates/main/tag/transaction_table.html +++ b/nummi/main/templates/main/tag/transaction_table.html @@ -1,13 +1,14 @@ {% load main_extras %} +{% load i18n %}
- Date - Nom - Valeur - Commerçant - Catégorie - Description + {% translate "Date" %} + {% translate "Name" %} + {% translate "Value" %} + {% translate "Trader" %} + {% translate "Category" %} + {% translate "Description" %}
{% for trans in transactions %}
diff --git a/nummi/main/templates/main/transaction.html b/nummi/main/templates/main/transaction.html index 1b648e0..f38859f 100644 --- a/nummi/main/templates/main/transaction.html +++ b/nummi/main/templates/main/transaction.html @@ -1,6 +1,7 @@ {% extends "main/base.html" %} {% load static %} {% load main_extras %} +{% load i18n %} {% block link %} {{ block.super }} @@ -19,7 +20,7 @@ {% endspaceless %} -

Invoices

+

{% translate "Invoices" %}

{% for inv in invoices %}
diff --git a/nummi/main/templates/main/transactions.html b/nummi/main/templates/main/transactions.html index 0b51203..3293675 100644 --- a/nummi/main/templates/main/transactions.html +++ b/nummi/main/templates/main/transactions.html @@ -1,6 +1,7 @@ {% extends "main/base.html" %} {% load static %} {% load main_extras %} +{% load i18n %} {% block link %} {{ block.super }} @@ -9,7 +10,7 @@ {% endblock %} {% block body %} -

Transactions

+

{% translate "Transactions" %}

{% transaction_table transactions %}