From d557dd2d6795b5815d397a5bf708610847485d96 Mon Sep 17 00:00:00 2001 From: hernani Date: Fri, 16 Apr 2010 23:24:02 +0000 Subject: [PATCH] error in votes left message git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@42 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/views/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum/views/commands.py b/forum/views/commands.py index e2942bd..4ff80f8 100644 --- a/forum/views/commands.py +++ b/forum/views/commands.py @@ -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 -- 2.39.5