templates: add blocktrans trimmed where useful (#69422)
This commit is contained in:
parent
0db08a6feb
commit
b444ab46b9
|
@ -3,9 +3,9 @@
|
|||
|
||||
{% block content %}
|
||||
<p>
|
||||
{% blocktrans %}We were unable to load provider <tt>{{ entity_id }}</tt>.{% endblocktrans %}
|
||||
{% blocktrans trimmed %}We were unable to load provider <tt>{{ entity_id }}</tt>.{% endblocktrans %}
|
||||
{% if request.user.is_staff %}
|
||||
{% blocktrans %}
|
||||
{% blocktrans trimmed %}
|
||||
You can <a href="{{ add_url }}">add</a> it now or <a href="">retry</a>.
|
||||
{% endblocktrans %}
|
||||
{% endif %}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{% load i18n %}
|
||||
<html>
|
||||
<body style="max-width: 90ex">
|
||||
<p>{% blocktrans %}{{ full_name }},{% endblocktrans %}</p>
|
||||
<p>{% blocktrans trimmed %}{{ full_name }},{% endblocktrans %}</p>
|
||||
<p>
|
||||
{% blocktrans %}
|
||||
{% blocktrans trimmed %}
|
||||
Your account on {{ site }} has been deleted.
|
||||
All related data will be deleted today.
|
||||
You cannot log in with it anymore.
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{% load i18n %}
|
||||
<html>
|
||||
<body style="max-width: 90ex">
|
||||
<p>{% blocktrans %}{{ full_name }},{% endblocktrans %}</p>
|
||||
<p>{% blocktrans trimmed %}{{ full_name }},{% endblocktrans %}</p>
|
||||
<p>
|
||||
{% blocktrans %}
|
||||
{% blocktrans trimmed %}
|
||||
Please click on {{ deletion_url }}
|
||||
if you want to validate your account deletion request on
|
||||
{{ site }}.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<p>
|
||||
{% blocktrans %}
|
||||
{% blocktrans trimmed %}
|
||||
You are about to delete the account of <strong>{{ user }}</strong>.
|
||||
This will remove all related personal data and you won't be able to log in with this account anymore.
|
||||
{% endblocktrans %}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>{% blocktrans with email=user.email %}Your current email is {{ email }}.
|
||||
<p>{% blocktrans trimmed with email=user.email %}Your current email is {{ email }}.
|
||||
An email will be sent to validate the new one.{% endblocktrans %}</p>
|
||||
<form method="post" class="pk-mark-optional-fields">
|
||||
{% csrf_token %}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<div id="consent">
|
||||
<p>
|
||||
{% if provider_id %}
|
||||
{% blocktrans with provider_id=provider_id %}
|
||||
{% blocktrans trimmed with provider_id=provider_id %}
|
||||
Do you accept to federate your account with <strong>{{ provider_id }}</strong>?
|
||||
{% endblocktrans %}
|
||||
{% else %}
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
{% block content %}
|
||||
<form method="post" action="." class="pk-mark-optional-fields">
|
||||
{% if user.has_usable_password %}
|
||||
<p>{% blocktrans %}To change your password you must provide your current password, then provide
|
||||
<p>{% blocktrans trimmed %}To change your password you must provide your current password, then provide
|
||||
the new password and confirm it.
|
||||
{% endblocktrans %}</p>
|
||||
{% else %}
|
||||
<p>{% blocktrans %}You are going to define your account password.{% endblocktrans %}</p>
|
||||
<p>{% blocktrans trimmed %}You are going to define your account password.{% endblocktrans %}</p>
|
||||
{% endif %}
|
||||
{% csrf_token %}
|
||||
{{ form|with_template }}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% load i18n %}
|
||||
{% blocktrans with hostname=request.get_host %}You requested reset of your password on {{ hostname }}, to proceed please
|
||||
{% blocktrans trimmed with hostname=request.get_host %}You requested reset of your password on {{ hostname }}, to proceed please
|
||||
click on the following link{% endblocktrans %}:
|
||||
{% block reset_link %}
|
||||
{{ reset_url }}
|
||||
|
|
|
@ -11,24 +11,24 @@
|
|||
{% else %}
|
||||
<p>
|
||||
<strong>
|
||||
{% blocktrans with email=request.session.reset_email %}
|
||||
{% blocktrans trimmed with email=request.session.reset_email %}
|
||||
An email has been sent to {{ email }}.
|
||||
{% endblocktrans %}
|
||||
</strong></p>
|
||||
<p><strong>
|
||||
{% blocktrans %}
|
||||
{% blocktrans trimmed %}
|
||||
Follow the instructions in this email in order to choose a new password.
|
||||
{% endblocktrans %}
|
||||
</strong></p>
|
||||
{% block advice %}
|
||||
<p>
|
||||
{% blocktrans %}
|
||||
{% blocktrans trimmed %}
|
||||
The email may take several minutes to be received. It can also be
|
||||
considered as spam: please look in your "junk mail" folder.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
<p>
|
||||
{% blocktrans %}
|
||||
{% blocktrans trimmed %}
|
||||
If you still have not received the instructions, add "{{from_email_address}}"
|
||||
to your address book or authorized sender list, and then repeat the
|
||||
password reset process.
|
||||
|
|
|
@ -11,25 +11,25 @@
|
|||
{% else %}
|
||||
{% block instructions %}
|
||||
<p><strong>
|
||||
{% blocktrans with email=request.session.registered_email %}
|
||||
{% blocktrans trimmed with email=request.session.registered_email %}
|
||||
An email was sent to {{ email }}.
|
||||
{% endblocktrans %}
|
||||
</strong></p>
|
||||
<p><strong>
|
||||
{% blocktrans %}
|
||||
{% blocktrans trimmed %}
|
||||
Follow the instructions in that email to continue your registration.
|
||||
{% endblocktrans %}
|
||||
</strong></p>
|
||||
{% endblock %}
|
||||
{% block advice %}
|
||||
<p>
|
||||
{% blocktrans %}
|
||||
{% blocktrans trimmed %}
|
||||
The email may take several minutes to be received. It can also be
|
||||
considered as spam: please look in your "junk mail" folder.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
<p>
|
||||
{% blocktrans with from_email=from_email %}
|
||||
{% blocktrans trimmed with from_email=from_email %}
|
||||
If you still have not received the instructions, add "{{from_email_address}}"
|
||||
to your address book or authorized sender list, and then repeat the
|
||||
registration process.
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block content %}
|
||||
<h2>{% trans "Login" %}</h2>
|
||||
<p>
|
||||
{% blocktrans count accounts_number=accounts|length %}An account already exists for this email. Please click on the account name to log in with.{% plural %}More accounts are associated to this email. Please choose the account you want to log in with:{% endblocktrans %}
|
||||
{% blocktrans trimmed count accounts_number=accounts|length %}An account already exists for this email. Please click on the account name to log in with.{% plural %}More accounts are associated to this email. Please choose the account you want to log in with:{% endblocktrans %}
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
|
@ -18,13 +18,13 @@
|
|||
{% csrf_token %}
|
||||
<input type="hidden" name="uid" value="{{ user.id }}">
|
||||
<a href="#" onclick="document.forms['user-{{ user.id }}'].submit()">
|
||||
{% blocktrans with c=forloop.counter %}Account #{{ c }}: {{ user }}{% endblocktrans %}
|
||||
{% blocktrans trimmed with c=forloop.counter %}Account #{{ c }}: {{ user }}{% endblocktrans %}
|
||||
</a>
|
||||
<div>
|
||||
{% blocktrans with creation_date=user.date_joined|date:'SHORT_DATETIME_FORMAT'%}created on {{ creation_date }}
|
||||
{% blocktrans trimmed with creation_date=user.date_joined|date:'SHORT_DATETIME_FORMAT'%}created on {{ creation_date }}
|
||||
{% endblocktrans %}
|
||||
{% if user.last_login %}
|
||||
{% blocktrans with login_date=user.last_login|date:'SHORT_DATETIME_FORMAT' %}last login on {{ login_date }}{% endblocktrans %}
|
||||
{% blocktrans trimmed with login_date=user.last_login|date:'SHORT_DATETIME_FORMAT' %}last login on {{ login_date }}{% endblocktrans %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<p>
|
||||
<a href="{{ about_url }}" target="_blank" rel="noopener" title="{% trans "opens in new window" %}">{% trans "What is FranceConnect?" %}</a>
|
||||
</p>
|
||||
<p>{% blocktrans %}
|
||||
<p>{% blocktrans trimmed %}
|
||||
FranceConnect is the solution proposed by the French state to secure and
|
||||
streamline logging in to online services.
|
||||
{% endblocktrans %}</p>
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
{% block content %}
|
||||
<p>
|
||||
{% blocktrans %}
|
||||
{% blocktrans trimmed %}
|
||||
You're about to delete the link between your user account and FranceConnect.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
<p>
|
||||
{% blocktrans %}
|
||||
{% blocktrans trimmed %}
|
||||
Deleting this link won't delete your user account. However, once the link with
|
||||
FranceConnect is deleted, it is no more possible to use FranceConnect to automatically log
|
||||
in to your user account. It is still possible to link your user account again, using the
|
||||
|
@ -18,7 +18,7 @@
|
|||
</p>
|
||||
{% if no_password %}
|
||||
<p>
|
||||
{% blocktrans %}
|
||||
{% blocktrans trimmed %}
|
||||
On your next authentications, you will have to type in a password. Clicking the “Unlink”
|
||||
button here will prompt you to pick this new password. For obvious security reasons, please
|
||||
pick a different one than the password(s) on your FranceConnect providers.
|
||||
|
|
Loading…
Reference in New Issue