Commit 1cb5aab6 authored by Luc Didry's avatar Luc Didry
Browse files

Remove Item from localStorage when deleted (button or expired)

parent 0c23c9ba
......@@ -73,7 +73,8 @@ sub get_counter {
return $c->render(
json => {
success => true,
counter => $images[0]->counter
counter => $images[0]->counter,
enabled => ($images[0]->enabled) ? true : false
}
);
}
......@@ -172,21 +173,51 @@ sub delete {
$c->app->log->info('[DELETION] someone made '.$image->filename.' removed with token method (path: '.$image->path.')');
$c->delete_image($image);
$c->flash(
success => $c->l('The image %1 has been successfully deleted', $image->filename)
return $c->respond_to(
json => {
json => {
success => true,
msg => $c->l('The image %1 has been successfully deleted', $image->filename)
}
},
any => sub {
$c->flash(
success => $c->l('The image %1 has been successfully deleted', $image->filename)
);
return $c->redirect_to('/');
}
);
return $c->redirect_to('/');
}
$c->flash(
msg => $msg
return $c->respond_to(
json => {
json => {
success => false,
msg => $msg
}
},
any => sub {
$c->flash(
msg => $msg
);
return $c->redirect_to('/');
}
);
return $c->redirect_to('/');
} else {
$c->app->log->info('[UNSUCCESSFUL] someone tried to delete '.$short.' but it does\'nt exist.');
# Image never existed
$c->render_not_found;
return $c->respond_to(
json => {
json => {
success => false,
msg => $c->l('Unable to find the image %1.', $short)
}
},
any => sub {
shift->render_not_found;
}
);
}
}
......
......@@ -18,9 +18,9 @@ msgstr ""
#. ($delay)
#. (config('max_delay')
#: templates/partial/lutim.js.ep:116
#: templates/partial/lutim.js.ep:125
#: templates/partial/lutim.js.ep:126
#: templates/partial/lutim.js.ep:119
#: templates/partial/lutim.js.ep:128
#: templates/partial/lutim.js.ep:129
msgid "%1 days"
msgstr ""
......@@ -38,15 +38,15 @@ msgid "1 year"
msgstr "1 year"
#: templates/index.html.ep:4
#: templates/partial/lutim.js.ep:125
#: templates/partial/lutim.js.ep:128
msgid "24 hours"
msgstr "24 hours"
#: templates/myfiles.html.ep:72
#: templates/myfiles.html.ep:74
msgid ": Error while trying to get the counter."
msgstr ""
#: lib/Lutim/Controller.pm:238
#: lib/Lutim/Controller.pm:268
msgid "An error occured while downloading the image."
msgstr "An error occured while downloading the image."
......@@ -65,9 +65,9 @@ msgstr "Click to open the file browser"
msgid "Contributors"
msgstr "Contributors"
#: templates/partial/lutim.js.ep:164
#: templates/partial/lutim.js.ep:201
#: templates/partial/lutim.js.ep:263
#: templates/partial/lutim.js.ep:167
#: templates/partial/lutim.js.ep:205
#: templates/partial/lutim.js.ep:267
msgid "Copy all view links to clipboard"
msgstr ""
......@@ -75,10 +75,10 @@ msgstr ""
#: templates/index.html.ep:41
#: templates/index.html.ep:49
#: templates/index.html.ep:57
#: templates/partial/lutim.js.ep:104
#: templates/partial/lutim.js.ep:106
#: templates/partial/lutim.js.ep:108
#: templates/partial/lutim.js.ep:110
#: templates/partial/lutim.js.ep:107
#: templates/partial/lutim.js.ep:109
#: templates/partial/lutim.js.ep:111
#: templates/partial/lutim.js.ep:113
msgid "Copy to clipboard"
msgstr "Copy to clipboard"
......@@ -90,19 +90,19 @@ msgstr ""
#: templates/index.html.ep:142
#: templates/index.html.ep:79
#: templates/myfiles.html.ep:16
#: templates/partial/lutim.js.ep:134
#: templates/partial/lutim.js.ep:137
msgid "Delete at first view?"
msgstr "Delete at first view?"
#: templates/index.html.ep:62
#: templates/myfiles.html.ep:19
#: templates/partial/common.js.ep:12
#: templates/partial/common.js.ep:36
msgid "Deletion link"
msgstr "Deletion link"
#: templates/index.html.ep:45
#: templates/index.html.ep:47
#: templates/partial/lutim.js.ep:106
#: templates/partial/lutim.js.ep:109
msgid "Download link"
msgstr "Download link"
......@@ -201,7 +201,7 @@ msgstr "Keep EXIF tags"
#: templates/index.html.ep:130
#: templates/index.html.ep:170
#: templates/index.html.ep:82
#: templates/partial/lutim.js.ep:136
#: templates/partial/lutim.js.ep:139
msgid "Let's go!"
msgstr "Let's go!"
......@@ -211,7 +211,7 @@ msgstr "License:"
#: templates/index.html.ep:53
#: templates/index.html.ep:55
#: templates/partial/lutim.js.ep:108
#: templates/partial/lutim.js.ep:111
msgid "Link for share on social networks"
msgstr "Link for share on social networks"
......@@ -225,7 +225,7 @@ msgstr "Main developers"
#: templates/index.html.ep:37
#: templates/index.html.ep:39
#: templates/partial/lutim.js.ep:104
#: templates/partial/lutim.js.ep:107
msgid "Markdown syntax"
msgstr "Markdown syntax"
......@@ -234,7 +234,7 @@ msgstr "Markdown syntax"
msgid "My images"
msgstr ""
#: templates/myfiles.html.ep:38
#: templates/myfiles.html.ep:39
msgid "No limit"
msgstr ""
......@@ -268,7 +268,7 @@ msgid "Share on Twitter"
msgstr "Share on Twitter"
#: templates/index.html.ep:97
#: templates/partial/lutim.js.ep:139
#: templates/partial/lutim.js.ep:142
msgid "Something bad happened"
msgstr "Something bad happened"
......@@ -280,7 +280,7 @@ msgstr "The IP address of the image's sender is retained for a delay which depen
msgid "The Lutim software is a <a href=\"http://en.wikipedia.org/wiki/Free_software\">free software</a>, which allows you to download and install it on you own server. Have a look at the <a href=\"https://www.gnu.org/licenses/agpl-3.0.html\">AGPL</a> to see what you can do."
msgstr "The Lutim software is a <a href=\"http://en.wikipedia.org/wiki/Free_software\">free software</a>, which allows you to download and install it on you own server. Have a look at the <a href=\"https://www.gnu.org/licenses/agpl-3.0.html\">AGPL</a> to see what you can do."
#: lib/Lutim/Controller.pm:257
#: lib/Lutim/Controller.pm:287
msgid "The URL is not valid."
msgstr "The URL is not valid."
......@@ -290,16 +290,16 @@ msgid "The delete token is invalid."
msgstr "The delete token is invalid."
#. ($upload->filename)
#: lib/Lutim/Controller.pm:396
#: lib/Lutim/Controller.pm:426
msgid "The file %1 is not an image."
msgstr "The file %1 is not an image."
#. ($max_file_size)
#. ($tx->res->max_message_size)
#. ($c->req->max_message_size)
#: lib/Lutim/Controller.pm:221
#: lib/Lutim/Controller.pm:290
#: templates/partial/lutim.js.ep:177
#: lib/Lutim/Controller.pm:251
#: lib/Lutim/Controller.pm:320
#: templates/partial/lutim.js.ep:181
msgid "The file exceed the size limit (%1)"
msgstr "The file exceed the size limit (%1)"
......@@ -313,7 +313,8 @@ msgid "The image %1 has already been deleted."
msgstr "The image %1 has already been deleted."
#. ($image->filename)
#: lib/Lutim/Controller.pm:176
#: lib/Lutim/Controller.pm:179
#: lib/Lutim/Controller.pm:184
msgid "The image %1 has been successfully deleted"
msgstr "The image %1 has been successfully deleted"
......@@ -330,7 +331,7 @@ msgid "The images you post on Lutim can be stored indefinitely or be deleted at
msgstr "The images you post on Lutim can be stored indefinitely or be deleted at first view or after a delay selected from those proposed."
#. ($c->config->{contact})
#: lib/Lutim/Controller.pm:391
#: lib/Lutim/Controller.pm:421
msgid "There is no more available URL. Retry or contact the administrator. %1"
msgstr "There is no more available URL. Retry or contact the administrator. %1"
......@@ -341,13 +342,14 @@ msgstr "Tweet it!"
#. ($short)
#: lib/Lutim/Controller.pm:141
#: lib/Lutim/Controller.pm:213
msgid "Unable to find the image %1."
msgstr "Unable to find the image %1."
#: lib/Lutim.pm:52
#: lib/Lutim/Controller.pm:480
#: lib/Lutim/Controller.pm:526
#: lib/Lutim/Controller.pm:570
#: lib/Lutim/Controller.pm:510
#: lib/Lutim/Controller.pm:556
#: lib/Lutim/Controller.pm:600
msgid "Unable to find the image: it has been deleted."
msgstr "Unable to find the image: it has been deleted."
......@@ -380,7 +382,7 @@ msgstr "Uploading is currently disabled, please try later or contact the adminis
#: templates/index.html.ep:29
#: templates/index.html.ep:31
#: templates/myfiles.html.ep:14
#: templates/partial/lutim.js.ep:102
#: templates/partial/lutim.js.ep:105
msgid "View link"
msgstr "View link"
......
......@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Lutim\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2015-09-17 21:53+0000\n"
"PO-Revision-Date: 2015-09-17 22:00+0000\n"
"Last-Translator: Luc Didry <luc@didry.org>\n"
"Language-Team: Spanish (http://www.transifex.com/fiat-tux/lutim/language/es/)\n"
"MIME-Version: 1.0\n"
......@@ -20,8 +20,8 @@ msgstr ""
#. ($delay)
#. (config('max_delay')
#: templates/partial/lutim.js.ep:116 templates/partial/lutim.js.ep:125
#: templates/partial/lutim.js.ep:126
#: templates/partial/lutim.js.ep:119 templates/partial/lutim.js.ep:128
#: templates/partial/lutim.js.ep:129
msgid "%1 days"
msgstr "%1 días"
......@@ -38,19 +38,19 @@ msgstr "-o-"
msgid "1 year"
msgstr "1 año"
#: templates/index.html.ep:4 templates/partial/lutim.js.ep:125
#: templates/index.html.ep:4 templates/partial/lutim.js.ep:128
msgid "24 hours"
msgstr "24 horas"
#: templates/myfiles.html.ep:68
#: templates/myfiles.html.ep:74
msgid ": Error while trying to get the counter."
msgstr ": Error al intentar obtener el contador."
#: lib/Lutim/Controller.pm:238
#: lib/Lutim/Controller.pm:268
msgid "An error occured while downloading the image."
msgstr "Error al intentar modificar la imagen."
#: templates/about.html.ep:40 templates/myfiles.html.ep:23
#: templates/about.html.ep:40 templates/myfiles.html.ep:27
#: templates/stats.html.ep:13
msgid "Back to homepage"
msgstr "Volver a la página inicial"
......@@ -63,35 +63,35 @@ msgstr "Clic para abrir el explorador de archivos"
msgid "Contributors"
msgstr "Contribuidores"
#: templates/partial/lutim.js.ep:164 templates/partial/lutim.js.ep:201
#: templates/partial/lutim.js.ep:263
#: templates/partial/lutim.js.ep:167 templates/partial/lutim.js.ep:205
#: templates/partial/lutim.js.ep:267
msgid "Copy all view links to clipboard"
msgstr "Copiar todos los enlaces de visualización al portapapeles"
#: templates/index.html.ep:33 templates/index.html.ep:41
#: templates/index.html.ep:49 templates/index.html.ep:57
#: templates/partial/lutim.js.ep:104 templates/partial/lutim.js.ep:106
#: templates/partial/lutim.js.ep:108 templates/partial/lutim.js.ep:110
#: templates/partial/lutim.js.ep:107 templates/partial/lutim.js.ep:109
#: templates/partial/lutim.js.ep:111 templates/partial/lutim.js.ep:113
msgid "Copy to clipboard"
msgstr "Copiar al portapapeles"
#: templates/myfiles.html.ep:11
#: templates/myfiles.html.ep:15
msgid "Counter"
msgstr "Contador"
#: templates/index.html.ep:111 templates/index.html.ep:142
#: templates/index.html.ep:79 templates/myfiles.html.ep:12
#: templates/partial/lutim.js.ep:134
#: templates/index.html.ep:79 templates/myfiles.html.ep:16
#: templates/partial/lutim.js.ep:137
msgid "Delete at first view?"
msgstr "¿Borrar en la primera vista?"
#: templates/index.html.ep:62 templates/myfiles.html.ep:15
#: templates/partial/common.js.ep:12
#: templates/index.html.ep:62 templates/myfiles.html.ep:19
#: templates/partial/common.js.ep:36
msgid "Deletion link"
msgstr "Enlace para borrar"
#: templates/index.html.ep:45 templates/index.html.ep:47
#: templates/partial/lutim.js.ep:106
#: templates/partial/lutim.js.ep:109
msgid "Download link"
msgstr "Enlace de descarga"
......@@ -119,11 +119,11 @@ msgstr "Error al intentar modificar la imagen."
msgid "Evolution of total files"
msgstr "Evolución de archivos en total"
#: templates/myfiles.html.ep:14
#: templates/myfiles.html.ep:18
msgid "Expires at"
msgstr "Expira"
#: templates/myfiles.html.ep:9
#: templates/myfiles.html.ep:13
msgid "File name"
msgstr "Nombre de archivo"
......@@ -171,7 +171,7 @@ msgstr "URL de la imagen"
msgid "Informations"
msgstr "Informaciones"
#: templates/layouts/default.html.ep:54
#: templates/layouts/default.html.ep:55
msgid "Install webapp"
msgstr "Instalar webapp"
......@@ -194,7 +194,7 @@ msgid "Keep EXIF tags"
msgstr "Mantener las etiquetas EXIF"
#: templates/index.html.ep:130 templates/index.html.ep:170
#: templates/index.html.ep:82 templates/partial/lutim.js.ep:136
#: templates/index.html.ep:82 templates/partial/lutim.js.ep:139
msgid "Let's go!"
msgstr "¡Vamos allá!"
......@@ -203,7 +203,7 @@ msgid "License:"
msgstr "Licencia:"
#: templates/index.html.ep:53 templates/index.html.ep:55
#: templates/partial/lutim.js.ep:108
#: templates/partial/lutim.js.ep:111
msgid "Link for share on social networks"
msgstr "Enlace para compartir en redes sociales"
......@@ -219,15 +219,15 @@ msgid "Main developers"
msgstr "Desarrolladores principales"
#: templates/index.html.ep:37 templates/index.html.ep:39
#: templates/partial/lutim.js.ep:104
#: templates/partial/lutim.js.ep:107
msgid "Markdown syntax"
msgstr "Sintaxis de Markdown"
#: templates/myfiles.html.ep:2
#: templates/layouts/default.html.ep:54 templates/myfiles.html.ep:2
msgid "My images"
msgstr "Mis Imágenes"
#: templates/myfiles.html.ep:34
#: templates/myfiles.html.ep:39
msgid "No limit"
msgstr "Sin fecha de caducidad"
......@@ -235,6 +235,13 @@ msgstr "Sin fecha de caducidad"
msgid "Only images are allowed"
msgstr "Sólo se admiten imágenes"
#: templates/myfiles.html.ep:6
msgid ""
"Only the images sent with this browser will be listed here. The informations"
" are stored in localStorage: if you delete your localStorage data, you'll "
"loose this informations."
msgstr ""
#: templates/about.html.ep:16
msgid ""
"Only the uploader! (well, only if he's the only owner of the images' rights "
......@@ -257,7 +264,7 @@ msgstr "¡Compártelo!"
msgid "Share on Twitter"
msgstr "Compartir en Twitter"
#: templates/index.html.ep:97 templates/partial/lutim.js.ep:139
#: templates/index.html.ep:97 templates/partial/lutim.js.ep:142
msgid "Something bad happened"
msgstr "Algo malo ha pasado"
......@@ -277,7 +284,7 @@ msgid ""
" you can do."
msgstr "El software Lutim es <a href=\"http://es.wikipedia.org/wiki/Software_libre\">software libre</a>, lo que le permite descargarlo e instalarlo en su propio servidor. Eche un vistazo a la licencia <a href=\"https://www.gnu.org/licenses/agpl-3.0.html\">AGPL</a> para ver qué puede hacer."
#: lib/Lutim/Controller.pm:257
#: lib/Lutim/Controller.pm:287
msgid "The URL is not valid."
msgstr "La URL no es válida."
......@@ -286,15 +293,15 @@ msgid "The delete token is invalid."
msgstr "El código de borrado no es válido."
#. ($upload->filename)
#: lib/Lutim/Controller.pm:396
#: lib/Lutim/Controller.pm:426
msgid "The file %1 is not an image."
msgstr "El archivo %1 no es una imagen."
#. ($max_file_size)
#. ($tx->res->max_message_size)
#. ($c->req->max_message_size)
#: lib/Lutim/Controller.pm:221 lib/Lutim/Controller.pm:290
#: templates/partial/lutim.js.ep:177
#: lib/Lutim/Controller.pm:251 lib/Lutim/Controller.pm:320
#: templates/partial/lutim.js.ep:181
msgid "The file exceed the size limit (%1)"
msgstr "El archivo supera el límite de tamaño (%1)"
......@@ -308,7 +315,7 @@ msgid "The image %1 has already been deleted."
msgstr "La imagen %1 ya se ha borrado."
#. ($image->filename)
#: lib/Lutim/Controller.pm:176
#: lib/Lutim/Controller.pm:179 lib/Lutim/Controller.pm:184
msgid "The image %1 has been successfully deleted"
msgstr "La imagen %1 se ha borrado correctamente"
......@@ -327,7 +334,7 @@ msgid ""
msgstr "Puede, opcionalmente, solicitar que la imagen publicada en Lutim se elimine con la primera vista (o descarga) o tras un tiempo seleccionado de entre varios propuestos."
#. ($c->config->{contact})
#: lib/Lutim/Controller.pm:391
#: lib/Lutim/Controller.pm:421
msgid "There is no more available URL. Retry or contact the administrator. %1"
msgstr "No más URL disponibles. Inténtelo de nuevo o contacte con el administrador. %1"
......@@ -336,12 +343,12 @@ msgid "Tweet it!"
msgstr "¡Tuitéalo!"
#. ($short)
#: lib/Lutim/Controller.pm:141
#: lib/Lutim/Controller.pm:141 lib/Lutim/Controller.pm:213
msgid "Unable to find the image %1."
msgstr "No se ha podido encontrar la imagen %1."
#: lib/Lutim.pm:52 lib/Lutim/Controller.pm:480 lib/Lutim/Controller.pm:526
#: lib/Lutim/Controller.pm:570
#: lib/Lutim.pm:52 lib/Lutim/Controller.pm:510 lib/Lutim/Controller.pm:556
#: lib/Lutim/Controller.pm:600
msgid "Unable to find the image: it has been deleted."
msgstr "No se ha podido encontrar la imagen: ha sido borrada."
......@@ -359,7 +366,7 @@ msgstr "A diferencia de muchos servicios de compartición de imágenes, usted no
msgid "Upload an image with its URL"
msgstr "Subir una imagen con la URL"
#: templates/myfiles.html.ep:13
#: templates/myfiles.html.ep:17
msgid "Uploaded at"
msgstr "Enviado el"
......@@ -375,7 +382,7 @@ msgid ""
msgstr "La carga está deshabilitada en estos momentos, por favor inténtelo más tarde o contacte con el administrador (%1)."
#: templates/index.html.ep:29 templates/index.html.ep:31
#: templates/myfiles.html.ep:10 templates/partial/lutim.js.ep:102
#: templates/myfiles.html.ep:14 templates/partial/lutim.js.ep:105
msgid "View link"
msgstr "Enlace de visualización"
......
......@@ -20,8 +20,8 @@ msgstr ""
#. ($delay)
#. (config('max_delay')
#: templates/partial/lutim.js.ep:116 templates/partial/lutim.js.ep:125
#: templates/partial/lutim.js.ep:126
#: templates/partial/lutim.js.ep:119 templates/partial/lutim.js.ep:128
#: templates/partial/lutim.js.ep:129
msgid "%1 days"
msgstr "%1 jours"
......@@ -38,15 +38,15 @@ msgstr "-ou-"
msgid "1 year"
msgstr "1 an"
#: templates/index.html.ep:4 templates/partial/lutim.js.ep:125
#: templates/index.html.ep:4 templates/partial/lutim.js.ep:128
msgid "24 hours"
msgstr "24 heures"
#: templates/myfiles.html.ep:72
#: templates/myfiles.html.ep:74
msgid ": Error while trying to get the counter."
msgstr " : Erreur en essayant de récupérer le compteur."
#: lib/Lutim/Controller.pm:238
#: lib/Lutim/Controller.pm:268
msgid "An error occured while downloading the image."
msgstr "Une erreur est survenue lors du téléchargement de l'image."
......@@ -63,15 +63,15 @@ msgstr "Cliquez pour utiliser le navigateur de fichier"
msgid "Contributors"
msgstr "Contributeurs"
#: templates/partial/lutim.js.ep:164 templates/partial/lutim.js.ep:201
#: templates/partial/lutim.js.ep:263
#: templates/partial/lutim.js.ep:167 templates/partial/lutim.js.ep:205
#: templates/partial/lutim.js.ep:267
msgid "Copy all view links to clipboard"
msgstr "Copier tous les liens de visualisation dans le presse-papier"
#: templates/index.html.ep:33 templates/index.html.ep:41
#: templates/index.html.ep:49 templates/index.html.ep:57
#: templates/partial/lutim.js.ep:104 templates/partial/lutim.js.ep:106
#: templates/partial/lutim.js.ep:108 templates/partial/lutim.js.ep:110
#: templates/partial/lutim.js.ep:107 templates/partial/lutim.js.ep:109
#: templates/partial/lutim.js.ep:111 templates/partial/lutim.js.ep:113
msgid "Copy to clipboard"
msgstr "Copier dans le presse-papier"
......@@ -81,17 +81,17 @@ msgstr "Compteur"
#: templates/index.html.ep:111 templates/index.html.ep:142
#: templates/index.html.ep:79 templates/myfiles.html.ep:16
#: templates/partial/lutim.js.ep:134
#: templates/partial/lutim.js.ep:137
msgid "Delete at first view?"
msgstr "Supprimer au premier accès ?"
#: templates/index.html.ep:62 templates/myfiles.html.ep:19
#: templates/partial/common.js.ep:12
#: templates/partial/common.js.ep:36
msgid "Deletion link"
msgstr "Lien de suppression"
#: templates/index.html.ep:45 templates/index.html.ep:47
#: templates/partial/lutim.js.ep:106
#: templates/partial/lutim.js.ep:109
msgid "Download link"
msgstr "Lien de téléchargement"
......@@ -194,7 +194,7 @@ msgid "Keep EXIF tags"
msgstr "Conserver les données EXIF"
#: templates/index.html.ep:130 templates/index.html.ep:170
#: templates/index.html.ep:82 templates/partial/lutim.js.ep:136
#: templates/index.html.ep:82 templates/partial/lutim.js.ep:139
msgid "Let's go!"
msgstr "Allons-y !"
......@@ -203,7 +203,7 @@ msgid "License:"
msgstr "Licence :"
#: templates/index.html.ep:53 templates/index.html.ep:55
#: templates/partial/lutim.js.ep:108
#: templates/partial/lutim.js.ep:111
msgid "Link for share on social networks"
msgstr "Lien pour partager sur les réseaux sociaux"
......@@ -219,7 +219,7 @@ msgid "Main developers"
msgstr "Développeurs de l'application"
#: templates/index.html.ep:37 templates/index.html.ep:39
#: templates/partial/lutim.js.ep:104
#: templates/partial/lutim.js.ep:107
msgid "Markdown syntax"
msgstr "Syntaxe Markdown"
......@@ -227,7 +227,7 @@ msgstr "Syntaxe Markdown"
msgid "My images"
msgstr "Mes images"
#: templates/myfiles.html.ep:38
#: templates/myfiles.html.ep:39
msgid "No limit"
msgstr "Pas de date d'expiration"
......@@ -264,7 +264,7 @@ msgstr "Partagez !"
msgid "Share on Twitter"
msgstr "Partager sur Twitter"
#: templates/index.html.ep:97 templates/partial/lutim.js.ep:139
#: templates/index.html.ep:97 templates/partial/lutim.js.ep:142
msgid "Something bad happened"
msgstr "Un problème est survenu"
......@@ -284,7 +284,7 @@ msgid ""
" you can do."
msgstr "Le logiciel Lutim est un <a href=\"https://fr.wikipedia.org/wiki/Logiciel_libre\">logiciel libre</a>, ce qui vous permet de le télécharger et de l’installer sur votre propre serveur. Jetez un coup d’œil à l’<a href=\"https://www.gnu.org/licenses/agpl-3.0.html\">AGPL</a> pour voir quels sont vos droits"
#: lib/Lutim/Controller.pm:257
#: lib/Lutim/Controller.pm:287
msgid "The URL is not valid."
msgstr "L'URL n'est pas valide."
......@@ -293,15 +293,15 @@ msgid "The delete token is invalid."
msgstr "Le jeton de suppression est invalide."
#. ($upload->filename)
#: lib/Lutim/Controller.pm:396
#: lib/Lutim/Controller.pm:426
msgid "The file %1 is not an image."
msgstr "Le fichier %1 n'est pas une image."
#. ($max_file_size)
#. ($tx->res->max_message_size)
#. ($c->req->max_message_size)
#: lib/Lutim/Controller.pm:221 lib/Lutim/Controller.pm:290
#: templates/partial/lutim.js.ep:177
#: lib/Lutim/Controller.pm:251 lib/Lutim/Controller.pm:320
#: templates/partial/lutim.js.ep:181
msgid "The file exceed the size limit (%1)"
msgstr "Le fichier dépasse la limite de taille (%1)"
......@@ -315,7 +315,7 @@ msgid "The image %1 has already been deleted."
msgstr "L'image %1 a déjà été supprimée."
#. ($image->filename)
#: lib/Lutim/Controller.pm:176
#: lib/Lutim/Controller.pm:179 lib/Lutim/Controller.pm:184
msgid "The image %1 has been successfully deleted"
msgstr "L'image %1 a été supprimée avec succès."
......@@ -334,7 +334,7 @@ msgid ""
msgstr "Les images déposées sur Lutim peuvent être stockées indéfiniment, ou s’effacer dès le premier affichage ou au bout du délai choisi parmi ceux proposés."
#. ($c->config->{contact})
#: lib/Lutim/Controller.pm:391
#: lib/Lutim/Controller.pm:421
msgid "There is no more available URL. Retry or contact the administrator. %1"
msgstr "Il n'y a plus d'URL disponible. Veuillez réessayer ou contacter l'administrateur. %1."