From d24795378e8bffb77476e6b66e97d1f6a9ff51ed Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 9 Dec 2013 17:29:55 +0100 Subject: [PATCH] locales, fix subject --- teleforma/locale/fr/LC_MESSAGES/django.mo | Bin 19325 -> 20752 bytes teleforma/locale/fr/LC_MESSAGES/django.po | 16 ++++++++-------- .../teleforma-message-all-seminar-users.py | 4 ++-- .../teleforma/messages/seminar_remind.txt | 8 +++----- 4 files changed, 13 insertions(+), 15 deletions(-) diff --git a/teleforma/locale/fr/LC_MESSAGES/django.mo b/teleforma/locale/fr/LC_MESSAGES/django.mo index 20590c425ee35d22d844e0bb23cb8f96ced0ae66..391b182e509eb59a16a69656e71666efe756ab3a 100644 GIT binary patch delta 7014 zcmeI$d3aRS9meq+l8_K~LI|5=Ffjy3SRyI1ud*qkh=5ALVKR`>Y|LZ;#b(^t6cCM| z7NJx?2?&Z&3NCDsDp7DjT&NWgwJM5I5e3Bd`_BEv$EW|cfA&7lo6kAt-g~xtXA-!u zJZ9E182DU_NT5_nVKRR=&p0 zZ${00D{7+Es0r1eKCuT;kKi*@KWFT`lj%;h9%^E3F%Bc$C}`k3jK_XfAA%bA3RH*V zQ3FgzP2g74!1GWY-H+OlhwS_sRKL%l`rU?gaR=)9y~yVRfg2 zyF*E+_7!M-A8yWAPfCfY;%*xC!;m8q?8z=IyXQ^#aV&=l@9x+4vTA z#S3^l=5*q#6E|RI9M6vdco!z%9^^%KYETnBiFNTb^6l%KN4~Y46gp4D9Mr^rhkCT5 zF`~jm3R;=ZEIr~w5OqN$g}n#<`~p~H=n4e>R>H4#Eqzqx1%Po12wT%%mb)?K0tkpk6QaF zGjg7SRus>hr;ZvSzoMOF)E4HV-rnJ;Z@PTcb+a(K<){JXT79wAm!l@S3N@j1s0lo6 z=Xbg75$81uTG>0;2#=sTK8aea}_Rebj?^Jul6B*pmCZUFJB0 zab$1zFP%mFxua*j4>hqvsQy2}6n*|rP*BG){oEa>hl{AU#5TAN^{jW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5Je|LZiZNDeS0ww>?MTjB4B~wWs(wUqky@|FRfxrAB!f&iB{!Tt4 z+1jx!gh72uxg8m&`A?_tJF\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 %} -- 2.39.5