summaryrefslogtreecommitdiffstats
path: root/forum/skins/default/templates
diff options
context:
space:
mode:
Diffstat (limited to 'forum/skins/default/templates')
-rw-r--r--forum/skins/default/templates/badge.html4
-rw-r--r--forum/skins/default/templates/badges.html9
-rw-r--r--forum/skins/default/templates/user_recent.html2
-rw-r--r--forum/skins/default/templates/user_stats.html40
4 files changed, 15 insertions, 40 deletions
diff --git a/forum/skins/default/templates/badge.html b/forum/skins/default/templates/badge.html
index af6aa2a2..12a12512 100644
--- a/forum/skins/default/templates/badge.html
+++ b/forum/skins/default/templates/badge.html
@@ -3,7 +3,7 @@
{% load i18n %}
{% load extra_tags %}
{% load humanize %}
-{% block title %}{% spaceless %}{{ badge.name }} - {% trans "Badge" %}{% endspaceless %}{% endblock %}
+{% block title %}{% spaceless %}{% trans badge.name %} - {% trans "Badge" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<script type="text/javascript">
$().ready(function(){
@@ -18,7 +18,7 @@
</div>
<div id="main-body" style="width:100%;margin-bottom:20px">
<p>
- <a href="{{badge.get_absolute_url}}" title="{{ badge.get_type_display }} : {{ badge.description }}" class="medal"><span class="badge{{ badge.type }}">&#9679;</span>&nbsp;{{ badge.name }}</a> {{ badge.description }}
+ <a href="{{badge.get_absolute_url}}" title="{{ badge.get_type_display }} : {% trans badge.description %}" class="medal"><span class="badge{{ badge.type }}">&#9679;</span>&nbsp;{% trans badge.name %}</a> {% trans badge.description %}
</p>
<div>
{% if badge.awarded_count %}
diff --git a/forum/skins/default/templates/badges.html b/forum/skins/default/templates/badges.html
index 8de93df5..9fbd6395 100644
--- a/forum/skins/default/templates/badges.html
+++ b/forum/skins/default/templates/badges.html
@@ -34,11 +34,12 @@
{% endfor %}
</div>
<div style="float:left;width:230px;">
- <a href="{{badge.get_absolute_url}}" title="{{ badge.get_type_display }} : {{ badge.description }}" class="medal"><span class="badge{{ badge.type }}">&#9679;</span>&nbsp;{{ badge.name }}</a><strong> &#215; {{ badge.awarded_count|intcomma }}</strong>
+ <a href="{{badge.get_absolute_url}}"
+ title="{% trans badge.get_type_display %} : {% trans badge.description %}"
+ class="medal"><span class="badge{{ badge.type }}">&#9679;</span>&nbsp;{% trans badge.name %}</a><strong>
+ &#215; {{ badge.awarded_count|intcomma }}</strong>
</div>
- <p style="float:left;margin-top:8px;">
- {{ badge.description }}
- </p>
+ <p style="float:left;margin-top:8px;">{% trans badge.description %}</p>
</div>
{% endfor %}
</div>
diff --git a/forum/skins/default/templates/user_recent.html b/forum/skins/default/templates/user_recent.html
index b704ab25..85957599 100644
--- a/forum/skins/default/templates/user_recent.html
+++ b/forum/skins/default/templates/user_recent.html
@@ -12,7 +12,7 @@
</div>
<div style="float:left;overflow:hidden;">
{% ifequal act.type_id 7 %}
- <a href="{{act.badge.get_absolute_url}}" title="{{ act.badge.get_type_display }} : {{ act.badge.description }}" class="medal"><span class="badge{{ act.badge.type }}">&#9679;</span>&nbsp;{{ act.badge.name }}</a>
+ <a href="{{act.badge.get_absolute_url}}" title="{{ act.badge.get_type_display }} : {% act.badge.description %}" class="medal"><span class="badge{{ act.badge.type }}">&#9679;</span>&nbsp;{% trans act.badge.name %}</a>
{% else %}
<span class="post-type-{{ act.type_id }}"><a href="{{ act.title_link }}">{{ act.title }}</a></span>
{% if act.summary %}<span class="revision-summary">{{ act.summary }}</span>{% endif %}
diff --git a/forum/skins/default/templates/user_stats.html b/forum/skins/default/templates/user_stats.html
index 269230c7..ae24a374 100644
--- a/forum/skins/default/templates/user_stats.html
+++ b/forum/skins/default/templates/user_stats.html
@@ -8,24 +8,12 @@
<a name="questions"></a>
{% spaceless %}
- <h2>
- {% blocktrans count questions|length as counter %}
- <span class="count">1</span> Question
- {% plural %}
- <span class="count">{{counter}}</span> Questions
- {% endblocktrans %}
- </h2>
+ <h2>{% blocktrans count questions|length as counter %}<span class="count">1</span> Question{% plural %}<span class="count">{{counter}}</span> Questions{% endblocktrans %}</h2>
{% endspaceless %}
{% include "users_questions.html" %}
<a name="answers"></a>
{% spaceless %}
- <h2>
- {% blocktrans count answered_questions|length as counter %}
- <span class="count">1</span> Answer
- {% plural %}
- <span class="count">{{counter}}</span> Answers
- {% endblocktrans %}
- </h2>
+ <h2>{% blocktrans count answered_questions|length as counter %}<span class="count">1</span> Answer{% plural %}<span class="count">{{counter}}</span> Answers{% endblocktrans %}</h2>
{% endspaceless %}
<div class="user-stats-table">
{% for answered_question in answered_questions %}
@@ -53,13 +41,7 @@
<br/>
<a name="votes"></a>
{% spaceless %}
- <h2>
- {% blocktrans count total_votes as cnt %}
- <span class="count">1</span> Vote
- {% plural %}
- <span class="count">{{cnt}}</span> Votes
- {% endblocktrans %}
- </h2>
+ <h2>{% blocktrans count total_votes as cnt %}<span class="count">1</span> Vote{% plural %}<span class="count">{{cnt}}</span> Votes {% endblocktrans %}</h2>
{% endspaceless %}
<div class="user-stats-table">
<table>
@@ -79,9 +61,7 @@
</div>
<a name="tags"></a>
{% spaceless %}
- <h2>
- {% blocktrans count user_tags|length as counter %}<span class="count">1</span> Tag{% plural %}<span class="count">{{counter}}</span> Tags{% endblocktrans %}
- </h2>
+ <h2>{% blocktrans count user_tags|length as counter %}<span class="count">1</span> Tag{% plural %}<span class="count">{{counter}}</span> Tags{% endblocktrans %}</h2>
{% endspaceless %}
<div class="user-stats-table">
<table class="tags">
@@ -103,20 +83,14 @@
</div>
<a name="badges"></a>
{% spaceless %}
- <h2>
- {% blocktrans count total_awards as counter %}
- <span class="count">1</span> Badge
- {% plural %}
- <span class="count">{{counter}}</span> Badges
- {% endblocktrans %}
- </h2>
+ <h2>{% blocktrans count total_awards as counter %}<span class="count">1</span> Badge{% plural %}<span class="count">{{counter}}</span> Badges{% endblocktrans %}</h2>
{% endspaceless %}
<div class="user-stats-table">
<table>
<tr>
<td width="180" style="line-height:35px">
- {% for award in awards %}
- <a href="{% url badges %}{{award.id}}/{{award.name}}" title="{{ award.description }}" class="medal"><span class="badge{{ award.type }}">&#9679;</span>&nbsp;{{ award.name }}</a><span class="tag-number"> &#215; {{ award.count|intcomma }}</span><br/>
+ {% for award in awards %}{% comment %}todo: translate badge name properly{% endcomment %}
+ <a href="{% url badge award.id %}{{award.name}}" title="{% trans award.description %}" class="medal"><span class="badge{{ award.type }}">&#9679;</span>&nbsp;{% trans award.name %}</a><span class="tag-number"> &#215; {{ award.count|intcomma }}</span><br/>
{% if forloop.counter|divisibleby:"6" %}
</td>
<td width="180" style="line-height:35px">