8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 07:02:26 +00:00

Add missing translations

This commit is contained in:
Jean-Romain Garnier 2020-04-17 16:03:37 +02:00 committed by Gabriel Detraz
parent 263d5cfb4c
commit 14fe70c762
10 changed files with 103 additions and 11 deletions

View file

@ -244,6 +244,10 @@ msgid "Not yet active users"
msgstr "Utilisateurs pas encore actifs"
#: logs/views.py:264
msgid "Waiting for email confirmation users"
msgstr "Utilisateurs en attente de confirmation d'email"
#: logs/views.py:273
msgid "Contributing members"
msgstr "Adhérents cotisants"

View file

@ -261,7 +261,7 @@ def stats_general(request):
Club.objects.filter(state=Club.STATE_NOT_YET_ACTIVE).count(),
],
"email_not_confirmed_users": [
_("Email not yet confirmed users"),
_("Waiting for email confirmation users"),
User.objects.filter(state=User.STATE_EMAIL_NOT_YET_CONFIRMED).count(),
(
Adherent.objects.filter(

View file

@ -66,6 +66,7 @@ class EditOptionalUserForm(ModelForm):
self.fields["gpg_fingerprint"].label = _("GPG fingerprint")
self.fields["all_can_create_club"].label = _("All can create a club")
self.fields["all_can_create_adherent"].label = _("All can create a member")
self.fields["disable_emailnotyetconfirmed"].label = _("Delay before disabling accounts without a verified email")
self.fields["self_adhesion"].label = _("Self registration")
self.fields["shell_default"].label = _("Default shell")
self.fields["allow_set_password_during_user_creation"].label = _("Allow directly setting a password during account creation")

View file

@ -286,6 +286,14 @@ msgstr ""
"jours."
#: preferences/models.py:111
msgid ""
"Users with an email address not yet confirmed will be disabled after"
" this number of days."
msgstr ""
"Les utilisateurs n'ayant pas confirmé leur addresse mail seront"
" désactivés après ce nombre de jours"
#: preferences/models.py:114
msgid "A new user can create their account on Re2o."
msgstr "Un nouvel utilisateur peut créer son compte sur Re2o."
@ -1066,14 +1074,19 @@ msgstr "%(delete_notyetactive)s jours"
msgid "All users are active by default"
msgstr "Tous les utilisateurs sont actifs par défault"
msgid "Allow directly entering a password during account creation"
msgstr "Permettre le choix d'un mot de passe directement lors de la création du compte"
#: preferences/templates/preferences/display_preferences.html:130
msgid "Allow archived users to log in"
msgstr "Autoriser les utilisateurs archivés à se connecter"
#: preferences/templates/preferences/display_preferences.html:133
msgid "Allow directly entering a password during account creation"
msgstr "Permettre le choix d'un mot de passe directement lors de la création du compte"
#: preferences/templates/preferences/display_preferences.html:136
msgid "Delay before disabling accounts without a verified email"
msgstr "Délai avant la désactivation des comptes sans adresse mail confirmé"
#: preferences/templates/preferences/display_preferences.html:136
msgid "Users general permissions"
msgstr "Permissions générales des utilisateurs"

View file

@ -131,7 +131,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<tr>
<th>{% trans "Allow directly entering a password during account creation" %}</th>
<td>{{ useroptions.allow_set_password_during_user_creation|tick }}</td>
<th>{% trans "Disable email not yet confirmed users after" %}</th>
<th>{% trans "Delay before disabling accounts without a verified email" %}</th>
<td>{% blocktrans with disable_emailnotyetconfirmed=useroptions.disable_emailnotyetconfirmed %}{{ disable_emailnotyetconfirmed }} days{% endblocktrans %}</td>
</tr>
</table>

View file

@ -50,6 +50,10 @@ 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"

View file

@ -409,6 +409,9 @@ class AdherentCreationForm(AdherentForm):
" your initial password by email. If you do not have"
" any means of accessing your emails, you can disable"
" this option to set your password immediatly."
" You will still receive an email to confirm your address."
" Failure to confirm your address will result in an"
" automatic suspension of your account until you do."
)
init_password_by_mail = forms.BooleanField(

View file

@ -163,11 +163,17 @@ msgid ""
" your initial password by email. If you do not have"
" any means of accessing your emails, you can disable"
" this option to set your password immediatly."
" You will still receive an email to confirm your address."
" Failure to confirm your address will result in an"
" automatic suspension of your account until you do."
msgstr ""
"Si cette option est activée, vous recevrez un lien pour choisir"
" votre mot de passe par email. Si vous n'avez pas accès"
" à vos mails, vous pouvez désactiver cette option"
" pour immédiatement entrer votre mot de passe."
" Vous recevrez tous de même un email de confirmation."
" Si vous ne confirmez pas votre adresse dans les délais"
" impartis, votre connexion sera automatiquement suspendue."
#: users/forms.py:442
msgid "Send password reset link by email."
@ -961,6 +967,21 @@ msgstr ""
"débrancher et rebrancher votre câble Ethernet pour bénéficier d'une "
"connexion filaire."
#: users/templates/users/confirm_email.html:35
#, python-format
msgid "Confirmation email"
msgstr "Email de confirmation"
#: users/templates/users/confirm_email.html:36
#, python-format
msgid "Confirm the email"
msgstr "Confirmer l'email"
#: users/templates/users/confirm_email.html:36
#, python-format
msgid "for %(name)s."
msgstr "pour %(name)s."
#: users/templates/users/profil.html:36
#, python-format
msgid "Welcome %(name)s %(surname)s"
@ -971,6 +992,25 @@ msgstr "Bienvenue %(name)s %(surname)s"
msgid "Profile of %(name)s %(surname)s"
msgstr "Profil de %(name)s %(surname)s"
#: users/templates/users/profil.html:43
#, python-format
msgid ""
"Please confirm your email address before %(confirm_before_date)s,"
" or your account will be suspended."
msgstr ""
"Veuillez confirmer votre adresse mail avant le %(confirm_before_date)s,"
" sous peine de suspension de votre compte."
#: users/templates/users/profil.html:48
#, python-format
msgid "Didn't receive the email?"
msgstr "Vous n'avez pas reçu le mail ?"
#: users/templates/users/profil.html:53
#, python-format
msgid "Your account has been suspended."
msgstr "Votre compte a été suspendu."
#: users/templates/users/profil.html:46
msgid "Your account has been banned."
msgstr "Votre compte a été banni."
@ -1054,6 +1094,10 @@ msgstr "Envoi de mails désactivé"
msgid "Connected"
msgstr "Connecté"
#: users/templates/users/profil.html:201
msgid "Pending confirmation..."
msgstr "En attente de confirmation..."
#: users/templates/users/profil.html:193
msgid "Pending connection..."
msgstr "Connexion en attente..."
@ -1203,6 +1247,16 @@ msgstr ""
msgid "Add an email address"
msgstr "Ajouter une adresse mail"
#: users/templates/users/resend_confirmation_email.html:35
#, python-format
msgid "Re-send confirmation email?"
msgstr "Renvoyer l'email de confirmation ?"
#: users/templates/users/resend_confirmation_email.html:36
#, python-format
msgid "The confirmation email will be sent to"
msgstr "L'email de confirmation sera envoyé à"
#: users/templates/users/sidebar.html:33
msgid "Create a club or organisation"
msgstr "Créer un club ou une association"
@ -1264,10 +1318,11 @@ msgstr "Adresse MAC %(mac)s"
#: users/views.py:131
#, python-format
msgid "The user %s was created."
msgstr "L'utilisateur %s a été créé."
msgid "The user %s was created, a confirmation email was sent."
msgstr ""
"L'utilisateur %s a été créé, un mail de confirmation a été envoyé."
#: users/views.py:127
#: users/views.py:130
#, python-format
msgid "The user %s was created, an email to set the password was sent."
msgstr ""
@ -1296,6 +1351,10 @@ msgstr "Le club a été modifié."
msgid "The user was edited."
msgstr "L'utilisateur a été modifié."
#: users/views.py:229
msgid "Sent a new confirmation email."
msgstr "Un nouveau mail de confirmation a été envoyé."
#: users/views.py:225
msgid "The state was edited."
msgstr "L'état a été modifié."
@ -1477,6 +1536,14 @@ msgstr ""
"Enregistrement réussi ! Veuillez débrancher et rebrancher votre câble "
"Ethernet pour avoir accès à Internet."
#: users/views.py:1044
msgid "The %s address was confirmed."
msgstr "L'adresse mail %s a été confirmée."
#: users/views.py:1068
msgid "An email to confirm your address was sent."
msgstr "Un mail pour confirmer votre adresse a été envoyé."
#: users/views.py:1072 users/views.py:1096 users/views.py:1111
msgid "The mailing list doesn't exist."
msgstr "La liste de diffusion n'existe pas."

View file

@ -50,7 +50,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</div>
{% elif users.state == users.STATE_DISABLED %}
<div class="alert alert-danger">
{% blocktrans %}Your account has been disabled{% endblocktrans %}
{% blocktrans %}Your account has been suspended.{% endblocktrans %}
</div>
{% endif %}

View file

@ -129,7 +129,7 @@ def new_user(request):
user.confirm_email_address_mail(request)
messages.success(
request,
_("The user %s was created.")
_("The user %s was created, a confirmation email was sent.")
% user.pseudo,
)
else:
@ -226,7 +226,7 @@ def edit_info(request, user, userid):
if user_form.should_send_confirmation_email:
user.confirm_email_address_mail(request)
messages.success(request, _("Sent a new confirmation email"))
messages.success(request, _("Sent a new confirmation email."))
return redirect(reverse("users:profil", kwargs={"userid": str(userid)}))
return form(