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

Improve statistics page

parent 4c0df8f8
......@@ -9,5 +9,6 @@ themes/*
!themes/default
!themes/default/*
themes/default/templates/data.html.ep
themes/default/templates/raw.html.ep
themes/default/public/packed/*
tmp/
Revision history for Lutim
0.8 2017-?
- Improve statistics page
0.7.1 2016-06-21
- Fix dependency bug
......
......@@ -2,7 +2,7 @@ package Lutim::Command::cron::stats;
use Mojo::Base 'Mojolicious::Command';
use LutimModel;
use Mojo::DOM;
use Mojo::Util qw(slurp spurt decode);
use Mojo::Util qw(slurp spurt encode);
use DateTime;
use FindBin qw($Bin);
use File::Spec qw(catfile);
......@@ -57,7 +57,91 @@ sub run {
}
}
}
# Raw datas
my $template2 = 'themes/'.$config->{theme}.'/templates/raw.html.ep.template';
unless (-e $template2) {
$config->{theme} = 'default';
$template = 'themes/'.$config->{theme}.'/templates/raw.html.ep.template';
}
my $text2 = slurp($template2);
my $dom2 = Mojo::DOM->new($text2);
my $raw = $dom2->at('table tbody');
my $raw_foot = $dom2->at('table tfoot');
my $unlimited_enabled = LutimModel::Lutim->count('WHERE path IS NOT NULL AND delete_at_day = 0 AND enabled = 1');
my $unlimited_disabled = LutimModel::Lutim->count('WHERE path IS NOT NULL AND delete_at_day = 0 AND enabled = 0');
my $day_enabled = LutimModel::Lutim->count('WHERE path IS NOT NULL AND delete_at_day = 1 AND enabled = 1');
my $day_disabled = LutimModel::Lutim->count('WHERE path IS NOT NULL AND delete_at_day = 1 AND enabled = 0');
my $week_enabled = LutimModel::Lutim->count('WHERE path IS NOT NULL AND delete_at_day = 7 AND enabled = 1');
my $week_disabled = LutimModel::Lutim->count('WHERE path IS NOT NULL AND delete_at_day = 7 AND enabled = 0');
my $month_enabled = LutimModel::Lutim->count('WHERE path IS NOT NULL AND delete_at_day = 30 AND enabled = 1');
my $month_disabled = LutimModel::Lutim->count('WHERE path IS NOT NULL AND delete_at_day = 30 AND enabled = 0');
my $year_enabled = LutimModel::Lutim->count('WHERE path IS NOT NULL AND delete_at_day = 365 AND enabled = 1');
my $year_disabled = LutimModel::Lutim->count('WHERE path IS NOT NULL AND delete_at_day = 365 AND enabled = 0');
my $year_disabled_in_month = LutimModel::Lutim->count('WHERE path IS NOT NULL AND delete_at_day = 365 AND enabled = 0 AND created_at < ?', time - 30 * 86400);
$raw->append_content("\n<tr><td><%= \$raw[4] %></td><td>".$unlimited_enabled."</td><td>".$unlimited_disabled."</td><td>ø</td></tr>\n");
$raw->append_content("<tr><td><%= \$raw[5] %></td><td>".$day_enabled."</td><td>".$day_disabled."</td><td>".$day_enabled." (100%)</td></tr>\n");
$raw->append_content("<tr><td><%= \$raw[6] %></td><td>".$week_enabled."</td><td>".$week_disabled."</td><td>".$week_enabled." (100%)</td></tr>\n");
$raw->append_content("<tr><td><%= \$raw[7] %></td><td>".$month_enabled."</td><td>".$month_disabled."</td><td>".$month_enabled." (100%)</td></tr>\n");
$raw->append_content("<tr><td><%= \$raw[8] %></td><td>".$year_enabled."</td><td>".$year_disabled."</td><td>".$year_disabled_in_month." (".sprintf('%.2f', $year_disabled_in_month/$year_enabled)."%)</td></tr>\n");
$raw_foot->append_content("\n<tr><td><%= \$raw[9] %></td><td>".($unlimited_enabled + $day_enabled + $week_enabled + $month_enabled + $year_enabled)."</td><td>".($unlimited_disabled + $day_disabled + $week_disabled + $month_disabled + $year_disabled)."</td><td>".($day_enabled + $week_enabled + $month_enabled + $year_disabled_in_month)."</td></tr>\n");
$dom2 = <<EOF;
% my \@raw = (
% l('Image delay'),
% l('Enabled'),
% l('Disabled'),
% l('Disabled in 30 days'),
% l('no time limit'),
% l('24 hours'),
% l('%1 days', 7),
% l('%1 days', 30),
% l('1 year'),
% l('Total')
% );
<script>
Morris.Donut({
element: 'raw-enabled-holder',
data: [
{label: "<%= l('no time limit') %>", value: $unlimited_enabled},
{label: "<%= l('24 hours') %>", value: $day_enabled},
{label: "<%= l('%1 days', 7) %>", value: $week_enabled},
{label: "<%= l('%1 days', 30) %>", value: $month_enabled},
{label: "<%= l('1 year') %>", value: $year_enabled},
],
colors: [
'#40b489',
'#40b9b1',
'#40a1be',
'#427dc1',
'#455ac3',
]
});
Morris.Donut({
element: 'raw-disabled-holder',
data: [
{label: "<%= l('no time limit') %>", value: $unlimited_disabled},
{label: "<%= l('24 hours') %>", value: $day_disabled},
{label: "<%= l('%1 days', 7) %>", value: $week_disabled},
{label: "<%= l('%1 days', 30) %>", value: $month_disabled},
{label: "<%= l('1 year') %>", value: $year_disabled},
],
colors: [
'#40b489',
'#40b9b1',
'#40a1be',
'#427dc1',
'#455ac3',
]
});
</script>
$dom2
EOF
spurt $dom, 'themes/'.$config->{theme}.'/templates/data.html.ep';
spurt encode('UTF-8', $dom2), 'themes/'.$config->{theme}.'/templates/raw.html.ep';
}
=encoding utf8
......
......@@ -48,13 +48,13 @@ msgstr "24 Stunden"
msgid ": Error while trying to get the counter."
msgstr ":Fehler beim Abrufen des Zählers."
#: lib/Lutim/Controller.pm:270
#: lib/Lutim/Controller.pm:286
msgid "An error occured while downloading the image."
msgstr "Beim Herunterladen des Bildes ist ein Fehler aufgetreten."
#: themes/default/templates/about.html.ep:41
#: themes/default/templates/myfiles.html.ep:27
#: themes/default/templates/stats.html.ep:13
#: themes/default/templates/stats.html.ep:25
msgid "Back to homepage"
msgstr "Zurück zur Hauptseite"
......@@ -91,6 +91,14 @@ msgstr "In die Zwischenablage kopieren"
msgid "Counter"
msgstr "Zähler"
#: themes/default/templates/stats.html.ep:18
msgid "Delay repartition chart for disabled images"
msgstr ""
#: themes/default/templates/stats.html.ep:15
msgid "Delay repartition chart for enabled images"
msgstr ""
#: themes/default/templates/index.html.ep:115
#: themes/default/templates/index.html.ep:147
#: themes/default/templates/index.html.ep:178
......@@ -139,7 +147,7 @@ msgstr "Verschlüssle das Bild (Lutim behält den Key nicht)"
msgid "Error while trying to modify the image."
msgstr "Beim bearbeiten des Bildes ist ein Fehler aufgetreten."
#: themes/default/templates/stats.html.ep:9
#: themes/default/templates/stats.html.ep:10
msgid "Evolution of total files"
msgstr "Entwicklung der Anzahl an Dateien"
......@@ -194,7 +202,7 @@ msgstr "Wenn du versuchst, ein Bild während dem Hochladen zu löschen, wird die
msgid "Image URL"
msgstr "Bild-URL"
#: lib/Lutim/Controller.pm:699
#: lib/Lutim/Controller.pm:715
msgid "Image not found."
msgstr "Bild nicht gefunden"
......@@ -285,6 +293,10 @@ msgstr "Nur der Hochladende (natürlich nur, wenn er vorher auch Rechteinhaber d
msgid "Please contact the administrator: %1"
msgstr "Kontaktiere den Administrator: %1"
#: themes/default/templates/stats.html.ep:22
msgid "Raw stats"
msgstr ""
#: themes/default/templates/index.html.ep:158
msgid "Send an image"
msgstr "Sende ein Bild"
......@@ -303,7 +315,7 @@ msgid "Something bad happened"
msgstr "Es ist ein Fehler aufgetreten"
#. ($c->config('contact')
#: lib/Lutim/Controller.pm:707
#: lib/Lutim/Controller.pm:723
msgid "Something went wrong when creating the zip file. Try again later or contact the administrator (%1)."
msgstr "Es ist ein Fehler aufgetreten. Versuche es erneut oder kontaktiere den Administrator (%1)."
......@@ -315,45 +327,45 @@ msgstr "Die IP-Adresse des Nutzers wird für eine bestimmte Zeit gespeichert. Di
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 "Lutim ist <a href=\"https://de.wikipedia.org/wiki/Freie_Software\">freie Software</a>, was dir erlaubt sie herunterzuladen und sie auf deinem eigenem Server zu installieren. Schau dir die <a href=\"https://www.gnu.org/licenses/agpl-3.0.html\">AGPL</a> an um deine Recht zu sehen."
#: lib/Lutim/Controller.pm:289
#: lib/Lutim/Controller.pm:305
msgid "The URL is not valid."
msgstr "Die URL ist nicht gültig."
#: lib/Lutim/Controller.pm:101
#: lib/Lutim/Controller.pm:170
#: lib/Lutim/Controller.pm:117
#: lib/Lutim/Controller.pm:186
msgid "The delete token is invalid."
msgstr "Das Token zum Löschen ist ungültig."
#. ($upload->filename)
#: lib/Lutim/Controller.pm:433
#: lib/Lutim/Controller.pm:449
msgid "The file %1 is not an image."
msgstr "Die Datei %1 ist kein Bild."
#. ($max_file_size)
#. ($tx->res->max_message_size)
#. ($c->req->max_message_size)
#: lib/Lutim/Controller.pm:253
#: lib/Lutim/Controller.pm:322
#: lib/Lutim/Controller.pm:269
#: lib/Lutim/Controller.pm:338
#: themes/default/templates/partial/lutim.js.ep:332
msgid "The file exceed the size limit (%1)"
msgstr "Die Datei überschreitet die Größenbeschränkung (%1)"
#: themes/default/templates/stats.html.ep:11
#: themes/default/templates/stats.html.ep:12
msgid "The graph's datas are not updated in real-time."
msgstr "Die Daten des Graphs werden nicht in Echtzeit aktualisiert."
#. ($image->filename)
#: lib/Lutim/Controller.pm:172
#: lib/Lutim/Controller.pm:188
msgid "The image %1 has already been deleted."
msgstr "Das Bild %1 wurde schon gelöscht."
#. ($image->filename)
#: lib/Lutim/Controller.pm:181
#: lib/Lutim/Controller.pm:186
#: lib/Lutim/Controller.pm:197
#: lib/Lutim/Controller.pm:202
msgid "The image %1 has been successfully deleted"
msgstr "Das Bild %1 wurde erfolgreich gelöscht."
#: lib/Lutim/Controller.pm:109
#: lib/Lutim/Controller.pm:125
msgid "The image's delay has been successfully modified"
msgstr "Die Zeit bis zum Löschen des Bildes wurde erfolgreich geändert."
......@@ -366,7 +378,7 @@ msgid "The images you post on Lutim can be stored indefinitely or be deleted at
msgstr "Die Bilder, die du auf Lutim hochlädst, können entweder nie, nach dem ersten Aufruf oder nach einer bestimmten Zeit gelöscht werden."
#. ($c->config->{contact})
#: lib/Lutim/Controller.pm:428
#: lib/Lutim/Controller.pm:444
msgid "There is no more available URL. Retry or contact the administrator. %1"
msgstr "Es sind keine URLs mehr verfügbar. Versuche es erneut oder kontaktiere den Administrator. %1"
......@@ -376,23 +388,23 @@ msgid "Tweet it!"
msgstr "Twittere es!"
#. ($short)
#: lib/Lutim/Controller.pm:143
#: lib/Lutim/Controller.pm:215
#: lib/Lutim/Controller.pm:159
#: lib/Lutim/Controller.pm:231
msgid "Unable to find the image %1."
msgstr "Konnte das Bild %1 nicht finden."
#: lib/Lutim.pm:84
#: lib/Lutim/Controller.pm:518
#: lib/Lutim/Controller.pm:564
#: lib/Lutim/Controller.pm:608
#: lib/Lutim/Controller.pm:648
#: lib/Lutim/Controller.pm:660
#: lib/Lutim/Controller.pm:671
#: lib/Lutim/Controller.pm:696
#: lib/Lutim.pm:85
#: lib/Lutim/Controller.pm:534
#: lib/Lutim/Controller.pm:580
#: lib/Lutim/Controller.pm:624
#: lib/Lutim/Controller.pm:664
#: lib/Lutim/Controller.pm:676
#: lib/Lutim/Controller.pm:687
#: lib/Lutim/Controller.pm:712
msgid "Unable to find the image: it has been deleted."
msgstr "Dieses Bild wurde gelöscht."
#: lib/Lutim/Controller.pm:85
#: lib/Lutim/Controller.pm:101
msgid "Unable to get counter"
msgstr "Konnte den Zähler nicht abrufen"
......@@ -414,7 +426,7 @@ msgid "Uploaded files by days"
msgstr "Hochgeladene Bilder pro Tag"
#. ($config->{contact})
#: lib/Lutim.pm:188
#: lib/Lutim.pm:189
msgid "Uploading is currently disabled, please try later or contact the administrator (%1)."
msgstr "Hochladen ist momentan deaktiviert. Versuche es später erneut oder kontaktiere den Administrator (%1)."
......
......@@ -46,13 +46,13 @@ msgstr "24 hours"
msgid ": Error while trying to get the counter."
msgstr ""
#: lib/Lutim/Controller.pm:270
#: lib/Lutim/Controller.pm:286
msgid "An error occured while downloading the image."
msgstr "An error occured while downloading the image."
#: themes/default/templates/about.html.ep:41
#: themes/default/templates/myfiles.html.ep:27
#: themes/default/templates/stats.html.ep:13
#: themes/default/templates/stats.html.ep:25
msgid "Back to homepage"
msgstr "Back to homepage"
......@@ -89,6 +89,14 @@ msgstr "Copy to clipboard"
msgid "Counter"
msgstr ""
#: themes/default/templates/stats.html.ep:18
msgid "Delay repartition chart for disabled images"
msgstr ""
#: themes/default/templates/stats.html.ep:15
msgid "Delay repartition chart for enabled images"
msgstr ""
#: themes/default/templates/index.html.ep:115
#: themes/default/templates/index.html.ep:147
#: themes/default/templates/index.html.ep:178
......@@ -137,7 +145,7 @@ msgstr "Encrypt the image (Lutim does not keep the key)."
msgid "Error while trying to modify the image."
msgstr ""
#: themes/default/templates/stats.html.ep:9
#: themes/default/templates/stats.html.ep:10
msgid "Evolution of total files"
msgstr "Evolution of total files"
......@@ -192,7 +200,7 @@ msgstr "If the files are deleted if you ask it while posting it, their SHA512 fo
msgid "Image URL"
msgstr "Image URL"
#: lib/Lutim/Controller.pm:699
#: lib/Lutim/Controller.pm:715
msgid "Image not found."
msgstr ""
......@@ -281,6 +289,10 @@ msgstr "Only the uploader! (well, only if he's the only owner of the images' rig
msgid "Please contact the administrator: %1"
msgstr "Please contact the administrator: %1"
#: themes/default/templates/stats.html.ep:22
msgid "Raw stats"
msgstr ""
#: themes/default/templates/index.html.ep:158
msgid "Send an image"
msgstr "Send an image"
......@@ -299,7 +311,7 @@ msgid "Something bad happened"
msgstr "Something bad happened"
#. ($c->config('contact')
#: lib/Lutim/Controller.pm:707
#: lib/Lutim/Controller.pm:723
msgid "Something went wrong when creating the zip file. Try again later or contact the administrator (%1)."
msgstr ""
......@@ -311,45 +323,45 @@ 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:289
#: lib/Lutim/Controller.pm:305
msgid "The URL is not valid."
msgstr "The URL is not valid."
#: lib/Lutim/Controller.pm:101
#: lib/Lutim/Controller.pm:170
#: lib/Lutim/Controller.pm:117
#: lib/Lutim/Controller.pm:186
msgid "The delete token is invalid."
msgstr "The delete token is invalid."
#. ($upload->filename)
#: lib/Lutim/Controller.pm:433
#: lib/Lutim/Controller.pm:449
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:253
#: lib/Lutim/Controller.pm:322
#: lib/Lutim/Controller.pm:269
#: lib/Lutim/Controller.pm:338
#: themes/default/templates/partial/lutim.js.ep:332
msgid "The file exceed the size limit (%1)"
msgstr "The file exceed the size limit (%1)"
#: themes/default/templates/stats.html.ep:11
#: themes/default/templates/stats.html.ep:12
msgid "The graph's datas are not updated in real-time."
msgstr "The graph's datas are not updated in real-time."
#. ($image->filename)
#: lib/Lutim/Controller.pm:172
#: lib/Lutim/Controller.pm:188
msgid "The image %1 has already been deleted."
msgstr "The image %1 has already been deleted."
#. ($image->filename)
#: lib/Lutim/Controller.pm:181
#: lib/Lutim/Controller.pm:186
#: lib/Lutim/Controller.pm:197
#: lib/Lutim/Controller.pm:202
msgid "The image %1 has been successfully deleted"
msgstr "The image %1 has been successfully deleted"
#: lib/Lutim/Controller.pm:109
#: lib/Lutim/Controller.pm:125
msgid "The image's delay has been successfully modified"
msgstr "The image's delay has been successfully modified"
......@@ -362,7 +374,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:428
#: lib/Lutim/Controller.pm:444
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"
......@@ -372,23 +384,23 @@ msgid "Tweet it!"
msgstr "Tweet it!"
#. ($short)
#: lib/Lutim/Controller.pm:143
#: lib/Lutim/Controller.pm:215
#: lib/Lutim/Controller.pm:159
#: lib/Lutim/Controller.pm:231
msgid "Unable to find the image %1."
msgstr "Unable to find the image %1."
#: lib/Lutim.pm:84
#: lib/Lutim/Controller.pm:518
#: lib/Lutim/Controller.pm:564
#: lib/Lutim/Controller.pm:608
#: lib/Lutim/Controller.pm:648
#: lib/Lutim/Controller.pm:660
#: lib/Lutim/Controller.pm:671
#: lib/Lutim/Controller.pm:696
#: lib/Lutim.pm:85
#: lib/Lutim/Controller.pm:534
#: lib/Lutim/Controller.pm:580
#: lib/Lutim/Controller.pm:624
#: lib/Lutim/Controller.pm:664
#: lib/Lutim/Controller.pm:676
#: lib/Lutim/Controller.pm:687
#: lib/Lutim/Controller.pm:712
msgid "Unable to find the image: it has been deleted."
msgstr "Unable to find the image: it has been deleted."
#: lib/Lutim/Controller.pm:85
#: lib/Lutim/Controller.pm:101
msgid "Unable to get counter"
msgstr ""
......@@ -410,7 +422,7 @@ msgid "Uploaded files by days"
msgstr "Uploaded files by days"
#. ($config->{contact})
#: lib/Lutim.pm:188
#: lib/Lutim.pm:189
msgid "Uploading is currently disabled, please try later or contact the administrator (%1)."
msgstr "Uploading is currently disabled, please try later or contact the administrator (%1)."
......
......@@ -48,13 +48,13 @@ msgstr "24 horas"
msgid ": Error while trying to get the counter."
msgstr ": Error al intentar obtener el contador."
#: lib/Lutim/Controller.pm:270
#: lib/Lutim/Controller.pm:286
msgid "An error occured while downloading the image."
msgstr "Error al intentar modificar la imagen."
#: themes/default/templates/about.html.ep:41
#: themes/default/templates/myfiles.html.ep:27
#: themes/default/templates/stats.html.ep:13
#: themes/default/templates/stats.html.ep:25
msgid "Back to homepage"
msgstr "Volver a la página inicial"
......@@ -91,6 +91,14 @@ msgstr "Copiar al portapapeles"
msgid "Counter"
msgstr "Contador"
#: themes/default/templates/stats.html.ep:18
msgid "Delay repartition chart for disabled images"
msgstr ""
#: themes/default/templates/stats.html.ep:15
msgid "Delay repartition chart for enabled images"
msgstr ""
#: themes/default/templates/index.html.ep:115
#: themes/default/templates/index.html.ep:147
#: themes/default/templates/index.html.ep:178
......@@ -139,7 +147,7 @@ msgstr "Las imágenes se cifran en el servidor (Lutim no guarda la clave)."
msgid "Error while trying to modify the image."
msgstr "Error al intentar modificar la imagen."
#: themes/default/templates/stats.html.ep:9
#: themes/default/templates/stats.html.ep:10
msgid "Evolution of total files"
msgstr "Evolución de archivos en total"
......@@ -194,7 +202,7 @@ msgstr "Si los ficheros se borran por haberlo solicitado al enviarlos, se retien
msgid "Image URL"
msgstr "URL de la imagen"
#: lib/Lutim/Controller.pm:699
#: lib/Lutim/Controller.pm:715
msgid "Image not found."
msgstr "Imagen no encontrada."
......@@ -283,6 +291,10 @@ msgstr "¡Sólo el usuario! (bueno, sólo si él/ela es el único titular de los
msgid "Please contact the administrator: %1"
msgstr "Por favor, contacte con el administrador: %1"
#: themes/default/templates/stats.html.ep:22
msgid "Raw stats"
msgstr ""
#: themes/default/templates/index.html.ep:158
msgid "Send an image"
msgstr "Enviar una imagen"
......@@ -301,7 +313,7 @@ msgid "Something bad happened"
msgstr "Algo malo ha pasado"
#. ($c->config('contact')
#: lib/Lutim/Controller.pm:707
#: lib/Lutim/Controller.pm:723
msgid "Something went wrong when creating the zip file. Try again later or contact the administrator (%1)."
msgstr "Algo malo ha pasado. Inténtelo de nuevo más tarde o contacte con el administrador (%1)."
......@@ -313,45 +325,45 @@ msgstr "La dirección IP del remitente de la imagen se retiene durante un tiempo
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 "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:289
#: lib/Lutim/Controller.pm:305
msgid "The URL is not valid."
msgstr "La URL no es válida."
#: lib/Lutim/Controller.pm:101
#: lib/Lutim/Controller.pm:170
#: lib/Lutim/Controller.pm:117
#: lib/Lutim/Controller.pm:186
msgid "The delete token is invalid."
msgstr "El código de borrado no es válido."
#. ($upload->filename)
#: lib/Lutim/Controller.pm:433
#: lib/Lutim/Controller.pm:449
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:253
#: lib/Lutim/Controller.pm:322
#: lib/Lutim/Controller.pm:269
#: lib/Lutim/Controller.pm:338
#: themes/default/templates/partial/lutim.js.ep:332
msgid "The file exceed the size limit (%1)"
msgstr "El archivo supera el límite de tamaño (%1)"
#: themes/default/templates/stats.html.ep:11
#: themes/default/templates/stats.html.ep:12
msgid "The graph's datas are not updated in real-time."
msgstr "Los datos del gráfico no se actualizan en tiempo real."
#. ($image->filename)
#: lib/Lutim/Controller.pm:172
#: lib/Lutim/Controller.pm:188
msgid "The image %1 has already been deleted."
msgstr "La imagen %1 ya se ha borrado."
#. ($image->filename)
#: lib/Lutim/Controller.pm:181
#: lib/Lutim/Controller.pm:186
#: lib/Lutim/Controller.pm:197
#: lib/Lutim/Controller.pm:202
msgid "The image %1 has been successfully deleted"
msgstr "La imagen %1 se ha borrado correctamente"
#: lib/Lutim/Controller.pm:109
#: lib/Lutim/Controller.pm:125
msgid "The image's delay has been successfully modified"
msgstr "Se ha modificado correctamente el tiempo de la imagen"
......@@ -364,7 +376,7 @@ msgid "The images you post on Lutim can be stored indefinitely or be deleted at
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:428
#: lib/Lutim/Controller.pm:444
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"
......@@ -374,23 +386,23 @@ msgid "Tweet it!"
msgstr "¡Tuitéalo!"
#. ($short)
#: lib/Lutim/Controller.pm:143
#: lib/Lutim/Controller.pm:215
#: lib/Lutim/Controller.pm:159
#: lib/Lutim/Controller.pm:231
msgid "Unable to find the image %1."
msgstr "No se ha podido encontrar la imagen %1."
#: lib/Lutim.pm:84
#: lib/Lutim/Controller.pm:518
#: lib/Lutim/Controller.pm:564
#: lib/Lutim/Controller.pm:608
#: lib/Lutim/Controller.pm:648
#: lib/Lutim/Controller.pm:660
#: lib/Lutim/Controller.pm:671
#: lib/Lutim/Controller.pm:696
#: lib/Lutim.pm:85
#: lib/Lutim/Controller.pm:534
#: lib/Lutim/Controller.pm:580
#: lib/Lutim/Controller.pm:624
#: lib/Lutim/Controller.pm:664
#: lib/Lutim/Controller.pm:676
#: lib/Lutim/Controller.pm:687
#: lib/Lutim/Controller.pm:712
msgid "Unable to find the image: it has been deleted."
msgstr "No se ha podido encontrar la imagen: ha sido borrada."
#: lib/Lutim/Controller.pm:85
#: lib/Lutim/Controller.pm:101
msgid "Unable to get counter"
msgstr "Imposible recuperar el contador"
......@@ -412,7 +424,7 @@ msgid "Uploaded files by days"
msgstr "Archivos enviados por día"
#. ($config->{contact})
#: lib/Lutim.pm:188
#: lib/Lutim.pm:189
msgid "Uploading is currently disabled, please try later or contact the administrator (%1)."