summaryrefslogtreecommitdiff
path: root/templates/vote.html
diff options
context:
space:
mode:
authoretienne2008-08-20 00:01:23 +0000
committeretienne2008-08-20 00:01:23 +0000
commit91ecaf80b3959bc902c713bd8556757b296a2bd0 (patch)
tree48ad13ef81c0eaec18804045c73a59278bbe89e0 /templates/vote.html
parentb638469a22df4fb92da63a54295347024cb55eb4 (diff)
Internationalization of the application
Diffstat (limited to 'templates/vote.html')
-rw-r--r--templates/vote.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/vote.html b/templates/vote.html
index 1b862c4..0174a18 100644
--- a/templates/vote.html
+++ b/templates/vote.html
@@ -1,3 +1,4 @@
+{% load i18n %}
{% extends "base.html" %}
{% block content %}
@@ -17,7 +18,7 @@
<td class='simple'></td>
<td><input type='text' name='author_name' value='{{voter.name}}'/></td>
{% for vote in voter.votes %}<td><input type='checkbox' name='{%if vote.id%}vote_{{vote.id}}{%else%}choice_{{vote}}{%endif%}'{%ifequal vote.value 1%} checked='checked'{%endifequal%}/></td>{%endfor%}
- {%else%}<td class='simple'><a href='?voter={{voter.id}}'>Edit</a></td>
+ {%else%}<td class='simple'><a href='?voter={{voter.id}}'>{% trans "Edit" %}</a></td>
<td>{{voter.name}}</td>
{% for vote in voter.votes %}<td class='{%ifequal vote.value 1%}OK{%else%}KO{%endifequal%}'>{% ifequal vote.value 1%}Yes{%else%}No{%endifequal%}</td>
{%endfor%}
@@ -31,12 +32,12 @@
</tr>
{%endif%}
<tr id='sum'>
- <td class='simple'></td><th>Sum</th>
+ <td class='simple'></td><th>{% trans "Sum" %}</th>
{% for sum in choices_sum %}<td>{{sum}}</td>
{% endfor %}
</tr>
</table>
</div>
- <input type='submit' value='{%if current_voter_id%}Edit{%else%}Participate{%endif%}'/>
+ <input type='submit' value='{%if current_voter_id%}{% trans "Edit" %}{%else%}{% trans "Participate" %}{%endif%}'/>
</form>
{% endblock %}