# HG changeset patch
# User rougeronj
# Date 1349099592 -7200
# Node ID fb232b3266b0994841f24a97824f734c7060c8ad
# Parent 7f73fe98d9530f80cf30d2f22f0f861d4860e997
Add "reset front project button" in the content creation/update form
diff -r 7f73fe98d953 -r fb232b3266b0 src/ldt/ldt/forms/widgets.py
--- a/src/ldt/ldt/forms/widgets.py Fri Sep 28 15:37:19 2012 +0200
+++ b/src/ldt/ldt/forms/widgets.py Mon Oct 01 15:53:12 2012 +0200
@@ -23,7 +23,7 @@
class LdtParseVideoDuration(TimeInput):
"""
- A widget allowing to enter the duration format : XhMM, XXhMM, XXXs, XXXsec, HH:MM, HH:MM:SS, HH:MM:SS.SS
+ A widget allowing to enter the duration format (eg: XhMM, XXhMM, HH:MM:SS)
"""
def value_from_datadict(self, data, files, name):
@@ -33,7 +33,7 @@
dur = time.strptime(dur, format)
dur = dur.tm_hour*3600 + dur.tm_min*60 + dur.tm_sec
dur = dur*1000
+ break
except:
logging.debug("trying next format")
- data['content-duration']=dur
- return data['content-duration']
\ No newline at end of file
+ return dur
\ No newline at end of file
diff -r 7f73fe98d953 -r fb232b3266b0 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/create_content.html
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/create_content.html Fri Sep 28 15:37:19 2012 +0200
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/create_content.html Mon Oct 01 15:53:12 2012 +0200
@@ -123,7 +123,10 @@
{% if iri_id and user.is_staff %}
{% trans 'Actual front project' %} : {{ current_front_project }}
- {{ content_form.front_project.label_tag }}{{ content_form.front_project }}
+
+ {{ content_form.front_project.label_tag }}{{ content_form.front_project }}
+
+
{% else %}
{{ content_form.front_project }}
{% endif %}
diff -r 7f73fe98d953 -r fb232b3266b0 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/reset_confirm.html
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/reset_confirm.html Fri Sep 28 15:37:19 2012 +0200
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/reset_confirm.html Mon Oct 01 15:53:12 2012 +0200
@@ -1,4 +1,4 @@
-{% extends "ldt/ldt_raw_base.html" %}
+{% extends "ldt/ldt_utils/workspace_base.html" %}
{% load i18n %} {# form of creation of content #}
@@ -16,19 +16,7 @@
{% endblock %}
-{% block js_declaration %}
-
-{% endblock %}
-
-{% block body %}
+{% block content %}
{% if errors|length > 0 %}{% trans "error" %}{% else %}{% trans "confirm_reset" %}{% endif %}
@@ -45,15 +33,12 @@
- {% if errors|length > 0 %}
-
- {% else %}
- {% endif %}
+
diff -r 7f73fe98d953 -r fb232b3266b0 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/reset_confirm_popup.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/reset_confirm_popup.html Mon Oct 01 15:53:12 2012 +0200
@@ -0,0 +1,61 @@
+{% extends "ldt/ldt_raw_base.html" %}
+
+{% load i18n %} {# form of creation of content #}
+
+{% block js_import %}
+ {{ block.super }}
+
+
+{% endblock %}
+
+{% block css_import %}
+ {{ block.super }}
+ {{ content_form.media.css }}
+
+
+{% endblock %}
+
+
+{% block js_declaration %}
+
+{% endblock %}
+
+{% block body %}
+
+
+
{% if errors|length > 0 %}{% trans "error" %}{% else %}{% trans "confirm" %}{% endif %}
+
+ {{ message }}
+ {% if errors|length > 0 %}
+
+ {% for error_msg in errors %}
+ - {{ error_msg }}
+ {% endfor %}
+
+ {% endif %}
+
+
+
+
+ {% if errors|length > 0 %}
+
+ {% else %}
+
+ {% endif %}
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff -r 7f73fe98d953 -r fb232b3266b0 src/ldt/ldt/ldt_utils/views/content.py
--- a/src/ldt/ldt/ldt_utils/views/content.py Fri Sep 28 15:37:19 2012 +0200
+++ b/src/ldt/ldt/ldt_utils/views/content.py Mon Oct 01 15:53:12 2012 +0200
@@ -6,7 +6,7 @@
from django.core.files import File
#from django.core.files.temp import NamedTemporaryFile
from django.forms.util import ErrorList
-from django.http import HttpResponse
+from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render_to_response, redirect
from django.template import RequestContext
from django.utils.translation import ugettext as _, ungettext
@@ -309,9 +309,29 @@
form_status = "deleted"
content_form = ContentForm()
media_form = MediaForm()
- picture_form = PictureForm()
+ picture_form = PictureForm()
+ elif submit_action == "prepare_reset":
+ errors=[]
+ content_temp = Content.objects.get(iri_id=iri_id)
+ if content_temp.front_project.state==2:
+ errors.append(_("Please unpublish the front project %(title)s") % {'title':content_temp.front_project.title})
+ message=_("The front project is published")
+ title = _("confirm reset")
+ else:
+ message = _("please confirm reseting project %(title)s") % {'title':content_temp.front_project.title}
+ title = _("confirm reset")
+ return render_to_response('ldt/ldt_utils/reset_confirm.html', {'errors':errors, 'message':message, 'title': title}, context_instance=RequestContext(request))
+ elif submit_action == "reset":
+ #TODO : verifier index de la recherche maj
+ content = Content.objects.get(iri_id=iri_id)
+ project_temp = content.front_project
+ content.create_front_project()
+ content.save()
+ project_temp.delete()
+ form_status= 'saved'
+ return HttpResponseRedirect(reverse('ldt.ldt_utils.views.content.write_content', kwargs={'iri_id':iri_id}))
elif submit_action=="close":
- return redirect("root-view")
+ return redirect("root-view")
else:
content_form, media_form, picture_form, form_status, current_front_project = write_content_base(request, iri_id)
if iri_id:
@@ -325,7 +345,7 @@
create_content_action = reverse('ldt.ldt_utils.views.content.write_content', kwargs={'iri_id':iri_id})
img_container = content_form.instance
- else:
+ else:
create_content_action = reverse('ldt.ldt_utils.views.content.write_content')
img_container = ''
diff -r 7f73fe98d953 -r fb232b3266b0 src/ldt/ldt/ldt_utils/views/project.py
--- a/src/ldt/ldt/ldt_utils/views/project.py Fri Sep 28 15:37:19 2012 +0200
+++ b/src/ldt/ldt/ldt_utils/views/project.py Mon Oct 01 15:53:12 2012 +0200
@@ -135,7 +135,7 @@
errors=[]
message = _("please confirm reseting project %(title)s") % {'title':project.title}
title = _("confirm reset")
- return render_to_response('ldt/ldt_utils/reset_confirm.html', {'errors':errors, 'message':message, 'title': title}, context_instance=RequestContext(request))
+ return render_to_response('ldt/ldt_utils/reset_confirm_popup.html', {'errors':errors, 'message':message, 'title': title}, context_instance=RequestContext(request))
elif submit_action == "reset":
#TODO : verifier index de la recher maj
contents[0].create_front_project()
diff -r 7f73fe98d953 -r fb232b3266b0 src/ldt/ldt/locale/fr/LC_MESSAGES/django.mo
Binary file src/ldt/ldt/locale/fr/LC_MESSAGES/django.mo has changed
diff -r 7f73fe98d953 -r fb232b3266b0 src/ldt/ldt/locale/fr/LC_MESSAGES/django.po
--- a/src/ldt/ldt/locale/fr/LC_MESSAGES/django.po Fri Sep 28 15:37:19 2012 +0200
+++ b/src/ldt/ldt/locale/fr/LC_MESSAGES/django.po Mon Oct 01 15:53:12 2012 +0200
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-09-24 12:02+0200\n"
+"POT-Creation-Date: 2012-10-01 11:26+0200\n"
"PO-Revision-Date: 2010-03-09 15:52+0100\n"
"Last-Translator: Yves-Marie Haussonne
\n"
"Language-Team: LANGUAGE \n"
@@ -58,7 +58,7 @@
msgid "Content Tag"
msgstr "Catégorie de contenu"
-#: .\ldt_utils\forms.py:52 .\ldt_utils\models.py:134
+#: .\ldt_utils\forms.py:52 .\ldt_utils\models.py:155
msgid "content.content_creation_date"
msgstr "Date de création du contenu"
@@ -90,7 +90,7 @@
msgid "content.front_project"
msgstr "Choisir le front project"
-#: .\ldt_utils\forms.py:57 .\ldt_utils\models.py:133
+#: .\ldt_utils\forms.py:57 .\ldt_utils\models.py:154
msgid "content.duration"
msgstr "Durée"
@@ -150,59 +150,59 @@
msgid "media.mimetype"
msgstr "mimetype"
-#: .\ldt_utils\models.py:126
+#: .\ldt_utils\models.py:147
msgid "content.iri_id"
msgstr "iri id"
-#: .\ldt_utils\models.py:127
+#: .\ldt_utils\models.py:148
msgid "content.iriurl"
msgstr "iri url"
-#: .\ldt_utils\models.py:128
+#: .\ldt_utils\models.py:149
msgid "content.creation_date"
msgstr "date de création"
-#: .\ldt_utils\models.py:129
+#: .\ldt_utils\models.py:150
msgid "content.update_date"
msgstr "Date de maj"
-#: .\ldt_utils\models.py:130
+#: .\ldt_utils\models.py:151
msgid "content.title"
msgstr "titre"
-#: .\ldt_utils\models.py:131
+#: .\ldt_utils\models.py:152
msgid "content.description"
msgstr "Description"
-#: .\ldt_utils\models.py:132
+#: .\ldt_utils\models.py:153
msgid "content.authors"
msgstr "Auteurs"
-#: .\ldt_utils\models.py:453
+#: .\ldt_utils\models.py:472
msgid "content_stat.content"
msgstr "statistiques d'annotation"
-#: .\ldt_utils\models.py:454
+#: .\ldt_utils\models.py:473
msgid "content_stat.annotations_volume"
msgstr "Volume d'annotations"
-#: .\ldt_utils\models.py:455
+#: .\ldt_utils\models.py:474
msgid "content_stat.polemics_volume"
msgstr "Volume d'annotations"
-#: .\ldt_utils\models.py:456
+#: .\ldt_utils\models.py:475
msgid "content.nb_annotation"
msgstr "nombre d'annotations"
-#: .\ldt_utils\models.py:457
+#: .\ldt_utils\models.py:476
msgid "content.last_annotated"
msgstr "annoté pour la dernière foiss"
-#: .\ldt_utils\models.py:512
+#: .\ldt_utils\models.py:531
msgid "created by"
msgstr "créé par"
-#: .\ldt_utils\models.py:513
+#: .\ldt_utils\models.py:532
msgid "changed by"
msgstr "modifié par"
@@ -410,7 +410,7 @@
#: .\ldt_utils\templates\ldt\ldt_utils\published_projects.html.py:70
#: .\ldt_utils\templates\ldt\ldt_utils\workspace_base.html.py:56
#: .\ldt_utils\templates\ldt\ldt_utils\workspace_base.html.py:71
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:123
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:129
#: .\templates\ldt\ldt_base.html.py:127
msgid "search"
msgstr "Recherche"
@@ -508,23 +508,23 @@
msgid "Copy"
msgstr "Copier"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:32
+#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:33
msgid "Browse"
msgstr "Parcourir"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:33
+#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:34
msgid "File uploaded"
msgstr "Fichier téléversé"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:34
+#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:35
msgid "Please wait, the upload is not finished yet"
msgstr "Veuillez patienter, le téléversement est en cours"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:35
+#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:36
msgid "Cancel upload"
msgstr "Annuler le téléversement"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:61
+#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:71
msgid ""
"The operation could not be performed because one or more error(s) occurred."
"
Please resubmit the media form after making the following changes:"
@@ -532,32 +532,39 @@
"opération impossible à cause d'une ou plusieurs erreurs.
Veuillez "
"resoumettre le formulaire media après avoir fait les changements suivants:"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:75
+#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:85
#: .\ldt_utils\templates\ldt\ldt_utils\workspace_base.html.py:53
msgid "Create content"
msgstr "Créer un contenu"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:115
+#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:126
msgid "Actual front project"
msgstr "Front project actuel"
#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:127
+#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:141
+#: .\ldt_utils\templates\ldt\ldt_utils\reset_confirm.html.py:54
+msgid "reset_front_project"
+msgstr "Réinitialiser"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:141
msgid "media file is being processed please wait."
msgstr "Le fichier média est en cours de traitement. Veuillez patienter."
-#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:131
+#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:145
#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:101
#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:137
#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:37
+#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm_popup.html.py:53
#: .\ldt_utils\templates\ldt\ldt_utils\reset_confirm.html.py:53
msgid "close_cancel"
msgstr "Fermer"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:132
+#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:146
msgid "delete"
msgstr "Effacer"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:133
+#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:147
msgid "write"
msgstr "Enregistrer"
@@ -633,11 +640,6 @@
msgid "delete_project"
msgstr "Effacer"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:141
-#: .\ldt_utils\templates\ldt\ldt_utils\reset_confirm.html.py:54
-msgid "reset_front_project"
-msgstr "Réinitialiser"
-
#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:143
msgid "update_project"
msgstr "Mettre à jour"
@@ -654,39 +656,47 @@
msgid "Select"
msgstr "Sélectionner"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:47
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:46
msgid "popup_player"
msgstr "Code Lecteur métadata"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:47
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:46
msgid "popup_seo_body"
msgstr "Code SEO"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:47
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:46
msgid "popup_seo_meta"
msgstr "Code balise meta en-tête"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:47
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:46
msgid "popup_links"
msgstr "Liste de liens"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:61
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:60
msgid "clik here to see the project content"
msgstr "cliquer ici pour voir le contenu du projet"
#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:21
+#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm_popup.html.py:34
#: .\ldt_utils\templates\ldt\ldt_utils\reset_confirm.html.py:34
msgid "error"
msgstr "Erreur"
#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:21
+#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm_popup.html.py:34
msgid "confirm"
msgstr "Confirmation d'effacement"
#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:38
+#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm_popup.html.py:54
msgid "do_delete"
msgstr "Effacer"
+#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm_popup.html.py:49
+#: .\ldt_utils\templates\ldt\ldt_utils\reset_confirm.html.py:49
+msgid "close_error"
+msgstr "Fermer"
+
#: .\ldt_utils\templates\ldt\ldt_utils\groups.html.py:68
msgid "Do you want to leave this group ?"
msgstr "Voulez-vous quitter ce groupe ?"
@@ -734,10 +744,6 @@
msgid "confirm_reset"
msgstr "Confirmation de réinitialisation"
-#: .\ldt_utils\templates\ldt\ldt_utils\reset_confirm.html.py:49
-msgid "close_error"
-msgstr "Fermer"
-
#: .\ldt_utils\templates\ldt\ldt_utils\search_form.html.py:10
msgid "The search field can not be empty."
msgstr "Le champ de recherche ne peut pas être vide."
@@ -797,60 +803,60 @@
msgid "Projects shared with me only"
msgstr "Projets partagés avec moi uniquement"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:47
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:74
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:168
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:52
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:79
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:174
msgid "share.eye"
msgstr "Cet utilisateur ou ce groupe a le droit de voir cet élement"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:55
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:166
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:60
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:172
msgid "share.pencil"
msgstr "cet utilisateur ou ce groupe a le droit de modifier cet élement"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:105
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:110
msgid "share"
msgstr "partager avec d'autres utilisateurs"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:114
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:119
msgid "publish for everyone"
msgstr "publier pour tout le monde"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:118
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:124
msgid "publish the title on the front"
msgstr "publier le titre sur le front"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:121
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:127
msgid "User and group list"
msgstr "Liste des groupes et des utilisateurs"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:136
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:142
msgid "select all displayed elements"
msgstr "ajouter tous les élements affichés"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:141
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:147
msgid "select users"
msgstr "choisir des utilisateurs"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:142
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:148
msgid "remove users"
msgstr "enlever des utilisateurs"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:147
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:153
msgid "Members list"
msgstr "liste des membres"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:157
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:163
#: .\ldt_utils\templates\ldt\ldt_utils\partial\sharewith.html.py:7
msgid "user"
msgstr "utilisateur"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:159
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:165
#: .\ldt_utils\templates\ldt\ldt_utils\partial\sharewith.html.py:9
msgid "group"
msgstr "groupe"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:179
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:185
msgid "remove all"
msgstr "tout enlever"
@@ -900,35 +906,54 @@
msgid "Project published"
msgstr "Projet publié"
-#: .\ldt_utils\views\content.py:169
+#: .\ldt_utils\views\content.py:183
msgid "Problem when downloading file from url : "
msgstr "Problème lors du téléchargement du fichier : "
-#: .\ldt_utils\views\content.py:172
+#: .\ldt_utils\views\content.py:186
msgid "Problem when uploading file : "
msgstr "Problème lors de l'upload du fichier : "
-#: .\ldt_utils\views\content.py:294
+#: .\ldt_utils\views\content.py:301
#, python-format
msgid "There is %(count)d error when deleting content"
msgid_plural "There are %(count)d errors when deleting content"
msgstr[0] "Il y a %(count)d erreur lors de l'effacement du contenu"
msgstr[1] "Il y a %(count)d erreurs lors de l'effacement du contenu"
-#: .\ldt_utils\views\content.py:295
+#: .\ldt_utils\views\content.py:302
msgid "title error deleting content"
msgstr "Erreur lors de l'effacement du contenu"
-#: .\ldt_utils\views\content.py:297
+#: .\ldt_utils\views\content.py:304
#, python-format
msgid "Confirm delete content %(titles)s"
msgstr "Veuillez confirmer l'effacement du contenu %(titles)s"
-#: .\ldt_utils\views\content.py:298
+#: .\ldt_utils\views\content.py:305
msgid "confirm delete content"
msgstr "Confirmation effacement contenu"
-#: .\ldt_utils\views\content.py:352
+#: .\ldt_utils\views\content.py:317
+#, python-format
+msgid "Please unpublish the front project %(title)s"
+msgstr "Veuillez dépublier le projet : %(title)s"
+
+#: .\ldt_utils\views\content.py:318
+msgid "The front project is published"
+msgstr "Projet publié"
+
+#: .\ldt_utils\views\content.py:319 .\ldt_utils\views\content.py:322
+#: .\ldt_utils\views\project.py:137
+msgid "confirm reset"
+msgstr "Confirmer la réinitialisation"
+
+#: .\ldt_utils\views\content.py:321 .\ldt_utils\views\project.py:136
+#, python-format
+msgid "please confirm reseting project %(title)s"
+msgstr "Veuillez confirmer la réinitialisation du projet %(title)s"
+
+#: .\ldt_utils\views\content.py:382
#, python-format
msgid ""
"Content '%(title)s' is referenced by this project : %(project_titles)s. "
@@ -944,7 +969,7 @@
"(project_titles)s'.Veuillez les effacer préalablement."
#: .\ldt_utils\views\json.py:40 .\ldt_utils\views\rdf.py:15
-#: .\ldt_utils\views\workspace.py:117
+#: .\ldt_utils\views\workspace.py:127
msgid "You can not access this project"
msgstr "vous n'avez pas l'autorisation d'accéder à ce projet"
@@ -980,15 +1005,6 @@
msgid "confirm deletion"
msgstr "Confirmation d'effacement"
-#: .\ldt_utils\views\project.py:136
-#, python-format
-msgid "please confirm reseting project %(title)s"
-msgstr "Veuillez confirmer la réinitialisation du projet %(title)s"
-
-#: .\ldt_utils\views\project.py:137
-msgid "confirm reset"
-msgstr "Confirmer la réinitialisation"
-
#: .\templates\admin\cms_change_form.html.py:30
msgid "Approve page deletion"
msgstr "Accepter l'effacement de la page"
@@ -1331,7 +1347,7 @@
msgid "Profile picture"
msgstr "Image de profil"
-#: .\user\forms.py:133
+#: .\user\forms.py:134
#, python-format
msgid "Image size is limited to %s"
msgstr "La taille de l'image est limitée à %s"