From 91b418e64fe6844e8a8902c46137c1c446a0e5ac Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Sat, 18 Apr 2020 00:29:50 +0200 Subject: [PATCH] Add missing translations --- search/locale/fr/LC_MESSAGES/django.po | 16 ++++++++++++---- users/forms.py | 4 +++- users/locale/fr/LC_MESSAGES/django.po | 12 ++++++++++++ 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/search/locale/fr/LC_MESSAGES/django.po b/search/locale/fr/LC_MESSAGES/django.po index 6da1a477..c5d18323 100644 --- a/search/locale/fr/LC_MESSAGES/django.po +++ b/search/locale/fr/LC_MESSAGES/django.po @@ -50,10 +50,6 @@ msgstr "Pas encore adhéré" msgid "Fully archived" msgstr "Complètement archivés" -#: search/forms.py:38 -msgid "Waiting for email confirmation" -msgstr "En attente de confirmation d'email" - #: search/forms.py:41 msgid "Users" msgstr "Utilisateurs" @@ -117,6 +113,18 @@ msgstr "Date de début" msgid "End date" msgstr "Date de fin" +#: search/models.py:195 +msgid "Verified" +msgstr "Confirmé" + +#: search/models.py:196 +msgid "Unverified" +msgstr "Non-confirmé" + +#: search/models.py:197 +msgid "Waiting for email confirmation" +msgstr "En attente de confirmation d'email" + #: search/templates/search/index.html:29 msgid "Search results" msgstr "Résultats de la recherche" diff --git a/users/forms.py b/users/forms.py index 158965d6..8e60b698 100644 --- a/users/forms.py +++ b/users/forms.py @@ -654,11 +654,13 @@ class StateForm(FormRevMixin, ModelForm): class Meta: model = User - fields = ["state" ,"email_state"] + fields = ["state", "email_state"] def __init__(self, *args, **kwargs): prefix = kwargs.pop("prefix", self.Meta.model.__name__) super(StateForm, self).__init__(*args, prefix=prefix, **kwargs) + self.fields["state"].label = _("State") + self.fields["email_state"].label = _("Email state") class GroupForm(FieldPermissionFormMixin, FormRevMixin, ModelForm): diff --git a/users/locale/fr/LC_MESSAGES/django.po b/users/locale/fr/LC_MESSAGES/django.po index 77e5a4f9..c53cc94f 100644 --- a/users/locale/fr/LC_MESSAGES/django.po +++ b/users/locale/fr/LC_MESSAGES/django.po @@ -223,6 +223,14 @@ msgstr "Nom" msgid "Use a mailing list" msgstr "Utiliser une liste de diffusion" +#: users/forms.py:662 +msgid "State" +msgstr "État" + +#: users/forms.py:663 +msgid "Email state" +msgstr "État du mail" + #: users/forms.py:601 users/templates/users/aff_listright.html:38 msgid "Superuser" msgstr "Superutilisateur" @@ -1367,6 +1375,10 @@ msgstr "Les états ont été modifié." msgid "The groups were edited." msgstr "Les groupes ont été modifiés." +#: users/views.py:249 +msgid "An email to confirm the address was sent." +msgstr "Un mail pour confirmer l'adresse a été envoyé." + #: users/views.py:261 users/views.py:998 msgid "The password was changed." msgstr "Le mot de passe a été changé."