From: jordan Date: Tue, 23 Aug 2011 09:18:56 +0000 (+0000) Subject: OSQA-748, smart unicode filtration for the username in the accept rate singular title X-Git-Tag: live~153 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/8b123b1f0d204c972d5a2554f9b27e4f7d8ae33f OSQA-748, smart unicode filtration for the username in the accept rate singular title git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1164 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/templatetags/extra_tags.py b/forum/templatetags/extra_tags.py index d0bdfc1..e01ff06 100644 --- a/forum/templatetags/extra_tags.py +++ b/forum/templatetags/extra_tags.py @@ -107,7 +107,7 @@ def get_accept_rate(user): } # If the user has one accepted answer we'll be using singular. elif accepted_answers_count == 1: - accept_rate_number_title = _('%s has one accepted answer') % user.username + accept_rate_number_title = _('%s has one accepted answer') % smart_unicode(user.username) # This are the only options. Otherwise there are no accepted answers at all. else: accept_rate_number_title = _('%s has no accepted answers') % smart_unicode(user.username)