Start translation to fr-fr
This commit is contained in:
parent
0131146c55
commit
178f82d36a
13 changed files with 149 additions and 31 deletions
BIN
nummi/main/locale/fr/LC_MESSAGES/django.mo
Normal file
BIN
nummi/main/locale/fr/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
106
nummi/main/locale/fr/LC_MESSAGES/django.po
Normal file
106
nummi/main/locale/fr/LC_MESSAGES/django.po
Normal file
|
@ -0,0 +1,106 @@
|
||||||
|
# NUMMI.
|
||||||
|
# Copyright (C) 2022
|
||||||
|
# This file is distributed under the same license as the nummi package.
|
||||||
|
# edpibu <git@edgarpierre.fr>, 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 <git@edgarpierre.fr>\n"
|
||||||
|
"Language-Team: edpibu <git@edgarpierre.fr>\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"
|
|
@ -1,4 +1,5 @@
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
{% load i18n %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="fr">
|
<html lang="fr">
|
||||||
<head>
|
<head>
|
||||||
|
@ -26,27 +27,27 @@
|
||||||
<a href="{% url 'transactions' %}"
|
<a href="{% url 'transactions' %}"
|
||||||
class="{% if request.resolver_match.url_name == 'transactions' %}cur{% endif %}"
|
class="{% if request.resolver_match.url_name == 'transactions' %}cur{% endif %}"
|
||||||
accesskey="t">
|
accesskey="t">
|
||||||
Transactions
|
{% translate "Transactions" %}
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url 'transaction' %}"
|
<a href="{% url 'transaction' %}"
|
||||||
class="{% if request.resolver_match.url_name == 'transaction' %}cur{% endif %}"
|
class="{% if request.resolver_match.url_name == 'transaction' %}cur{% endif %}"
|
||||||
accesskey="n">
|
accesskey="n">
|
||||||
Add transaction
|
{% translate "Add transaction" %}
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url 'category' %}"
|
<a href="{% url 'category' %}"
|
||||||
class="{% if request.resolver_match.url_name == 'category' %}cur{% endif %}"
|
class="{% if request.resolver_match.url_name == 'category' %}cur{% endif %}"
|
||||||
accesskey="c">
|
accesskey="c">
|
||||||
Add category
|
{% translate "Add category" %}
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url 'snapshot' %}"
|
<a href="{% url 'snapshot' %}"
|
||||||
class="{% if request.resolver_match.url_name == 'snapshot' %}cur{% endif %}"
|
class="{% if request.resolver_match.url_name == 'snapshot' %}cur{% endif %}"
|
||||||
accesskey="s">
|
accesskey="s">
|
||||||
Add snapshot
|
{% translate "Add snapshot" %}
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url 'logout' %}"
|
<a href="{% url 'logout' %}"
|
||||||
class="logout"
|
class="logout"
|
||||||
accesskey="l">
|
accesskey="l">
|
||||||
Log Out
|
{% translate "Log Out" %}
|
||||||
</a>
|
</a>
|
||||||
</nav>
|
</nav>
|
||||||
{% endspaceless %}
|
{% endspaceless %}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{% extends "main/base.html" %}
|
{% extends "main/base.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load main_extras %}
|
{% load main_extras %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
{% block link %}
|
{% block link %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
@ -18,7 +19,7 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% if transactions %}
|
{% if transactions %}
|
||||||
<h2>Transactions</h2>
|
<h2>{% translate "Transactions" %}</h2>
|
||||||
{% transaction_table transactions %}
|
{% transaction_table transactions %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{% extends "main/base.html" %}
|
{% extends "main/base.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load main_extras %}
|
{% load main_extras %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
{% block link %}
|
{% block link %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
@ -12,19 +13,19 @@
|
||||||
<h1><img src="{% static 'main/svg/logo.svg' %}" alt="" />Nummi</h1>
|
<h1><img src="{% static 'main/svg/logo.svg' %}" alt="" />Nummi</h1>
|
||||||
|
|
||||||
{% if transactions %}
|
{% if transactions %}
|
||||||
<h2>Transactions</h2>
|
<h2>{% translate "Transactions" %}</h2>
|
||||||
{% transaction_table transactions %}
|
{% transaction_table transactions %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if snapshots %}
|
{% if snapshots %}
|
||||||
<h2>Relevés</h2>
|
<h2>{% translate "Snapshots" %}</h2>
|
||||||
<div id="snapshots" class="table col5">
|
<div id="snapshots" class="table col5">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<strong class="date center">Date</strong>
|
<strong class="date center">{% translate "Date" %}</strong>
|
||||||
<strong class="value center">Valeur</strong>
|
<strong class="value center">{% translate "Value" %}</strong>
|
||||||
<strong class="diff center">Différence</strong>
|
<strong class="diff center">{% translate "Difference" %}</strong>
|
||||||
<strong class="diff center">Transactions</strong>
|
<strong class="diff center">{% translate "Transactions" %}</strong>
|
||||||
<strong class="diff center">Valide</strong>
|
<strong class="diff center">{% translate "Valid" %}</strong>
|
||||||
</div>
|
</div>
|
||||||
{% for snap in snapshots %}
|
{% for snap in snapshots %}
|
||||||
<div class="snapshot {% cycle 'w' 'g' %}">
|
<div class="snapshot {% cycle 'w' 'g' %}">
|
||||||
|
@ -55,7 +56,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if categories %}
|
{% if categories %}
|
||||||
<h2>Catégories</h2>
|
<h2>{% translate "Categories" %}</h2>
|
||||||
<div id="categories">
|
<div id="categories">
|
||||||
{% for cat in categories %}
|
{% for cat in categories %}
|
||||||
<a href="{% url 'category' cat.id %}"><i class="fa fa-{{ cat.icon }}"></i>{{ cat }}</a>
|
<a href="{% url 'category' cat.id %}"><i class="fa fa-{{ cat.icon }}"></i>{{ cat }}</a>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{% extends "main/base.html" %}
|
{% extends "main/base.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
{% block link %}
|
{% block link %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
@ -8,7 +9,7 @@
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
|
||||||
<h1>Login</h1>
|
<h1>{% translate "Log In" %}</h1>
|
||||||
|
|
||||||
<form action="{% url 'login' %}" method="post">
|
<form action="{% url 'login' %}" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{% extends "main/base.html" %}
|
{% extends "main/base.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load main_extras %}
|
{% load main_extras %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
{% block link %}
|
{% block link %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
@ -29,7 +30,7 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% if categories %}
|
{% if categories %}
|
||||||
<h2>Plot</h2>
|
<h2>{% translate "Categories" %}</h2>
|
||||||
<div class="chart">
|
<div class="chart">
|
||||||
{% for cat in categories %}
|
{% for cat in categories %}
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
@ -83,7 +84,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if snapshot.transactions %}
|
{% if snapshot.transactions %}
|
||||||
<h2>Transactions ({{ sum|pmvalue }} / {{ snapshot.diff|pmvalue }})</h2>
|
<h2>{% translate "Transactions" %} ({{ sum|pmvalue }} / {{ snapshot.diff|pmvalue }})</h2>
|
||||||
|
|
||||||
{% transaction_table snapshot.transactions %}
|
{% transaction_table snapshot.transactions %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
|
{% load i18n %}
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
{% if not adding %}
|
{% if not adding %}
|
||||||
|
{% translate "Delete" as del %}
|
||||||
<a
|
<a
|
||||||
class="btn del"
|
class="btn del"
|
||||||
onclick="return confirm('Supprimer <{{ instance.name}}> ?')"
|
onclick="return confirm('{{ del }} <{{ instance.name}}> ?')"
|
||||||
href="{% url del_url instance.id %}">
|
href="{% url del_url instance.id %}">
|
||||||
Delete
|
{{ del }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<input type="reset" />
|
<input type="reset" />
|
||||||
<input type="submit" value="Save {{ name }}" />
|
<input type="submit" value="{% translate 'Save' %} {{ name }}" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
{% load main_extras %}
|
{% load main_extras %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
<div id="transactions" class="table col6">
|
<div id="transactions" class="table col6">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<strong class="date center">Date</strong>
|
<strong class="date center">{% translate "Date" %}</strong>
|
||||||
<strong class="name">Nom</strong>
|
<strong class="name">{% translate "Name" %}</strong>
|
||||||
<strong class="value center">Valeur</strong>
|
<strong class="value center">{% translate "Value" %}</strong>
|
||||||
<strong class="trader center">Commerçant</strong>
|
<strong class="trader center">{% translate "Trader" %}</strong>
|
||||||
<strong class="category center">Catégorie</strong>
|
<strong class="category center">{% translate "Category" %}</strong>
|
||||||
<strong class="description">Description</strong>
|
<strong class="description">{% translate "Description" %}</strong>
|
||||||
</div>
|
</div>
|
||||||
{% for trans in transactions %}
|
{% for trans in transactions %}
|
||||||
<div class="transaction {% cycle 'w' 'g' %}">
|
<div class="transaction {% cycle 'w' 'g' %}">
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{% extends "main/base.html" %}
|
{% extends "main/base.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load main_extras %}
|
{% load main_extras %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
{% block link %}
|
{% block link %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
@ -19,7 +20,7 @@
|
||||||
</form>
|
</form>
|
||||||
{% endspaceless %}
|
{% endspaceless %}
|
||||||
|
|
||||||
<h2>Invoices</h2>
|
<h2>{% translate "Invoices" %}</h2>
|
||||||
<div id="invoices">
|
<div id="invoices">
|
||||||
{% for inv in invoices %}
|
{% for inv in invoices %}
|
||||||
<div class="invoice">
|
<div class="invoice">
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{% extends "main/base.html" %}
|
{% extends "main/base.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load main_extras %}
|
{% load main_extras %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
{% block link %}
|
{% block link %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
@ -9,7 +10,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<h1>Transactions</h1>
|
<h1>{% translate "Transactions" %}</h1>
|
||||||
{% transaction_table transactions %}
|
{% transaction_table transactions %}
|
||||||
|
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
|
|
|
@ -40,5 +40,5 @@ def form_buttons(instance):
|
||||||
"instance": instance,
|
"instance": instance,
|
||||||
"adding": instance._state.adding,
|
"adding": instance._state.adding,
|
||||||
"name": instance.__class__.__name__,
|
"name": instance.__class__.__name__,
|
||||||
"del_url": f"del_{instance.__class__.__name__.lower()}"
|
"del_url": f"del_{instance.__class__.__name__.lower()}",
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,10 +13,12 @@ Including another URLconf
|
||||||
1. Import the include() function: from django.urls import include, path
|
1. Import the include() function: from django.urls import include, path
|
||||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||||
"""
|
"""
|
||||||
|
from django.conf.urls.i18n import i18n_patterns
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import include, path
|
from django.urls import include, path
|
||||||
|
from django.views.generic.base import RedirectView
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = i18n_patterns(
|
||||||
path("", include("main.urls")),
|
path("", include("main.urls")),
|
||||||
path("admin/", admin.site.urls),
|
path("admin/", admin.site.urls),
|
||||||
]
|
)
|
||||||
|
|
Loading…
Reference in a new issue