Change create titles (again)

This commit is contained in:
Edgar P. Burkhart 2023-04-20 12:14:25 +02:00
parent e87893ae0c
commit d7d9a44894
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
9 changed files with 97 additions and 37 deletions

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 0.0.1\n" "Project-Id-Version: 0.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-04-20 12:05+0200\n" "POT-Creation-Date: 2023-04-20 12:13+0200\n"
"PO-Revision-Date: 2022-12-21 17:30+0100\n" "PO-Revision-Date: 2022-12-21 17:30+0100\n"
"Last-Translator: edpibu <git@edgarpierre.fr>\n" "Last-Translator: edpibu <git@edgarpierre.fr>\n"
"Language-Team: edpibu <git@edgarpierre.fr>\n" "Language-Team: edpibu <git@edgarpierre.fr>\n"
@ -66,7 +66,7 @@ msgstr "Catégorie"
msgid "Budget" msgid "Budget"
msgstr "Budget" msgstr "Budget"
#: .\models.py:121 .\templates\main\form\snapshot.html:10 #: .\models.py:121 .\templates\main\form\snapshot.html:16
#: .\templates\main\index.html:32 #: .\templates\main\index.html:32
msgid "Categories" msgid "Categories"
msgstr "Catégories" msgstr "Catégories"
@ -110,7 +110,7 @@ msgstr "Relevé du %(date)s"
msgid "Statement" msgid "Statement"
msgstr "Relevé" msgstr "Relevé"
#: .\models.py:204 .\templates\main\form\account.html:7 #: .\models.py:204 .\templates\main\form\account.html:13
#: .\templates\main\list\snapshot.html:6 .\templates\main\list\snapshot.html:20 #: .\templates\main\list\snapshot.html:6 .\templates\main\list\snapshot.html:20
msgid "Statements" msgid "Statements"
msgstr "Relevés" msgstr "Relevés"
@ -146,8 +146,8 @@ msgid "Payment"
msgstr "Paiement" msgstr "Paiement"
#: .\models.py:277 .\templates\main\base.html:50 #: .\models.py:277 .\templates\main\base.html:50
#: .\templates\main\form\account.html:11 .\templates\main\form\category.html:7 #: .\templates\main\form\account.html:17 .\templates\main\form\category.html:13
#: .\templates\main\form\snapshot.html:14 .\templates\main\index.html:26 #: .\templates\main\form\snapshot.html:20 .\templates\main\index.html:26
#: .\templates\main\list\transaction.html:6 #: .\templates\main\list\transaction.html:6
#: .\templates\main\list\transaction.html:23 #: .\templates\main\list\transaction.html:23
#: .\templates\main\table\snapshot.html:28 #: .\templates\main\table\snapshot.html:28
@ -158,7 +158,7 @@ msgstr "Transactions"
msgid "Invoice" msgid "Invoice"
msgstr "Facture" msgstr "Facture"
#: .\models.py:324 .\templates\main\form\transaction.html:5 #: .\models.py:324 .\templates\main\form\transaction.html:11
msgid "Invoices" msgid "Invoices"
msgstr "Factures" msgstr "Factures"
@ -174,21 +174,21 @@ msgstr "Accueil"
msgid "Snapshots" msgid "Snapshots"
msgstr "Relevés" msgstr "Relevés"
#: .\templates\main\base.html:56 #: .\templates\main\base.html:56 .\templates\main\form\account.html:5
msgid "Create Account" msgid "Create account"
msgstr "Créer Compte" msgstr "Créer un compte"
#: .\templates\main\base.html:61 #: .\templates\main\base.html:61 .\templates\main\form\snapshot.html:5
msgid "Create Snapshot" msgid "Create snapshot"
msgstr "Créer Relevé" msgstr "Créer un relevé"
#: .\templates\main\base.html:66 #: .\templates\main\base.html:66 .\templates\main\form\category.html:5
msgid "Create Category" msgid "Create category"
msgstr "Créer Catégorie" msgstr "Créer une catégorie"
#: .\templates\main\base.html:71 #: .\templates\main\base.html:71 .\templates\main\form\transaction.html:4
msgid "Create Transaction" msgid "Create transaction"
msgstr "Créer Transaction" msgstr "Créer une transaction"
#: .\templates\main\base.html:79 #: .\templates\main\base.html:79
msgid "Log out" msgid "Log out"
@ -211,15 +211,18 @@ msgstr "Annuler"
msgid "Confirm" msgid "Confirm"
msgstr "Confirmer" msgstr "Confirmer"
#: .\templates\main\form\account.html:13 .\templates\main\form\category.html:9 #: .\templates\main\form\account.html:8
msgid "New account"
msgstr "Nouveau compte"
#: .\templates\main\form\account.html:19 .\templates\main\form\category.html:15
#: .\templates\main\index.html:28 #: .\templates\main\index.html:28
msgid "History" msgid "History"
msgstr "Historique" msgstr "Historique"
#: .\templates\main\form\base.html:7 .\templates\main\form\base.html:28 #: .\templates\main\form\category.html:8
#, python-format msgid "New category"
msgid "Create %(name)s" msgstr "Nouvelle catégorie"
msgstr "Créer %(name)s"
#: .\templates\main\form\form_base.html:29 #: .\templates\main\form\form_base.html:29
#: .\templates\main\table\invoice.html:11 #: .\templates\main\table\invoice.html:11
@ -239,6 +242,23 @@ msgstr "Créer"
msgid "Save" msgid "Save"
msgstr "Enregistrer" msgstr "Enregistrer"
#: .\templates\main\form\invoice.html:3
msgid "Create invoice"
msgstr "Créer une facture"
#: .\templates\main\form\invoice.html:6 .\templates\main\table\invoice.html:37
msgid "New invoice"
msgstr "Nouvelle facture"
#: .\templates\main\form\snapshot.html:8
msgid "New snapshot"
msgstr "Nouveau relevés"
#: .\templates\main\form\transaction.html:7
#: .\templates\main\table\transaction.html:5
msgid "New transaction"
msgstr "Nouvelle transaction"
#: .\templates\main\list\snapshot.html:27 #: .\templates\main\list\snapshot.html:27
msgid "No snapshots to show" msgid "No snapshots to show"
msgstr "Aucun relevé à afficher" msgstr "Aucun relevé à afficher"
@ -267,10 +287,6 @@ msgstr "Mois"
msgid "No invoice" msgid "No invoice"
msgstr "Aucune facture" msgstr "Aucune facture"
#: .\templates\main\table\invoice.html:37
msgid "New invoice"
msgstr "Nouvelle facture"
#: .\templates\main\table\snapshot.html:5 #: .\templates\main\table\snapshot.html:5
msgid "New statement" msgid "New statement"
msgstr "Nouveau relevé" msgstr "Nouveau relevé"
@ -279,10 +295,22 @@ msgstr "Nouveau relevé"
msgid "View all statements" msgid "View all statements"
msgstr "Voir tous les relevés" msgstr "Voir tous les relevés"
#: .\templates\main\table\transaction.html:5
msgid "New transaction"
msgstr "Nouvelle transaction"
#: .\templates\main\table\transaction.html:73 #: .\templates\main\table\transaction.html:73
msgid "View all transactions" msgid "View all transactions"
msgstr "Voir toutes les transactions" msgstr "Voir toutes les transactions"
#~ msgid "Create Account"
#~ msgstr "Créer Compte"
#~ msgid "Create Snapshot"
#~ msgstr "Créer Relevé"
#~ msgid "Create Category"
#~ msgstr "Créer Catégorie"
#~ msgid "Create Transaction"
#~ msgstr "Créer Transaction"
#, python-format
#~ msgid "Create %(name)s"
#~ msgstr "Créer %(name)s"

View file

@ -53,22 +53,22 @@
<li> <li>
<a href="{% url 'account' %}" <a href="{% url 'account' %}"
class="{% if request.resolver_match.url_name == 'account' %}cur{% endif %}" class="{% if request.resolver_match.url_name == 'account' %}cur{% endif %}"
accesskey="a">{% translate "Create Account" %}</a> accesskey="a">{% translate "Create account" %}</a>
</li> </li>
<li> <li>
<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">{% translate "Create Snapshot" %}</a> accesskey="s">{% translate "Create snapshot" %}</a>
</li> </li>
<li> <li>
<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">{% translate "Create Category" %}</a> accesskey="c">{% translate "Create category" %}</a>
</li> </li>
<li> <li>
<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="t">{% translate "Create Transaction" %}</a> accesskey="t">{% translate "Create transaction" %}</a>
</li> </li>
<li> <li>
<a href="{% url 'search' %}" <a href="{% url 'search' %}"

View file

@ -1,6 +1,12 @@
{% extends "main/form/base.html" %} {% extends "main/form/base.html" %}
{% load main_extras %} {% load main_extras %}
{% load i18n %} {% load i18n %}
{% block title_new %}
{% translate "Create account" %}
{% endblock %}
{% block h1_new %}
{% translate "New account" %}
{% endblock %}
{% block h1 %}{{ form.instance.icon|remix }}{{ form.instance }}{% endblock %} {% block h1 %}{{ form.instance.icon|remix }}{{ form.instance }}{% endblock %}
{% block tables %} {% block tables %}
{% if not form.instance.adding %} {% if not form.instance.adding %}

View file

@ -4,7 +4,7 @@
{% load i18n %} {% load i18n %}
{% block title %} {% block title %}
{% if form.instance.adding %} {% if form.instance.adding %}
{% blocktranslate with name=form.instance|verbose_name %}Create {{ name }}{% endblocktranslate %} {% block title_new %}{% endblock %}
{% else %} {% else %}
{{ form.instance }} {{ form.instance }}
{% endif %} {% endif %}
@ -25,7 +25,9 @@
{% block body %} {% block body %}
{% with instance=form.instance %} {% with instance=form.instance %}
{% if instance.adding %} {% if instance.adding %}
<h1>{% blocktranslate with name=instance|verbose_name %}Create {{ name }}{% endblocktranslate %}</h1> <h1>
{% block h1_new %}{% endblock %}
</h1>
{% else %} {% else %}
<h1> <h1>
{% block h1 %}{{ instance }}{% endblock %} {% block h1 %}{{ instance }}{% endblock %}

View file

@ -1,6 +1,12 @@
{% extends "main/form/base.html" %} {% extends "main/form/base.html" %}
{% load main_extras %} {% load main_extras %}
{% load i18n %} {% load i18n %}
{% block title_new %}
{% translate "Create category" %}
{% endblock %}
{% block h1_new %}
{% translate "New category" %}
{% endblock %}
{% block h1 %}{{ form.instance.icon|remix }}{{ form.instance }}{% endblock %} {% block h1 %}{{ form.instance.icon|remix }}{{ form.instance }}{% endblock %}
{% block tables %} {% block tables %}
{% if form.instance.transactions %} {% if form.instance.transactions %}

View file

@ -1 +1,7 @@
{% extends "main/form/base.html" %} {% extends "main/form/base.html" %}
{% block title_new %}
{% translate "Create invoice" %}
{% endblock %}
{% block h1_new %}
{% translate "New invoice" %}
{% endblock %}

View file

@ -1,6 +1,12 @@
{% extends "main/form/base.html" %} {% extends "main/form/base.html" %}
{% load main_extras %} {% load main_extras %}
{% load i18n %} {% load i18n %}
{% block title_new %}
{% translate "Create snapshot" %}
{% endblock %}
{% block h1_new %}
{% translate "New snapshot" %}
{% endblock %}
{% block h1 %} {% block h1 %}
{{ form.instance.sum|check:form.instance.diff }} {{ form.instance.sum|check:form.instance.diff }}
{{ form.instance }} {{ form.instance }}

View file

@ -1,5 +1,11 @@
{% extends "main/form/base.html" %} {% extends "main/form/base.html" %}
{% load i18n %} {% load i18n %}
{% block title_new %}
{% translate "Create transaction" %}
{% endblock %}
{% block h1_new %}
{% translate "New transaction" %}
{% endblock %}
{% block tables %} {% block tables %}
{% if not form.instance.adding %} {% if not form.instance.adding %}
<h2>{% translate "Invoices" %}</h2> <h2>{% translate "Invoices" %}</h2>