From: qw3rty Date: Wed, 12 May 2010 20:04:11 +0000 (+0000) Subject: made the number of answers label translatable. X-Git-Tag: live~891 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/a1d7178d4815eb368d905a35a011200c39692ae9?hp=d019bde269f7a2df07f489d785e5376bf98b3ca9 made the number of answers label translatable. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@238 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/skins/default/templates/question_list/count.html b/forum/skins/default/templates/question_list/count.html index 5108a84..535a829 100644 --- a/forum/skins/default/templates/question_list/count.html +++ b/forum/skins/default/templates/question_list/count.html @@ -9,7 +9,7 @@ {% if answer_count %}
- {{ answer_count }}answers + {{ answer_count }}{{ answer_description }}
{% endif %} diff --git a/forum/views/readers.py b/forum/views/readers.py index 17cea0f..90fdfb4 100644 --- a/forum/views/readers.py +++ b/forum/views/readers.py @@ -92,13 +92,15 @@ def question_list(request, initial, list_description=_('questions'), sort=None, page_title = _("Questions") answer_count = Answer.objects.filter(deleted=None, parent__in=questions).count() - + answer_description = _("answers") + return { "questions" : questions, "questions_count" : questions.count(), "answer_count" : answer_count, #"tags_autocomplete" : _get_tags_cache_json(), "list_description": list_description, + "answer_description": answer_description, "base_path" : base_path, "page_title" : page_title, }