From: Guillaume Pellerin Date: Mon, 9 Dec 2013 16:29:55 +0000 (+0100) Subject: locales, fix subject X-Git-Tag: 2.8.1-pro~467^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d24795378e8bffb77476e6b66e97d1f6a9ff51ed;p=teleforma.git locales, fix subject --- diff --git a/teleforma/locale/fr/LC_MESSAGES/django.mo b/teleforma/locale/fr/LC_MESSAGES/django.mo index 20590c42..391b182e 100644 Binary files a/teleforma/locale/fr/LC_MESSAGES/django.mo and b/teleforma/locale/fr/LC_MESSAGES/django.mo differ diff --git a/teleforma/locale/fr/LC_MESSAGES/django.po b/teleforma/locale/fr/LC_MESSAGES/django.po index 54a9c52c..79acb9e7 100644 --- a/teleforma/locale/fr/LC_MESSAGES/django.po +++ b/teleforma/locale/fr/LC_MESSAGES/django.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-12-09 16:45+0100\n" +"POT-Creation-Date: 2013-12-09 17:29+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Guillaume Pellerin \n" "Language-Team: LANGUAGE \n" @@ -1454,11 +1454,12 @@ msgstr "" "\n" "Certains de vos séminaires e-learning arrivent bientôt à expiration :" -#: templates/teleforma/messages/seminar_remind.txt:6 +#: templates/teleforma/messages/seminar_remind.txt:5 msgid "expires on" msgstr "arrive à expiration le" -#: templates/teleforma/messages/seminar_remind.txt:8 +#: templates/teleforma/messages/seminar_remind.txt:6 +#, python-format msgid "" "\n" "Nous vous rappelons que vous devez achever vos formations avant ces dates.\n" @@ -1467,20 +1468,19 @@ msgid "" "votre formation (compte-rendu écrit et recueil(s) de documents d'actualité), " "nous vous rappelons que ceux-ci sont entièrement téléchargeables sur la " "plate-forme e-learning de %(organization)s jusqu'aux dates d'expiration de " -"chaque séminaire.\"\n" +"chaque séminaire.\n" "\n" "The team of the %(organization)s thank you for your confidence and we remain " "at your disposal for further information.\n" msgstr "" -"%(gender)s %(last_name)s,\n" "\n" -"Nous vous rappelons que vous devez achever votre formation avant cette " -"date.\n" +"Nous vous rappelons que vous devez achever vos formations avant ces dates.\n" "\n" "De plus, si vous souhaitez conserver les supports pédagogiques écrits de " "votre formation (compte-rendu écrit et recueil(s) de documents d'actualité), " "nous vous rappelons que ceux-ci sont entièrement téléchargeables sur la " -"plate-forme e-learning de Pro-Barreau jusqu'au %(date)s.\"\n" +"plate-forme e-learning de %(organization)s jusqu'aux dates d'expiration de " +"chaque séminaire.\n" "\n" "L’équipe e-learning de %(organization)s vous remercie de votre confiance et " "reste à votre disposition pour tout renseignement complémentaire.\n" diff --git a/teleforma/management/commands/teleforma-message-all-seminar-users.py b/teleforma/management/commands/teleforma-message-all-seminar-users.py index 290e3a26..ef054176 100644 --- a/teleforma/management/commands/teleforma-message-all-seminar-users.py +++ b/teleforma/management/commands/teleforma-message-all-seminar-users.py @@ -59,8 +59,8 @@ class Command(BaseCommand): text = render_to_string(self.message_template, context) subject = render_to_string(self.subject_template, context) - subject = '%s : %s' % (seminar.title, subject) - + # subject = '%s : %s' % (seminar.title, subject) + mess = Message(sender=sender, recipient=user, subject=subject[:119], body=text) mess.moderation_status = 'a' mess.save() diff --git a/teleforma/templates/teleforma/messages/seminar_remind.txt b/teleforma/templates/teleforma/messages/seminar_remind.txt index f97382d4..66c586b8 100644 --- a/teleforma/templates/teleforma/messages/seminar_remind.txt +++ b/teleforma/templates/teleforma/messages/seminar_remind.txt @@ -1,14 +1,12 @@ {% load i18n %}{% autoescape off %}{% blocktrans %}{{ gender }} {{ last_name }}, Certains de vos séminaires e-learning arrivent bientôt à expiration :{% endblocktrans %} - {% for seminar in seminars %} - * "{% if seminar.sub_title %}{{ seminar.sub_title }}{% else %}{{ seminar.title }}{% endif %}" {% trans "expires on" %} {{ seminar.expiry_date }}. -{% endfor %} -{% blocktrans %} + * "{% if seminar.sub_title %}{{ seminar.sub_title }}{% else %}{{ seminar.title }}{% endif %}" {% trans "expires on" %} {{ seminar.expiry_date }}. +{% endfor %}{% blocktrans %} Nous vous rappelons que vous devez achever vos formations avant ces dates. -De plus, si vous souhaitez conserver les supports pédagogiques écrits de votre formation (compte-rendu écrit et recueil(s) de documents d'actualité), nous vous rappelons que ceux-ci sont entièrement téléchargeables sur la plate-forme e-learning de {{ organization }} jusqu'aux dates d'expiration de chaque séminaire." +De plus, si vous souhaitez conserver les supports pédagogiques écrits de votre formation (compte-rendu écrit et recueil(s) de documents d'actualité), nous vous rappelons que ceux-ci sont entièrement téléchargeables sur la plate-forme e-learning de {{ organization }} jusqu'aux dates d'expiration de chaque séminaire. The team of the {{ organization }} thank you for your confidence and we remain at your disposal for further information. {% endblocktrans %}{% endautoescape %}