]> git.openstreetmap.org Git - osqa.git/commitdiff
error in votes left message
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 16 Apr 2010 23:24:02 +0000 (23:24 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 16 Apr 2010 23:24:02 +0000 (23:24 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@42 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/views/commands.py

index e2942bde8d36e03e8dbe8d5fc1424866dea7c378..4ff80f8c50529acf38462a9b8fee67a90ed6bd06 100644 (file)
@@ -107,7 +107,7 @@ def vote_post(request, id, vote_type):
     votes_left = int(settings.MAX_VOTES_PER_DAY) - user_vote_count_today + (vote_type == 'none' and -1 or 1)
 
     if int(settings.START_WARN_VOTES_LEFT) >= votes_left:
-        response['message'] = _("You have %(nvotes) %(tvotes) left today.") % \
+        response['message'] = _("You have %(nvotes)s %(tvotes)s left today.") % \
                     {'nvotes': votes_left, 'tvotes': ungettext('vote', 'votes', votes_left)}
 
     return response