summaryrefslogtreecommitdiffstats
path: root/templates/paginator.html
diff options
context:
space:
mode:
authorMike Chen <chagel@gmail.com>2009-07-15 21:55:03 +0800
committerMike Chen <chagel@gmail.com>2009-07-15 21:55:03 +0800
commit9ddc17616f4dc9955533623e01f0635581adee40 (patch)
tree9ac1f82adc77957e580a798edd17162cb3cf244a /templates/paginator.html
parentd3b7efc1eba6f38fba8d5110c7155f477d1459e6 (diff)
downloadaskbot-9ddc17616f4dc9955533623e01f0635581adee40.tar.gz
askbot-9ddc17616f4dc9955533623e01f0635581adee40.tar.bz2
askbot-9ddc17616f4dc9955533623e01f0635581adee40.zip
translate questions page
Diffstat (limited to 'templates/paginator.html')
-rw-r--r--templates/paginator.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/templates/paginator.html b/templates/paginator.html
index 3e8bd856..ae8329cb 100644
--- a/templates/paginator.html
+++ b/templates/paginator.html
@@ -1,7 +1,8 @@
{% spaceless %}
+{% load i18n %}
{% if is_paginated %}
<div class="paginator">
-{% if has_previous %}<span class="prev"><a href="{{base_url}}page={{ previous }}{{ extend_url }}" title="上一页">&laquo; 上一页</a></span>{% endif %}
+{% if has_previous %}<span class="prev"><a href="{{base_url}}page={{ previous }}{{ extend_url }}" title="{% trans 'Previous'%}">&laquo; <% trans "Previous" %></a></span>{% endif %}
{% if not in_leading_range %}
{% for num in pages_outside_trailing_range %}
@@ -14,17 +15,17 @@
{% ifequal num page %}
{% ifequal pages 1 %}
{% else %}
- <span class="curr" title="当前页">{{ num }}</span>
+ <span class="curr" title='<% trans "Current page" %>'>{{ num }}</span>
{% endifequal %}
{% else %}
- <span class="page"><a href="{{base_url}}page={{ num }}{{ extend_url }}" title="第{{ num }}页">{{ num }}</a></span>
+ <span class="page"><a href="{{base_url}}page={{ num }}{{ extend_url }}" title="No.{{ num }}">{{ num }}</a></span>
{% endifequal %}
{% endfor %}
{% if not in_trailing_range %}
...
{% for num in pages_outside_leading_range reversed %}
- <span class="page"><a href="{{base_url}}page={{ num }}{{ extend_url }}" title="第{{ num }}页">{{ num }}</a></span>
+ <span class="page"><a href="{{base_url}}page={{ num }}{{ extend_url }}" title="No.{{ num }}">{{ num }}</a></span>
{% endfor %}
{% endif %}
@@ -32,4 +33,4 @@
</div>
{% endif %}
-{% endspaceless %} \ No newline at end of file
+{% endspaceless %}