]> git.parisson.com Git - teleforma.git/commitdiff
UTF8 bug
authoryomguy <yomguy@parisson.com>
Tue, 22 Jan 2013 11:06:24 +0000 (12:06 +0100)
committeryomguy <yomguy@parisson.com>
Tue, 22 Jan 2013 11:06:24 +0000 (12:06 +0100)
teleforma/locale/fr/LC_MESSAGES/django.po
teleforma/views/pro.py

index 4ba4a1a961ea6e60194414f7782b1c5ee8cfd36e..edf257e0c7df5157df2a1e1c15cdebf4f766a6a5 100644 (file)
@@ -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"
index 9508f6d9db04e7c8fe8181ea50befde3136ef6b2..a907c71e7757fcb28a6676423b3051da38731735 100644 (file)
@@ -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'