]> git.openstreetmap.org Git - osqa.git/commitdiff
made the number of answers label translatable.
authorqw3rty <qw3rty@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 12 May 2010 20:04:11 +0000 (20:04 +0000)
committerqw3rty <qw3rty@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 12 May 2010 20:04:11 +0000 (20:04 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@238 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/templates/question_list/count.html
forum/views/readers.py

index 5108a8431c4338e48d729af3c253b4b0b0da6161..535a829e3caeeb6749733b263d9708af055d7d78 100644 (file)
@@ -9,7 +9,7 @@
 \r
     {% if answer_count %}\r
     <div class="questions-count" style="color:green">\r
 \r
     {% if answer_count %}\r
     <div class="questions-count" style="color:green">\r
-        {{ answer_count }}<span style="color:black;font-size:14px;margin-left:5px">answers</span>\r
+        {{ answer_count }}<span style="color:black;font-size:14px;margin-left:5px">{{ answer_description }}</span>\r
     </div>\r
 \r
     {% endif %}\r
     </div>\r
 \r
     {% endif %}\r
index 17cea0fe2599c86331b61f3afb6804d8205327b4..90fdfb467e3a8059e730461616b63a7f47083c21 100644 (file)
@@ -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()   
         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,
     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,
         }
         "base_path" : base_path,
         "page_title" : page_title,
         }