From 91ecaf80b3959bc902c713bd8556757b296a2bd0 Mon Sep 17 00:00:00 2001 From: etienne Date: Wed, 20 Aug 2008 00:01:23 +0000 Subject: Internationalization of the application --- templates/createOrEdit.html | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) (limited to 'templates/createOrEdit.html') diff --git a/templates/createOrEdit.html b/templates/createOrEdit.html index 073dcfd..12d9d9d 100644 --- a/templates/createOrEdit.html +++ b/templates/createOrEdit.html @@ -1,64 +1,65 @@ +{% load i18n %} {% extends "base.html" %} {% block content %} {% if not new and not choices %} -

As long as no options were added to the poll, it will not be made available.

+

{% trans "As long as no options were added to the poll, it will not be made available." %}

{% endif %} -

{% if new %}New{% else %}Edit{% endif %} poll

+

{% if new %}{% trans "New poll" %}{% else %}{% trans "Edit poll" %}{% endif %}

{% if error %}

{{ error }}

{% endif %}
{% if not new %} - + - + - + - + {% endif %} - + - + - + - + - + - + {% if not new %}{% if choices %} - + {% for choice in choices %} - {% endfor %}{% endif %} + {% endfor %}{% endif %} {% endif %}
http://{{full_base_url}}Copy this address and send it to voters who want to participate to this poll{% trans "Copy this address and send it to voters who want to participate to this poll" %}
http://{{full_admin_url}}Address to modify the current poll{% trans "Address to modify the current poll" %}
{% if new %}{% else %}{{author_name}}{% endif %}Name, firstname or nickname of the author{% trans "Name, firstname or nickname of the author" %}
{% if new %}{% else %}{{poll_name}}{% endif %}Global name to present the poll{% trans "Global name to present the poll" %}
{% if new %}{% else %}{{poll_desc}}{% endif %}Precise description of the poll{% trans "Precise description of the poll" %}
Choices Delete?{% trans "Choices" %} {% trans "Delete?"%}
 {{choice.name}}
{% if new %} - + {% else %} - + {% endif %}
{% endblock %} -- cgit v1.2.3