Skip to content

Commit

Permalink
Wrap rest of strings in templates for translation
Browse files Browse the repository at this point in the history
Unblocks #84
  • Loading branch information
paltman committed Mar 17, 2015
1 parent b7c2dc2 commit 920b412
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
8 changes: 4 additions & 4 deletions pinax_theme_bootstrap/templates/account/delete.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@

{% block body_class %}account account-delete{% endblock %}

{% block head_title %}Delete Account{% endblock %}
{% block head_title %}{% trans "Delete Account" %}{% endblock %}

{% block body %}
<h1>Delete Account</h1>
<h1>{% trans "Delete Account" %}</h1>

<p>If you go ahead and delete your account, your information will be <b>expunged within {{ ACCOUNT_DELETION_EXPUNGE_HOURS }} hours</b>.</p>
<p>{% blocktrans %}If you go ahead and delete your account, your information will be <b>expunged within {{ ACCOUNT_DELETION_EXPUNGE_HOURS }} hours</b>.{% endblocktrans %}</p>

<form method="post" action="{% url "account_delete" %}" autocapitalize="off">
{% csrf_token %}
<button type="submit" class="btn btn-danger">Delete My Account</button>
<button type="submit" class="btn btn-danger">{% trans "Delete My Account" %}</button>
</form>

{% endblock %}
5 changes: 3 additions & 2 deletions pinax_theme_bootstrap/templates/account/email/invite_user.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
You have been invited to sign up at {{ current_site.name }}.
{% load i18n %}{% blocktrans with name=current_site.name %}You have been invited to sign up at {{ name }}.

{{ signup_url }}
{{ signup_url }}
{% endblocktrans %}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Create an account on {{ current_site.name }}
{% load i18n %}{% blocktrans with name=current_site.name %}Create an account on {{ name }}{% endblocktrans %}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This is the email notification to confirm your password has been changed on {{ user.account.now }}.
{% load i18n %}{% blocktrans with now=user.account.now %}This is the email notification to confirm your password has been changed on {{ now }}.{% endblocktrans %}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Change password email notification
{% load i18n %}{% trans "Change password email notification" %}
6 changes: 3 additions & 3 deletions pinax_theme_bootstrap/templates/account/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@

{% block body_class %}account account-settings{% endblock %}

{% block head_title %}Account{% endblock %}
{% block head_title %}{% trans "Account" %}{% endblock %}

{% block body %}
<div class="row">
<div class="col-md-5">
<form method="POST" action="{% url "account_settings" %}">
<legend>Account</legend>
<legend>{% trans "Account" %}</legend>
{% csrf_token %}
{{ form|bootstrap }}
<button class="btn btn-primary" type="submit">Save</button>
<button class="btn btn-primary" type="submit">{% trans "Save" %}</button>
</form>
</div>
</div>
Expand Down

0 comments on commit 920b412

Please sign in to comment.