From: yomguy Date: Fri, 14 Dec 2012 14:08:09 +0000 (+0100) Subject: fix titles X-Git-Tag: 0.9-probarreau~256 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e2575fb217be437776d32df53a8da6ea519e7a6b;p=teleforma.git fix titles --- diff --git a/teleforma/locale/fr/LC_MESSAGES/django.mo b/teleforma/locale/fr/LC_MESSAGES/django.mo index b05773f0..b8740c50 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 0478b938..4b31b95c 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: 2012-12-14 11:49+0100\n" +"POT-Creation-Date: 2012-12-14 15:07+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Guillaume Pellerin \n" "Language-Team: LANGUAGE \n" @@ -961,27 +961,47 @@ msgstr "Aide" msgid "Informations" msgstr "Informations" -#: templates/teleforma/seminar_detail.html:43 +#: templates/teleforma/seminar_detail.html:44 msgid "Step 1 : read the following documents" msgstr "Étape 1 : lisez les documents suivants" -#: templates/teleforma/seminar_detail.html:49 +#: templates/teleforma/seminar_detail.html:48 +msgid "Step 1 : read the following document" +msgstr "Étape 1 : lisez le document suivant" + +#: templates/teleforma/seminar_detail.html:56 msgid "Step 2 : view the following conferences" msgstr "Étape 2 : visionnez les conférences suivantes" -#: templates/teleforma/seminar_detail.html:55 +#: templates/teleforma/seminar_detail.html:60 +msgid "Step 2 : view the following conference" +msgstr "Étape 2 : visionnez la conférence suivante" + +#: templates/teleforma/seminar_detail.html:68 msgid "Step 3 : read the following documents" -msgstr "Étape 3 : lisez les documents suivants" +msgstr "Étape 3 : lisez le documents suivants" + +#: templates/teleforma/seminar_detail.html:72 +msgid "Step 3 : read the following document" +msgstr "Étape 3 : lisez les documents suivant" -#: templates/teleforma/seminar_detail.html:61 +#: templates/teleforma/seminar_detail.html:80 msgid "Step 4 : answer to the following questions" msgstr "Étape 4 : réalisez les consultations fictives suivantes" -#: templates/teleforma/seminar_detail.html:68 +#: templates/teleforma/seminar_detail.html:84 +msgid "Step 4 : answer to the following question" +msgstr "Étape 4 : réalisez la consultation fictive suivante" + +#: templates/teleforma/seminar_detail.html:93 msgid "Step 5 : read the following corrected documents" msgstr "Étape 5 : lisez les documents corrigés suivants" -#: templates/teleforma/seminar_detail.html:83 +#: templates/teleforma/seminar_detail.html:97 +msgid "Step 5 : read the following corrected document" +msgstr "Étape 5 : lisez le document corrigé suivant" + +#: templates/teleforma/seminar_detail.html:113 msgid "Progression" msgstr "Progression" diff --git a/teleforma/templates/teleforma/seminar_detail.html b/teleforma/templates/teleforma/seminar_detail.html index 5ee4b5fc..6b3294da 100644 --- a/teleforma/templates/teleforma/seminar_detail.html +++ b/teleforma/templates/teleforma/seminar_detail.html @@ -40,34 +40,64 @@ {% with seminar.docs_1 as docs %} - {% with _("Step 1 : read the following documents") as title %} - {% include "teleforma/inc/document_simple_list.html" %} + {% if docs.all.count > 1 %} + {% with _("Step 1 : read the following documents") as title %} + {% include "teleforma/inc/document_simple_list.html" %} {% endwith %} + {% else %} + {% with _("Step 1 : read the following document") as title %} + {% include "teleforma/inc/document_simple_list.html" %} + {% endwith %} + {% endif %} {% endwith %} {% with seminar.media as media_packages %} - {% with _("Step 2 : view the following conferences") as title %} - {% include "teleforma/inc/media_package_list.html" %} - {% endwith %} + {% if media_packages.all.count > 1 %} + {% with _("Step 2 : view the following conferences") as title %} + {% include "teleforma/inc/media_package_list.html" %} + {% endwith %} + {% else %} + {% with _("Step 2 : view the following conference") as title %} + {% include "teleforma/inc/media_package_list.html" %} + {% endwith %} + {% endif %} {% endwith %} - + {% with seminar.docs_2 as docs %} - {% with _("Step 3 : read the following documents") as title %} - {% include "teleforma/inc/document_simple_list.html" %} + {% if docs.all.count > 1 %} + {% with _("Step 3 : read the following documents") as title %} + {% include "teleforma/inc/document_simple_list.html" %} {% endwith %} + {% else %} + {% with _("Step 3 : read the following document") as title %} + {% include "teleforma/inc/document_simple_list.html" %} + {% endwith %} + {% endif %} {% endwith %} - + {% with seminar.question as questions %} - {% with _("Step 4 : answer to the following questions") as title %} - {% include "teleforma/inc/question_list.html" %} - {% endwith %} + {% if questions.all.count > 1 %} + {% with _("Step 4 : answer to the following questions") as title %} + {% include "teleforma/inc/question_list.html" %} + {% endwith %} + {% else %} + {% with _("Step 4 : answer to the following question") as title %} + {% include "teleforma/inc/question_list.html" %} + {% endwith %} + {% endif %} {% endwith %} {% if validated %} {% with seminar.docs_correct as docs %} + {% if docs.all.count > 1 %} {% with _("Step 5 : read the following corrected documents") as title %} {% include "teleforma/inc/document_simple_list.html" %} {% endwith %} + {% else %} + {% with _("Step 5 : read the following corrected document") as title %} + {% include "teleforma/inc/document_simple_list.html" %} + {% endwith %} + {% endif %} {% endwith %} {% endif %}