From 19bd78bc8d3069a29d83bb19fa2173e8ea492092 Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Sun, 29 Jul 2018 11:55:44 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20des=20traductions=20et=20de=20d=C3=A9tail?= =?UTF-8?q?s=20de=20front.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cotisations/locale/fr/LC_MESSAGES/django.po | 42 ++++++++++++------- .../cotisations/aff_custom_invoice.html | 41 +++++------------- .../templates/cotisations/sidebar.html | 2 +- 3 files changed, 39 insertions(+), 46 deletions(-) diff --git a/cotisations/locale/fr/LC_MESSAGES/django.po b/cotisations/locale/fr/LC_MESSAGES/django.po index 712e90f6..f9aee64d 100644 --- a/cotisations/locale/fr/LC_MESSAGES/django.po +++ b/cotisations/locale/fr/LC_MESSAGES/django.po @@ -23,7 +23,7 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-07-25 23:22+0200\n" "PO-Revision-Date: 2018-03-31 16:09+0002\n" -"Last-Translator: Maël Kervella \n" +"Last-Translator: Hugo Levy-Falk \n" "Language-Team: \n" "Language: fr_FR\n" "MIME-Version: 1.0\n" @@ -546,11 +546,6 @@ msgid "Balance refill" msgstr "Rechargement de solde" #: templates/cotisations/payment.html:34 -#, fuzzy, python-format -#| msgid "" -#| "\n" -#| " Refill of %(amount)s €\n" -#| " " msgid "" "\n" " Pay %(amount)s €\n" @@ -719,6 +714,7 @@ msgstr "Vous n'êtes pas autorisé à créditer votre solde." msgid "Refill your balance" msgstr "Créditer votre solde" +#: models.py:137 msgid "Cheque number" msgstr "Numéro de chèque" @@ -728,89 +724,105 @@ msgstr "Non renseigné" msgid "A cheque number and a bank must be specified." msgstr "Un numéro de chèqe et une banque doivent être renseignés." -#~ msgid "Invoice number" -#~ msgstr "Numéro de facture" - -#~ msgid "Amount" -#~ msgstr "Montant" - +#: models.py:155 msgid "Can change the \"controlled\" state" msgstr "Peut modifier l'état \"controllé\"" -msgid "Can create a custom PDF invoice" -msgstr "Peut crée une facture PDF personnalisée" - +#: models.py:157 msgid "Can see an invoice's details" msgstr "Peut voir les détails d'une facture" +#: models.py:159 msgid "Can edit all the previous invoices" msgstr "Peut modifier toutes les factures existantes" +#: models.py:297 msgid "Connexion" msgstr "Connexion" +#: models.py:336 msgid "Membership" msgstr "Adhésion" +#: models.py:299 msgid "Both of them" msgstr "Les deux" +#: models.py:328 msgid "Duration (in whole month)" msgstr "Durée (en mois entiers)" +#: models.py:336 msgid "Type of cotisation" msgstr "Type de cotisation" +#: models.py:341 msgid "Can see a purchase's details" msgstr "Peut voir les détails d'un achat" +#: models.py:342 msgid "Can edit all the previous purchases" msgstr "Peut voir les achats existants" +#: models.py:344 msgid "Purchase" msgstr "Achat" +#: models.py:345 msgid "Purchases" msgstr "Achat" +#: models.py:512 msgid "Club" msgstr "Club" +#: models.py:530 msgid "Unitary price" msgstr "Prix unitaire" +#: models.py:538 msgid "Type of users concerned" msgstr "Type d'utilisateurs concernés" +#: models.py:561 msgid "Can see an article's details" msgstr "Peut voir les détails d'un article" +#: models.py:621 msgid "Name" msgstr "Nom" +#: models.py:626 msgid "Can see a bank's details" msgstr "Peut voir les détails d'une banque" +#: models.py:344 msgid "Standard" msgstr "Standard" msgid "Cheque" msgstr "Chèque" +#: models.py:647 msgid "Method" msgstr "Moyen" +#: models.py:663 msgid "Can see a payement's details" msgstr "Peut voir les détails d'un paiement" +#: models.py:785 msgid "Starting date" msgstr "Date de début" +#: models.py:788 msgid "Ending date" msgstr "Date de fin" +#: models.py:793 msgid "Can see a cotisation's details" msgstr "Peut voir les détails d'une cotisation" +#: models.py:794 msgid "Can edit the previous cotisations" msgstr "Peut voir les cotisations existantes" diff --git a/cotisations/templates/cotisations/aff_custom_invoice.html b/cotisations/templates/cotisations/aff_custom_invoice.html index 22c0819b..1d182178 100644 --- a/cotisations/templates/cotisations/aff_custom_invoice.html +++ b/cotisations/templates/cotisations/aff_custom_invoice.html @@ -3,9 +3,6 @@ Re2o est un logiciel d'administration développé initiallement au rezometz. Il se veut agnostique au réseau considéré, de manière à être installable en quelques clics. -Copyright © 2017 Gabriel Détraz -Copyright © 2017 Goulven Kermarec -Copyright © 2017 Augustin Lemesle Copyright © 2018 Hugo Levy-Falk This program is free software; you can redistribute it and/or modify @@ -53,7 +50,10 @@ with this program; if not, write to the Free Software Foundation, Inc., {% trans "Invoice id" as tr_invoice_id %} {% include 'buttons/sort.html' with prefix='invoice' col='id' text=tr_invoice_id %} - {% trans "Paid" %} + + {% trans "Paid" as tr_invoice_paid%} + {% include 'buttons/sort.html' with prefix='invoice' col='paid' text=tr_invoice_paid %} + @@ -68,32 +68,13 @@ with this program; if not, write to the Free Software Foundation, Inc., {{ invoice.id }} {{ invoice.paid|tick }} - - - + {% can_edit invoice %} + {% include 'buttons/edit.html' with href='cotisations:edit-custom-invoice' id=invoice.id %} + {% acl_end %} + {% can_delete invoice %} + {% include 'buttons/suppr.html' with href='cotisations:del-custom-invoice' id=invoice.id %} + {% acl_end %} + {% history_button invoice %} {% trans "PDF" %} diff --git a/cotisations/templates/cotisations/sidebar.html b/cotisations/templates/cotisations/sidebar.html index 8d37bb6a..7be91b1c 100644 --- a/cotisations/templates/cotisations/sidebar.html +++ b/cotisations/templates/cotisations/sidebar.html @@ -27,7 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load i18n %} {% block sidebar %} - {% can_change Facture pdf %} + {% can_create CustomInvoice %} {% trans "Create an invoice" %}