From: yomguy Date: Tue, 22 Jan 2013 11:06:24 +0000 (+0100) Subject: UTF8 bug X-Git-Tag: 0.9-probarreau~117 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=66f2eeda805401d2cde8aae8388fac895b9c77f2;p=teleforma.git UTF8 bug --- diff --git a/teleforma/locale/fr/LC_MESSAGES/django.po b/teleforma/locale/fr/LC_MESSAGES/django.po index 4ba4a1a9..edf257e0 100644 --- a/teleforma/locale/fr/LC_MESSAGES/django.po +++ b/teleforma/locale/fr/LC_MESSAGES/django.po @@ -428,7 +428,7 @@ msgstr "réponse" #: models/pro.py:146 templates/teleforma/seminar_detail.html:50 #: templates/teleforma/seminars.html:98 views/pro.py:298 msgid "validated" -msgstr "validé" +msgstr "validée" #: models/pro.py:147 msgid "date submitted" @@ -835,7 +835,7 @@ msgstr "Consultations" #: templates/teleforma/testimonials.html:83 #: templates/teleforma/inc/answer_list.html:41 msgid " validated" -msgstr "validé" +msgstr " validé" #: templates/teleforma/answers.html:25 #: templates/teleforma/course_media.html:34 @@ -1268,7 +1268,7 @@ msgstr "enregistrée le" #: templates/teleforma/inc/question_list.html:25 #: templates/teleforma/inc/question_step.html:16 msgid "Validated" -msgstr "validé" +msgstr "Validé" #: templates/teleforma/inc/seminar_description.html:12 msgid "duration" diff --git a/teleforma/views/pro.py b/teleforma/views/pro.py index 9508f6d9..a907c71e 100644 --- a/teleforma/views/pro.py +++ b/teleforma/views/pro.py @@ -294,8 +294,9 @@ class AnswersView(ListView): else: text = render_to_string('teleforma/messages/answer_validated.txt', context) - subject = seminar.title + ' : ' + unicode(_('answer')) + 'n°' + \ - context['rank'] + ' ' + unicode(_('validated')).decode('utf8') + a = _('answer').decode('utf8') + v = _('validated').decode('utf8') + subject = '%s : %s n° %s %s' % (seminar.title, a, str(context['rank']), v) mess = Message(sender=sender, recipient=user, subject=subject, body=text) mess.moderation_status = 'a'