Commit 59000d53 authored by Luc Didry's avatar Luc Didry
Browse files

Add language changing dropdown

parent 4e1d36ce
......@@ -168,6 +168,10 @@ sub startup {
to('Controller#stats')->
name('stats');
$r->get('/lang/:l')->
to('Controller#change_lang')->
name('lang');
$r->get('/partial/:file' => sub {
my $c = shift;
$c->render(
......
......@@ -45,6 +45,19 @@ sub about {
shift->render(template => 'about');
}
sub change_lang {
my $c = shift;
my $l = $c->param('l');
$c->cookie(lutim_lang => $l, { path => $c->config('prefix') });
if ($c->req->headers->referrer) {
return $c->redirect_to($c->req->headers->referrer);
} else {
return $c->redirect_to('/');
}
}
sub stats {
my $c = shift;
......
......@@ -2,6 +2,8 @@
package Lutim::Plugin::Helpers;
use Mojo::Base 'Mojolicious::Plugin';
use Mojo::Util qw(quote);
use Mojo::Collection;
use Mojo::File;
use Crypt::CBC;
use Data::Entropy qw(entropy_source);
......@@ -23,17 +25,25 @@ sub register {
}
}
$app->helper(render_file => \&_render_file);
$app->helper(ip => \&_ip);
$app->helper(provisioning => \&_provisioning);
$app->helper(shortener => \&_shortener);
$app->helper(stop_upload => \&_stop_upload);
$app->helper(max_delay => \&_max_delay);
$app->helper(default_delay => \&_default_delay);
$app->helper(is_selected => \&_is_selected);
$app->helper(crypt => \&_crypt);
$app->helper(decrypt => \&_decrypt);
$app->helper(delete_image => \&_delete_image);
$app->helper(render_file => \&_render_file);
$app->helper(ip => \&_ip);
$app->helper(provisioning => \&_provisioning);
$app->helper(shortener => \&_shortener);
$app->helper(stop_upload => \&_stop_upload);
$app->helper(max_delay => \&_max_delay);
$app->helper(default_delay => \&_default_delay);
$app->helper(is_selected => \&_is_selected);
$app->helper(crypt => \&_crypt);
$app->helper(decrypt => \&_decrypt);
$app->helper(delete_image => \&_delete_image);
$app->helper(available_langs => \&_available_langs);
$app->hook(
before_dispatch => sub {
my $c = shift;
$c->languages($c->cookie('lutim_lang')) if $c->cookie('lutim_lang');
}
);
}
sub _pg {
......@@ -242,4 +252,21 @@ sub _delete_image {
$img->disable();
}
sub _available_langs {
my $c = shift;
state $langs = Mojo::Collection->new(
glob($c->app->home->rel_file('themes/'.$c->config('theme').'/lib/Lutim/I18N/*')),
glob($c->app->home->rel_file('themes/default/lib/Lutim/I18N/*'))
)->map(
sub {
Mojo::File->new($_)->basename('.po');
}
)->uniq->sort(
sub {
$c->l($a) cmp $c->l($b)
}
)->to_array;
}
1;
......@@ -48,8 +48,6 @@ sub startup {
}
);
$self->plugin('Lutim::Plugin::Helpers');
$config->{prefix} = $config->{url_sub_dir} if (defined($config->{url_sub_dir}) && $config->{prefix} eq '/');
$self->app->log->warn('"url_sub_dir" configuration option is deprecated. Use "prefix" instead. "url_sub_dir" will be removed in the future') if (defined($config->{url_sub_dir}));
......
......@@ -37,11 +37,11 @@ msgstr "تم إرسال %1 صور على مثيل الخادوم هذا منذ
msgid "-or-"
msgstr "-or-"
#: lib/Lutim.pm:180 lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
#: lib/Lutim.pm:184 lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
msgid "1 year"
msgstr "سنة واحدة"
#: lib/Lutim.pm:179 lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
#: lib/Lutim.pm:183 lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
msgid "24 hours"
msgstr "24 ساعة"
......@@ -49,7 +49,7 @@ msgstr "24 ساعة"
msgid ": Error while trying to get the counter."
msgstr ": طرأ هناك خطأ أثناء محاولة إستعادة العداد."
#: themes/default/templates/partial/navbar.html.ep:55
#: themes/default/templates/partial/navbar.html.ep:75
msgid "About"
msgstr ""
......@@ -57,7 +57,7 @@ msgstr ""
msgid "Active images"
msgstr "الصور النشطة"
#: lib/Lutim/Controller.pm:288
#: lib/Lutim/Controller.pm:301
msgid "An error occured while downloading the image."
msgstr "طرأ هناك خطأ أثناء عملية تنزيل الصورة."
......@@ -157,7 +157,7 @@ msgstr "إسم الملف"
msgid "For more details, see the <a href=\"https://framagit.org/luc/lutim\">homepage of the project</a>."
msgstr "للمزيد من التفاصيل، قم بزيارة <a href=\"https://framagit.org/luc/lutim\">الصفحة الرئيسة للمشروع</a>."
#: themes/default/templates/partial/navbar.html.ep:58
#: themes/default/templates/partial/navbar.html.ep:78
msgid "Fork me!"
msgstr "قم بتشعيبي !"
......@@ -197,19 +197,19 @@ msgstr "رابط الصورة"
msgid "Image delay"
msgstr ""
#: lib/Lutim/Controller.pm:712
#: lib/Lutim/Controller.pm:725
msgid "Image not found."
msgstr "الصورة غير موجودة."
#: themes/default/templates/partial/navbar.html.ep:47
#: themes/default/templates/partial/navbar.html.ep:67
msgid "Informations"
msgstr "معلومات"
#: themes/default/templates/partial/navbar.html.ep:23
#: themes/default/templates/partial/navbar.html.ep:31
msgid "Install webapp"
msgstr "نتصيب برنامج الويب"
#: themes/default/templates/partial/navbar.html.ep:19
#: themes/default/templates/partial/navbar.html.ep:27
msgid "Instance's statistics"
msgstr "إحصائيات مثيل الخادوم"
......@@ -229,6 +229,10 @@ msgstr "يُنطق مِثل الكلمة الفرنسية <a href=\"https://fr.w
msgid "Keep EXIF tags"
msgstr "الإبقاء على بيانات EXIF"
#: themes/default/templates/partial/navbar.html.ep:38
msgid "Language"
msgstr ""
#: themes/default/templates/index.html.ep:118 themes/default/templates/index.html.ep:166 themes/default/templates/index.html.ep:206 themes/default/templates/partial/lutim.js.ep:163
msgid "Let's go!"
msgstr "هيا بنا !"
......@@ -237,7 +241,7 @@ msgstr "هيا بنا !"
msgid "Liberapay button"
msgstr "زر ليبيراباي"
#: themes/default/templates/partial/navbar.html.ep:52
#: themes/default/templates/partial/navbar.html.ep:72
msgid "License:"
msgstr "الرخصة :"
......@@ -261,7 +265,7 @@ msgstr ""
msgid "Markdown syntax"
msgstr ""
#: themes/default/templates/myfiles.html.ep:2 themes/default/templates/partial/navbar.html.ep:16
#: themes/default/templates/myfiles.html.ep:2 themes/default/templates/partial/navbar.html.ep:24
msgid "My images"
msgstr ""
......@@ -307,23 +311,23 @@ msgid "Something bad happened"
msgstr ""
#. ($c->config('contact')
#: lib/Lutim/Controller.pm:719
#: lib/Lutim/Controller.pm:732
msgid "Something went wrong when creating the zip file. Try again later or contact the administrator (%1)."
msgstr ""
#: themes/default/templates/partial/navbar.html.ep:30
#: themes/default/templates/partial/navbar.html.ep:50
msgid "Support the author"
msgstr ""
#: themes/default/templates/partial/navbar.html.ep:38
#: themes/default/templates/partial/navbar.html.ep:58
msgid "Support the author on Liberapay"
msgstr ""
#: themes/default/templates/partial/navbar.html.ep:35
#: themes/default/templates/partial/navbar.html.ep:55
msgid "Support the author on Tipeee"
msgstr ""
#: themes/default/templates/partial/navbar.html.ep:41
#: themes/default/templates/partial/navbar.html.ep:61
msgid "Support the author with bitcoins"
msgstr ""
......@@ -335,7 +339,7 @@ msgstr ""
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 ""
#: lib/Lutim/Controller.pm:307
#: lib/Lutim/Controller.pm:320
msgid "The URL is not valid."
msgstr ""
......@@ -343,19 +347,19 @@ msgstr ""
msgid "The automatic download process will open a tab in your browser for each link. You need to allow popups for Lutim."
msgstr ""
#: lib/Lutim/Controller.pm:120 lib/Lutim/Controller.pm:188
#: lib/Lutim/Controller.pm:133 lib/Lutim/Controller.pm:201
msgid "The delete token is invalid."
msgstr ""
#. ($upload->filename)
#: lib/Lutim/Controller.pm:447
#: lib/Lutim/Controller.pm:460
msgid "The file %1 is not an image."
msgstr ""
#. ($tx->res->max_message_size)
#. ($c->req->max_message_size)
#. (config('max_file_size')
#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:240
#: lib/Lutim/Controller.pm:284 lib/Lutim/Controller.pm:353 themes/default/templates/partial/lutim.js.ep:240
msgid "The file exceed the size limit (%1)"
msgstr ""
......@@ -364,16 +368,16 @@ msgid "The graph's datas are not updated in real-time."
msgstr ""
#. ($image->filename)
#: lib/Lutim/Controller.pm:190
#: lib/Lutim/Controller.pm:203
msgid "The image %1 has already been deleted."
msgstr ""
#. ($image->filename)
#: lib/Lutim/Controller.pm:199 lib/Lutim/Controller.pm:204
#: lib/Lutim/Controller.pm:212 lib/Lutim/Controller.pm:217
msgid "The image %1 has been successfully deleted"
msgstr ""
#: lib/Lutim/Controller.pm:128
#: lib/Lutim/Controller.pm:141
msgid "The image's delay has been successfully modified"
msgstr ""
......@@ -386,11 +390,11 @@ msgid "The images you post on Lutim can be stored indefinitely or be deleted at
msgstr ""
#. ($c->config->{contact})
#: lib/Lutim/Controller.pm:444
#: lib/Lutim/Controller.pm:457
msgid "There is no more available URL. Retry or contact the administrator. %1"
msgstr ""
#: themes/default/templates/partial/navbar.html.ep:6
#: themes/default/templates/partial/navbar.html.ep:14
msgid "Toggle navigation"
msgstr ""
......@@ -403,15 +407,15 @@ msgid "Tweet it!"
msgstr ""
#. ($short)
#: lib/Lutim/Controller.pm:162 lib/Lutim/Controller.pm:233
#: lib/Lutim/Controller.pm:175 lib/Lutim/Controller.pm:246
msgid "Unable to find the image %1."
msgstr ""
#: lib/Lutim/Controller.pm:531 lib/Lutim/Controller.pm:576 lib/Lutim/Controller.pm:618 lib/Lutim/Controller.pm:661 lib/Lutim/Controller.pm:673 lib/Lutim/Controller.pm:684 lib/Lutim/Controller.pm:709 lib/Lutim/Plugin/Helpers.pm:57
#: lib/Lutim/Controller.pm:544 lib/Lutim/Controller.pm:589 lib/Lutim/Controller.pm:631 lib/Lutim/Controller.pm:674 lib/Lutim/Controller.pm:686 lib/Lutim/Controller.pm:697 lib/Lutim/Controller.pm:722 lib/Lutim/Plugin/Helpers.pm:67
msgid "Unable to find the image: it has been deleted."
msgstr ""
#: lib/Lutim/Controller.pm:105
#: lib/Lutim/Controller.pm:118
msgid "Unable to get counter"
msgstr ""
......@@ -432,7 +436,7 @@ msgid "Uploaded files by days"
msgstr ""
#. ($c->app->config('contact')
#: lib/Lutim/Plugin/Helpers.pm:152
#: lib/Lutim/Plugin/Helpers.pm:162
msgid "Uploading is currently disabled, please try later or contact the administrator (%1)."
msgstr ""
......@@ -480,7 +484,7 @@ msgstr ""
msgid "core developer"
msgstr ""
#: lib/Lutim.pm:178 lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
#: lib/Lutim.pm:182 lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
msgid "no time limit"
msgstr ""
......
......@@ -35,11 +35,11 @@ msgstr "%1 Bilder wurden bisher über diese Instanz versendet."
msgid "-or-"
msgstr "-oder-"
#: lib/Lutim.pm:180 lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
#: lib/Lutim.pm:184 lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
msgid "1 year"
msgstr "1 Jahr"
#: lib/Lutim.pm:179 lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
#: lib/Lutim.pm:183 lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
msgid "24 hours"
msgstr "24 Stunden"
......@@ -47,7 +47,7 @@ msgstr "24 Stunden"
msgid ": Error while trying to get the counter."
msgstr ":Fehler beim Abrufen des Zählers."
#: themes/default/templates/partial/navbar.html.ep:55
#: themes/default/templates/partial/navbar.html.ep:75
msgid "About"
msgstr ""
......@@ -55,7 +55,7 @@ msgstr ""
msgid "Active images"
msgstr ""
#: lib/Lutim/Controller.pm:288
#: lib/Lutim/Controller.pm:301
msgid "An error occured while downloading the image."
msgstr "Beim Herunterladen des Bildes ist ein Fehler aufgetreten."
......@@ -155,7 +155,7 @@ msgstr "Dateiname"
msgid "For more details, see the <a href=\"https://framagit.org/luc/lutim\">homepage of the project</a>."
msgstr "Besuche für mehr Details die <a href=\"https://framagit.org/luc/lutim\">Homepage des Projekts</a>."
#: themes/default/templates/partial/navbar.html.ep:58
#: themes/default/templates/partial/navbar.html.ep:78
msgid "Fork me!"
msgstr "Fork me!"
......@@ -195,19 +195,19 @@ msgstr "Bild-URL"
msgid "Image delay"
msgstr ""
#: lib/Lutim/Controller.pm:712
#: lib/Lutim/Controller.pm:725
msgid "Image not found."
msgstr "Bild nicht gefunden"
#: themes/default/templates/partial/navbar.html.ep:47
#: themes/default/templates/partial/navbar.html.ep:67
msgid "Informations"
msgstr "Informationen"
#: themes/default/templates/partial/navbar.html.ep:23
#: themes/default/templates/partial/navbar.html.ep:31
msgid "Install webapp"
msgstr "Installiere die Webapp"
#: themes/default/templates/partial/navbar.html.ep:19
#: themes/default/templates/partial/navbar.html.ep:27
msgid "Instance's statistics"
msgstr ""
......@@ -227,11 +227,15 @@ msgstr "Genauso wie das französische Wort <a href=\"https://fr.wikipedia.org/wi
msgid "Keep EXIF tags"
msgstr "Behalte EXIF-Daten"
#: themes/default/templates/partial/navbar.html.ep:38
msgid "Language"
msgstr ""
#: themes/default/templates/index.html.ep:118 themes/default/templates/index.html.ep:166 themes/default/templates/index.html.ep:206 themes/default/templates/partial/lutim.js.ep:163
msgid "Let's go!"
msgstr "Los gehts!"
#: themes/default/templates/partial/navbar.html.ep:52
#: themes/default/templates/partial/navbar.html.ep:72
msgid "License:"
msgstr "Lizenz:"
......@@ -257,7 +261,7 @@ msgstr "Haupt-Entwickler"
msgid "Markdown syntax"
msgstr "Markdown Syntax"
#: themes/default/templates/myfiles.html.ep:2 themes/default/templates/partial/navbar.html.ep:16
#: themes/default/templates/myfiles.html.ep:2 themes/default/templates/partial/navbar.html.ep:24
msgid "My images"
msgstr "Meine Bilder"
......@@ -307,23 +311,23 @@ msgid "Something bad happened"
msgstr "Es ist ein Fehler aufgetreten"
#. ($c->config('contact')
#: lib/Lutim/Controller.pm:719
#: lib/Lutim/Controller.pm:732
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)."
#: themes/default/templates/partial/navbar.html.ep:30
#: themes/default/templates/partial/navbar.html.ep:50
msgid "Support the author"
msgstr ""
#: themes/default/templates/partial/navbar.html.ep:38
#: themes/default/templates/partial/navbar.html.ep:58
msgid "Support the author on Liberapay"
msgstr ""
#: themes/default/templates/partial/navbar.html.ep:35
#: themes/default/templates/partial/navbar.html.ep:55
msgid "Support the author on Tipeee"
msgstr ""
#: themes/default/templates/partial/navbar.html.ep:41
#: themes/default/templates/partial/navbar.html.ep:61
msgid "Support the author with bitcoins"
msgstr ""
......@@ -335,7 +339,7 @@ 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:307
#: lib/Lutim/Controller.pm:320
msgid "The URL is not valid."
msgstr "Die URL ist nicht gültig."
......@@ -343,19 +347,19 @@ msgstr "Die URL ist nicht gültig."
msgid "The automatic download process will open a tab in your browser for each link. You need to allow popups for Lutim."
msgstr ""
#: lib/Lutim/Controller.pm:120 lib/Lutim/Controller.pm:188
#: lib/Lutim/Controller.pm:133 lib/Lutim/Controller.pm:201
msgid "The delete token is invalid."
msgstr "Das Token zum Löschen ist ungültig."
#. ($upload->filename)
#: lib/Lutim/Controller.pm:447
#: lib/Lutim/Controller.pm:460
msgid "The file %1 is not an image."
msgstr "Die Datei %1 ist kein Bild."
#. ($tx->res->max_message_size)
#. ($c->req->max_message_size)
#. (config('max_file_size')
#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:240
#: lib/Lutim/Controller.pm:284 lib/Lutim/Controller.pm:353 themes/default/templates/partial/lutim.js.ep:240
msgid "The file exceed the size limit (%1)"
msgstr "Die Datei überschreitet die Größenbeschränkung (%1)"
......@@ -364,16 +368,16 @@ 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:190
#: lib/Lutim/Controller.pm:203
msgid "The image %1 has already been deleted."
msgstr "Das Bild %1 wurde schon gelöscht."
#. ($image->filename)
#: lib/Lutim/Controller.pm:199 lib/Lutim/Controller.pm:204
#: lib/Lutim/Controller.pm:212 lib/Lutim/Controller.pm:217
msgid "The image %1 has been successfully deleted"
msgstr "Das Bild %1 wurde erfolgreich gelöscht."
#: lib/Lutim/Controller.pm:128
#: lib/Lutim/Controller.pm:141
msgid "The image's delay has been successfully modified"
msgstr "Die Zeit bis zum Löschen des Bildes wurde erfolgreich geändert."
......@@ -386,11 +390,11 @@ 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:444
#: lib/Lutim/Controller.pm:457
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"
#: themes/default/templates/partial/navbar.html.ep:6
#: themes/default/templates/partial/navbar.html.ep:14
msgid "Toggle navigation"
msgstr ""
......@@ -403,15 +407,15 @@ msgid "Tweet it!"
msgstr "Twittere es!"
#. ($short)
#: lib/Lutim/Controller.pm:162 lib/Lutim/Controller.pm:233
#: lib/Lutim/Controller.pm:175 lib/Lutim/Controller.pm:246
msgid "Unable to find the image %1."
msgstr "Konnte das Bild %1 nicht finden."
#: lib/Lutim/Controller.pm:531 lib/Lutim/Controller.pm:576 lib/Lutim/Controller.pm:618 lib/Lutim/Controller.pm:661 lib/Lutim/Controller.pm:673 lib/Lutim/Controller.pm:684 lib/Lutim/Controller.pm:709 lib/Lutim/Plugin/Helpers.pm:57
#: lib/Lutim/Controller.pm:544 lib/Lutim/Controller.pm:589 lib/Lutim/Controller.pm:631 lib/Lutim/Controller.pm:674 lib/Lutim/Controller.pm:686 lib/Lutim/Controller.pm:697 lib/Lutim/Controller.pm:722 lib/Lutim/Plugin/Helpers.pm:67
msgid "Unable to find the image: it has been deleted."
msgstr "Dieses Bild wurde gelöscht."
#: lib/Lutim/Controller.pm:105
#: lib/Lutim/Controller.pm:118
msgid "Unable to get counter"
msgstr "Konnte den Zähler nicht abrufen"
......@@ -432,7 +436,7 @@ msgid "Uploaded files by days"
msgstr "Hochgeladene Bilder pro Tag"
#. ($c->app->config('contact')
#: lib/Lutim/Plugin/Helpers.pm:152
#: lib/Lutim/Plugin/Helpers.pm:162
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)."
......@@ -480,7 +484,7 @@ msgstr ""
msgid "core developer"
msgstr "Haupt-Entwickler"
#: lib/Lutim.pm:178 lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
#: lib/Lutim.pm:182 lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
msgid "no time limit"
msgstr "keine Zeit-Begrenzung"
......
......@@ -33,11 +33,11 @@ msgstr "%1 sent images on this instance from beginning."
msgid "-or-"
msgstr "-or-"
#: lib/Lutim.pm:180 lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
#: lib/Lutim.pm:184 lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
msgid "1 year"
msgstr "1 year"
#: lib/Lutim.pm:179 lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
#: lib/Lutim.pm:183 lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
msgid "24 hours"
msgstr "24 hours"
......@@ -45,7 +45,7 @@ msgstr "24 hours"
msgid ": Error while trying to get the counter."
msgstr ""
#: themes/default/templates/partial/navbar.html.ep:55
#: themes/default/templates/partial/navbar.html.ep:75
msgid "About"
msgstr ""
......@@ -53,7 +53,7 @@ msgstr ""
msgid "Active images"
msgstr ""
#: lib/Lutim/Controller.pm:288
#: lib/Lutim/Controller.pm:301
msgid "An error occured while downloading the image."
msgstr "An error occured while downloading the image."
......@@ -153,7 +153,7 @@ msgstr ""
msgid "For more details, see the <a href=\"https://framagit.org/luc/lutim\">homepage of the project</a>."
msgstr "For more details, see the <a href=\"https://framagit.org/luc/lutim\">homepage of the project</a>."
#: themes/default/templates/partial/navbar.html.ep:58
#: themes/default/templates/partial/navbar.html.ep:78
msgid "Fork me!"
msgstr "Fork me!"
......@@ -193,19 +193,19 @@ msgstr "Image URL"
msgid "Image delay"
msgstr ""
#: lib/Lutim/Controller.pm:712
#: lib/Lutim/Controller.pm:725
msgid "Image not found."
msgstr ""
#: themes/default/templates/partial/navbar.html.ep:47
#: themes/default/templates/partial/navbar.html.ep:67
msgid "Informations"
msgstr "Informations"
#: themes/default/templates/partial/navbar.html.ep:23
#: themes/default/templates/partial/navbar.html.ep:31
msgid "Install webapp"
msgstr "Install webapp"
#: themes/default/templates/partial/navbar.html.ep:19
#: themes/default/templates/partial/navbar.html.ep:27
msgid "Instance's statistics"
msgstr ""
......@@ -225,11 +225,15 @@ msgstr "Juste like you pronounce the French word <a href=\"https://fr.wikipedia.
msgid "Keep EXIF tags"
msgstr "Keep EXIF tags"
#: themes/default/templates/partial/navbar.html.ep:38
msgid "Language"
msgstr ""
#: themes/default/templates/index.html.ep:118 themes/default/templates/index.html.ep:166 themes/default/templates/index.html.ep:206 themes/default/templates/partial/lutim.js.ep:163
msgid "Let's go!"
msgstr "Let's go!"
#: themes/default/templates/partial/navbar.html.ep:52
#: themes/default/templates/partial/navbar.html.ep:72
msgid "License:"
msgstr "License:"
......@@ -253,7 +257,7 @@ msgstr "Main developers"
msgid "Markdown syntax"
msgstr "Markdown syntax"
#: themes/default/templates/myfiles.html.ep:2 themes/default/templates/partial/navbar.html.ep:16
#: themes/default/templates/myfiles.html.ep:2 themes/default/templates/partial/navbar.html.ep:24
msgid "My images"
msgstr ""
......@@ -303,23 +307,23 @@ msgid "Something bad happened"
msgstr "Something bad happened"
#. ($c->config('contact')
#: lib/Lutim/Controller.pm:719
#: lib/Lutim/Controller.pm:732
msgid "Something went wrong when creating the zip file. Try again later or contact the administrator (%1)."
msgstr ""
#: themes/default/templates/partial/navbar.html.ep:30
#: themes/default/templates/partial/navbar.html.ep:50
msgid "Support the author"