From: hernani Date: Fri, 16 Apr 2010 23:24:02 +0000 (+0000) Subject: error in votes left message X-Git-Tag: live~1032 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/d557dd2d6795b5815d397a5bf708610847485d96 error in votes left message git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@42 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- 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