1
0
mirror of https://github.com/django/django.git synced 2025-01-03 15:06:09 +00:00

Fixed #35742 -- Removed hardcoded "username" references in admin templates.

This commit is contained in:
antoliny0919 2024-10-08 09:27:20 +02:00 committed by Sarah Boyce
parent 7d9dd7b68f
commit 862026a8b9
3 changed files with 3 additions and 5 deletions

View File

@ -3,9 +3,7 @@
{% block form_top %}
{% if not is_popup %}
<p>{% translate 'First, enter a username and password. Then, youll be able to edit more user options.' %}</p>
{% else %}
<p>{% translate "Enter a username and password." %}</p>
<p>{% translate "After you've created a user, youll be able to edit more user options." %}</p>
{% endif %}
{% endblock %}
{% block extrahead %}

View File

@ -57,7 +57,7 @@
{% url 'admin_password_reset' as password_reset_url %}
{% if password_reset_url %}
<div class="password-reset-link">
<a href="{{ password_reset_url }}">{% translate 'Forgotten your password or username?' %}</a>
<a href="{{ password_reset_url }}">{% translate 'Forgotten your login credentials?' %}</a>
</div>
{% endif %}
<div class="submit-row">

View File

@ -5,7 +5,7 @@
{% block reset_link %}
{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %}
{% endblock %}
{% translate 'Your username, in case youve forgotten:' %} {{ user.get_username }}
{% translate 'In case youve forgotten, you are:' %} {{ user.get_username }}
{% translate "Thanks for using our site!" %}