Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

No need to translate password reset templates, already done by django

Roland Geider8b3ce620aafa
diff --git a/manager/templates/user/password_reset_complete.html b/manager/templates/user/password_reset_complete.html
index eabd31490..dbbaa3457 100644
--- a/manager/templates/user/password_reset_complete.html
+++ b/manager/templates/user/password_reset_complete.html
@@ -1,15 +1,19 @@
{% extends "base.html" %}
{% load i18n %}
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
{% block title %}{% trans "Password reset complete" %}{% endblock %}
{% block content %}
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
<h2>{% trans 'Password reset complete' %}</h2>
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
<p>{% trans "Your password has been set. You may go ahead and log in now." %}</p>
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
<p><a href="{{ login_url }}">{% trans 'Log in' %}</a></p>
{% endblock %}
diff --git a/manager/templates/user/password_reset_confirm.html b/manager/templates/user/password_reset_confirm.html
index a47c41f3f..e517dd5e9 100644
--- a/manager/templates/user/password_reset_confirm.html
+++ b/manager/templates/user/password_reset_confirm.html
@@ -1,13 +1,17 @@
{% extends "base.html" %}
{% load i18n %}
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
{% block title %}{% trans "Password reset confirmation" %}{% endblock %}
{% block content %}
{% if validlink %}
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
<h2>{% trans 'Enter new password' %}</h2>
+
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
<p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
<form action=""
@@ -20,6 +24,7 @@
{% include "form_snippet.html" with field=form.new_password2 %}
<tr>
<td colspan="2">
+ {% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
<input type="submit" value="{% trans 'Change my password' %}" id="form-save">
</td>
</tr>
@@ -28,7 +33,10 @@
{% else %}
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
<h2>{% trans 'Password reset unsuccessful' %}</h2>
+
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
<p>{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}</p>
{% endif %}
diff --git a/manager/templates/user/password_reset_done.html b/manager/templates/user/password_reset_done.html
index adf2a48fb..958e16287 100644
--- a/manager/templates/user/password_reset_done.html
+++ b/manager/templates/user/password_reset_done.html
@@ -1,13 +1,16 @@
{% extends "base.html" %}
{% load i18n %}
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
{% block title %}{% trans "Password reset successful" %}{% endblock %}
{% block content %}
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
<h2>{% trans 'Password reset successful' %}</h2>
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
<p>{% trans "We've e-mailed you instructions for setting your password to the e-mail address you submitted. You should be receiving it shortly." %}</p>
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/manager/templates/user/password_reset_email.html b/manager/templates/user/password_reset_email.html
index de9dc79c5..ea37ae39a 100644
--- a/manager/templates/user/password_reset_email.html
+++ b/manager/templates/user/password_reset_email.html
@@ -1,14 +1,21 @@
{% load i18n %}{% load url from future %}{% autoescape off %}
+
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
{% blocktrans %}You're receiving this e-mail because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %}
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
{% trans "Please go to the following page and choose a new password:" %}
{% block reset_link %}
{{ protocol }}://{{ domain }}{% url 'django.contrib.auth.views.password_reset_confirm' uidb36=uid token=token %}
{% endblock %}
+
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
{% trans "Your username, in case you've forgotten:" %} {{ user.username }}
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
{% trans "Thanks for using our site!" %}
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
{% blocktrans %}The {{ site_name }} team{% endblocktrans %}
{% endautoescape %}
diff --git a/manager/templates/user/password_reset_form.html b/manager/templates/user/password_reset_form.html
index f5712a0f6..af24d894a 100644
--- a/manager/templates/user/password_reset_form.html
+++ b/manager/templates/user/password_reset_form.html
@@ -1,10 +1,12 @@
{% extends "base.html" %}
{% load i18n %}
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
{% block title %}{% trans "Password reset" %}{% endblock %}
{% block content %}
+{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
<h2>{% trans "Password reset" %}</h2>
<form action=""
@@ -16,9 +18,10 @@
{% include "form_snippet.html" with field=form.email %}
<tr>
<td colspan="2">
+ {% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}
<input type="submit" value="{% trans 'Send' %}" id="form-save">
</td>
</tr>
</table>
</form>
-{% endblock %}
\ No newline at end of file
+{% endblock %}