Marked a few strings for translation.

This commit is contained in:
Jannis Leidel 2010-03-16 15:19:54 +01:00
parent 929c8a0e4f
commit 6bc17d0668
3 changed files with 14 additions and 12 deletions

View file

@ -1,14 +1,14 @@
{% extends "avatar/base.html" %}
{% load avatar_tags %}
{% load i18n avatar_tags %}
{% block content %}
<p>Your current avatar: </p>
<p>{% trans "Your current avatar: " %}</p>
{% avatar user %}
{% if not avatars %}
<p>You haven't uploaded an avatar yet. Please upload one now.</p>
<p>{% trans "You haven't uploaded an avatar yet. Please upload one now." %}</p>
{% endif %}
<form enctype="multipart/form-data" method="POST" action="{% url avatar_add %}">
{{ upload_avatar_form.as_p }}
<p><input type="submit" value="Upload New Image" /></p>
<p><input type="submit" value="{% trans "Upload New Image" %}" /></p>
</form>
{% endblock %}

View file

@ -1,21 +1,21 @@
{% extends "avatar/base.html" %}
{% load avatar_tags %}
{% load i18n avatar_tags %}
{% block content %}
<p>Your current avatar: </p>
<p>{% trans "Your current avatar: " %}</p>
{% avatar user %}
{% if not avatars %}
<p>You haven't uploaded an avatar yet. Please upload one now.</p>
<p>{% trans "You haven't uploaded an avatar yet. Please upload one now." %}</p>
{% else %}
<form method="POST" action="{% url avatar_change %}">
<ul>
{{ primary_avatar_form.as_ul }}
</ul>
<input type="submit" value="Choose new Default" />
<input type="submit" value="{% trans "Choose new Default" %}" />
</form>
{% endif %}
<form enctype="multipart/form-data" method="POST" action="{% url avatar_add %}">
{{ upload_avatar_form.as_p }}
<p><input type="submit" value="Upload New Image" /></p>
<p><input type="submit" value="{% trans "Upload New Image" %}" /></p>
</form>
{% endblock %}

View file

@ -1,15 +1,17 @@
{% extends "avatar/base.html" %}
{% load i18n %}
{% block content %}
<p>Please select the avatars that you would like to delete.</p>
<p>{% trans "Please select the avatars that you would like to delete." %}</p>
{% if not avatars %}
<p>You have no avatars to delete. Please <a href="{% url avatar_change %}">upload one</a> now.</p>
{% url avatar_change as avatar_change_url %}
<p>{% blocktrans %}You have no avatars to delete. Please <a href="{{ avatar_change_url }}">upload one</a> now.{% endblocktrans %}</p>
{% else %}
<form method="POST" action="{% url avatar_delete %}">
<ul>
{{ delete_avatar_form.as_ul }}
</ul>
<input type="submit" value="Delete These" />
<input type="submit" value="{% trans "Delete These" %}" />
</form>
{% endif %}
{% endblock %}