From 178f82d36a03847cd874ce4b8766e88437220a6d Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Mon, 30 May 2022 19:21:40 +0200 Subject: [PATCH] Start translation to fr-fr --- nummi/main/locale/fr/LC_MESSAGES/django.mo | Bin 0 -> 1006 bytes nummi/main/locale/fr/LC_MESSAGES/django.po | 106 ++++++++++++++++++ nummi/main/templates/main/base.html | 11 +- nummi/main/templates/main/category.html | 3 +- nummi/main/templates/main/index.html | 17 +-- nummi/main/templates/main/login.html | 3 +- nummi/main/templates/main/snapshot.html | 5 +- .../main/templates/main/tag/form_buttons.html | 8 +- .../templates/main/tag/transaction_table.html | 13 ++- nummi/main/templates/main/transaction.html | 3 +- nummi/main/templates/main/transactions.html | 3 +- nummi/main/templatetags/main_extras.py | 2 +- nummi/nummi/urls.py | 6 +- 13 files changed, 149 insertions(+), 31 deletions(-) create mode 100644 nummi/main/locale/fr/LC_MESSAGES/django.mo create mode 100644 nummi/main/locale/fr/LC_MESSAGES/django.po 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 0000000000000000000000000000000000000000..c34a049527bdcf8ad03cbafe5de1b075a76dc307 GIT binary patch literal 1006 zcma))ziSjh6vs!6zs{eiU}G_*B6IGY2ytUVG?zdizevvXliioi$llB{GkfIz04;3Q z&O)$|1F_M{_C#z2D+>{uG^O-mMX5QQR?w4~DPZ;bh{1W^r{9>3N zzyR9?PlAJ*55O~sAAt?N!4u%y`u%(G7~+rMQSdVu^1s#G1H-=W;9>Ab z&7a^b{1^N@)@Kim>vq8lh*L1s8Gzxu``~f#VZHvi<})zVeF=uX-+*}7I}Bm}hnkn1rKKg3ulM@;ZA~uZwVIe?oSK7gu7<9)08LDQ)cX- z3Y?aO+cCZhyp`I?#4DrO+&D{-V;xLchjOam603?TrK7gD$&yZpE$Y5e338WA##c+v zR%DOZhU^pTTA7k%n=)5v7)xSn*4(4Si^WuIl65E-^Qaj$Ta9%pjP+vKWhxbS%FKzb ziFspfRjgBAg-j8;iFrF}w?%YAT#tC`W*kLVqjnTEmZb9n1+~kiH#X*!7HX^Hw=(5t zDb1uU6j@8nZ99Wxos}{p(IwgYzf`ocytq8S-*u}QHRg==q)~TJpfOLo{#ubsrKfnZ zBdsGpeYd+HCin9~f4Dd?uM?9hoyB}|OZmoHURs%p1!H?I=DMgtH{G7%5#u-dTd@>%9QgK@to=5n9&QV{a9=YpwhD6k5%>H literal 0 HcmV?d00001 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 %}