Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from toyg/i18n
marked all strings for i18n
- Loading branch information
Showing
17 changed files
with
83 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
{% extends "registration/registration_base.html" %} | ||
{% block title %}{% if account %}Activation complete{% else %}Activation problem{% endif %}{% endblock %} | ||
{% load i18n %} | ||
{% url 'auth_login' as auth_login_url %} | ||
{% block title %}{% if account %}{% trans "Activation complete" %}{% else %}{% trans "Activation problem" %}{% endif %}{% endblock %} | ||
{% block content %} | ||
{% if account %} | ||
Thanks {{ account }}, activation complete! You may now <a href='{% url 'auth_login' %}'>login</a> using the username and password you set at registration. | ||
{% blocktrans %} | ||
Thanks {{ account }}, activation complete! | ||
You may now <a href='{{ auth_login_url }}'>login</a> using the username and password you set at registration. | ||
{% endblocktrans %} | ||
{% else %} | ||
Oops – it seems that your activation key is invalid. Please check the url again. | ||
{% blocktrans %}Oops – it seems that your activation key is invalid. Please check the url again.{% endblocktrans %} | ||
{% endif %} | ||
{% endblock %} | ||
|
8 changes: 6 additions & 2 deletions
8
registration_defaults/templates/registration/activation_complete.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
{% extends "registration/registration_base.html" %} | ||
{% block title %}Activation complete{% endblock %} | ||
{% load i18n %} | ||
{% url 'auth_login' as auth_login_url %} | ||
{% block title %}{% trans "Activation complete" %}{% endblock %} | ||
{% block content %} | ||
Thanks, activation complete! You may now <a href='{% url 'auth_login' %}'>login</a> using the username and password you set at registration. | ||
{% blocktrans %} | ||
Thanks, activation complete! You may now <a href='{{ auth_login_url }}'>login</a> using the username and password you set at registration. | ||
{% endblocktrans %} | ||
{% endblock %} | ||
|
||
|
14 changes: 9 additions & 5 deletions
14
registration_defaults/templates/registration/activation_email.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
{% load i18n %} | ||
{% comment %} | ||
This template is used for the html alternative of the activation email | ||
if you use a django-registration backend that looks for it. e.g. | ||
https://github.com/huseyinyilmaz/django-registration-extended-backend | ||
{% endcomment %}<body> | ||
<h3>Account registration for {{ site.name }}</h3> | ||
{% endcomment %} | ||
{% url 'registration_activate' activation_key as activation_key_url %} | ||
{% blocktrans with sitename=site.name sitedomain=site.domain%}<body> | ||
<h3>Account registration for {{ sitename }}</h3> | ||
<p> | ||
You (or someone pretending to be you) have asked to register an account at | ||
<b>{{ site.name }}</b>.<br/> | ||
<b>{{ sitename }}</b>.<br/> | ||
If this wasn't you, please ignore this email and your address will be removed | ||
from our records. | ||
</p> | ||
<p> | ||
To activate this account, please click the following link within the next | ||
<b>{{ expiration_days }}</b> days:<br/> | ||
<a href="http://{{site.domain}}{% url 'registration_activate' activation_key %}">http://{{site.domain}}{% url 'registration_activate' activation_key %}</a> | ||
<a href="http://{{ sitedomain }}{{ activation_key_url }}">http://{{ sitedomain }}{{ activation_key_url }}</a> | ||
</p> | ||
<p> | ||
Sincerely,<br/> | ||
{{ site.name }} Management | ||
{{ sitename }} Management | ||
</p> | ||
</body> | ||
{% endblocktrans %} |
12 changes: 8 additions & 4 deletions
12
registration_defaults/templates/registration/activation_email.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
You (or someone pretending to be you) have asked to register an account at | ||
{{ site.name }}. If this wasn't you, please ignore this email | ||
{% load i18n %} | ||
{% url 'registration_activate' activation_key as activation_key_url%} | ||
{% blocktrans with sitename=site.name siteurl=site.domain %} | ||
You (or someone pretending to be you) have asked to register an account at | ||
{{ sitename }}. If this wasn't you, please ignore this email | ||
and your address will be removed from our records. | ||
|
||
To activate this account, please click the following link within the next | ||
{{ expiration_days }} days: | ||
|
||
http://{{site.domain}}{% url 'registration_activate' activation_key %} | ||
http://{{ siteurl }}{{ activation_key_url }} | ||
|
||
Sincerely, | ||
{{ site.name }} Management | ||
{{ sitename }} Management | ||
{% endblocktrans %} |
2 changes: 1 addition & 1 deletion
2
registration_defaults/templates/registration/activation_email_subject.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Account registration for {{ site.name }} | ||
{% load i18n %}{% blocktrans with sitename=site.name %}Account registration for {{ sitename }}{% endblocktrans %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{% extends "registration/registration_base.html" %} | ||
{% block title %}Logged out{% endblock %} | ||
{% load i18n %} | ||
{% block title %}{% trans "Logged out" %}{% endblock %} | ||
{% block content %} | ||
Successfully logged out! | ||
{% trans "Successfully logged out!" %} | ||
{% endblock %} |
5 changes: 3 additions & 2 deletions
5
registration_defaults/templates/registration/password_change_done.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{% extends "registration/registration_base.html" %} | ||
{% block title %}Password changed{% endblock %} | ||
{% load i18n %} | ||
{% block title %}{% trans "Password changed" %}{% endblock %} | ||
{% block content %} | ||
Password successfully changed! | ||
{% trans "Password successfully changed!" %} | ||
{% endblock %} | ||
|
5 changes: 3 additions & 2 deletions
5
registration_defaults/templates/registration/password_change_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
{% extends "registration/registration_base.html" %} | ||
{% block title %}Change password{% endblock %} | ||
{% load i18n %} | ||
{% block title %}{% trans "Change password" %}{% endblock %} | ||
{% block content %} | ||
<form method='post' action=''>{% csrf_token %} | ||
<table> | ||
{{ form }} | ||
<tr><td></td><td><input type='submit' value="Change password" /></td></tr> | ||
<tr><td></td><td><input type='submit' value="{% trans "Change password" %}" /></td></tr> | ||
</table> | ||
</form> | ||
{% endblock %} |
7 changes: 4 additions & 3 deletions
7
registration_defaults/templates/registration/password_reset_complete.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{% extends "registration/registration_base.html" %} | ||
{% block title %}Password reset complete{% endblock %} | ||
{% block content %} | ||
{% load i18n %} | ||
{% block title %}{% trans "Password reset complete" %}{% endblock %} | ||
{% block content %}{% blocktrans %} | ||
Your password has been reset! You may now <a href="{{ login_url }}">log in</a>. | ||
{% endblock %} | ||
{% endblocktrans %}{% endblock %} |
7 changes: 4 additions & 3 deletions
7
registration_defaults/templates/registration/password_reset_confirm.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{% extends "registration/registration_base.html" %} | ||
{% block title %}Confirm password reset{% endblock %} | ||
{% load i18n %} | ||
{% block title %}{% trans "Confirm password reset" %}{% endblock %} | ||
{% block content %} | ||
Enter your new password below to reset your password: | ||
{% trans "Enter your new password below to reset your password:" %} | ||
<form method="post" action="">{% csrf_token %} | ||
<table> | ||
{{ form.as_table }} | ||
<tr><td></ td><td><input type="submit" value="Set password" /></td></tr> | ||
<tr><td></ td><td><input type="submit" value="{% trans "Set password" %}"/></td></tr> | ||
</table> | ||
</form> | ||
{% endblock %} |
7 changes: 4 additions & 3 deletions
7
registration_defaults/templates/registration/password_reset_done.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{% extends "registration/registration_base.html" %} | ||
{% block title %}Password reset{% endblock %} | ||
{% load i18n %} | ||
{% block title %}{% trans "Password reset" %}{% endblock %} | ||
{% block content %} | ||
<p> | ||
We have sent you an email with a link to reset your password. Please check | ||
your email and click the link to continue. | ||
{% blocktrans %}We have sent you an email with a link to reset your password. | ||
Please check your email and click the link to continue.{% endblocktrans %} | ||
</p> | ||
{% endblock %} |
13 changes: 7 additions & 6 deletions
13
registration_defaults/templates/registration/password_reset_email.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
Greetings {% if user.get_full_name %}{{ user.get_full_name }}{% else %}{{ user }}{% endif %}, | ||
{% load i18n %}{% trans "Greetings" %} {% if user.get_full_name %}{{ user.get_full_name }}{% else %}{{ user }}{% endif %}, | ||
|
||
You are receiving this email because you (or someone pretending to be you) | ||
{% blocktrans %}You are receiving this email because you (or someone pretending to be you) | ||
requested that your password be reset on the {{ domain }} site. If you do not | ||
wish to reset your password, please ignore this message. | ||
|
||
To reset your password, please click the following link, or copy and paste it | ||
into your web browser: | ||
into your web browser:{% endblocktrans %} | ||
|
||
{{ protocol }}://{{ domain }}{% url 'auth_password_reset_confirm' uid token %} | ||
|
||
Your username, in case you've forgotten: {{ user.username }} | ||
|
||
{% blocktrans with username=user.username %} | ||
Your username, in case you've forgotten: {{ username }} | ||
|
||
Best regards, | ||
{{ site_name }} Management | ||
{{ site_name }} Management | ||
{% endblocktrans %} |
9 changes: 5 additions & 4 deletions
9
registration_defaults/templates/registration/password_reset_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
{% extends "registration/registration_base.html" %} | ||
{% block title %}Reset password{% endblock %} | ||
{% block content %} | ||
{% load i18n %} | ||
{% block title %}{% trans "Reset password" %}{% endblock %} | ||
{% block content %}{% blocktrans %} | ||
Forgot your password? Enter your email in the form below and we'll send you | ||
instructions for creating a new one. | ||
instructions for creating a new one.{% endblocktrans %} | ||
<form method='post' action=''>{% csrf_token %} | ||
<table> | ||
{{ form }} | ||
<tr><td></td><td><input type='submit' value="Reset password" /></td></tr> | ||
<tr><td></td><td><input type='submit' value="{% trans="Reset password" %}" /></td></tr> | ||
</table> | ||
</form> | ||
{% endblock %} |
1 change: 1 addition & 0 deletions
1
registration_defaults/templates/registration/registration_base.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
{% extends "base.html" %} | ||
{% load i18n %} |
6 changes: 4 additions & 2 deletions
6
registration_defaults/templates/registration/registration_complete.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{% extends "registration/registration_base.html" %} | ||
{% block title %}Activation email sent{% endblock %} | ||
{% load i18n %} | ||
{% block title %}{% trans "Activation email sent" %}{% endblock %} | ||
{% block content %} | ||
An activation email has been sent. Please check your email and click on the link to activate your account. | ||
{% blocktrans %}An activation email has been sent. | ||
Please check your email and click on the link to activate your account.{% endblocktrans %} | ||
{% endblock %} | ||
|
5 changes: 3 additions & 2 deletions
5
registration_defaults/templates/registration/registration_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
{% extends "registration/registration_base.html" %} | ||
{% block title %}Register for an account{% endblock %} | ||
{% load i18n %} | ||
{% block title %}{% trans "Register for an account" %}{% endblock %} | ||
{% block content %} | ||
<table> | ||
<form method='post' action=''>{% csrf_token %} | ||
{{ form }} | ||
<tr><td></td><td><input type="submit" value="Send activation email" /></td> | ||
<tr><td></td><td><input type="submit" value="{% trans "Send activation email" %}" /></td> | ||
</form> | ||
</table> | ||
{% endblock %} |