From c83a33996d63412bc2311dd48fc6d044b56a4f07 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Oct 28 2018 22:07:08 +0000 Subject: Merge branch 'development' into 'master' Time for a new release Closes #103, #104, #114, #118, #123, #119, #78, #115, #22, #126, #58, #129, #127 et #128 See merge request fiat-tux/hat-softwares/lufi!23 --- diff --git a/.gitignore b/.gitignore index 0ccd925..58125ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,15 @@ local/* files/* +cover_db/* lufi.conf -lufi.db +*.db +*.db-shm +*.db-wal +*.bak *.swp -script/hypnotoad.pid +script/*.pid stop-upload +.zanata-cache/ themes/* !themes/default !themes/default/* diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..0d55bbd --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,126 @@ +image: hatsoftwares/lufi-test-ci:latest +stages: + - podcheck + - carton + - carton_bdd + - tests +before_script: + - rm -f *db +variables: + POSTGRES_DB: lufi_db + POSTGRES_USER: lufi + POSTGRES_PASSWORD: lufi_pwd + MYSQL_DATABASE: lufi_db + MYSQL_USER: lufi + MYSQL_PASSWORD: lufi_pwd + MYSQL_ROOT_PASSWORD: root + +### Jobs templates +## +# +.carton_bdd_template: &carton_bdd_definition + stage: carton_bdd + retry: 2 + artifacts: + paths: + - local/ + expire_in: 1 week + dependencies: + - carton +.sqlite_template: &sqlite_definition + stage: tests + retry: 2 + dependencies: + - carton_sqlite + services: + - name: rroemhild/test-openldap + alias: rroemhild-test-openldap + coverage: '/Total.* (\d+\.\d+)$/' +.pg_template: &pg_definition + stage: tests + retry: 2 + dependencies: + - carton_postgresql + services: + - name: postgres:9.6 + alias: postgres + - name: rroemhild/test-openldap + alias: rroemhild-test-openldap + coverage: '/Total .*(\d+\.\d+)$/' +.mysql_template: &mysql_definition + stage: tests + retry: 2 + dependencies: + - carton_mysql + services: + - name: mariadb:10.1 + alias: mariadb + - name: rroemhild/test-openldap + alias: rroemhild-test-openldap + coverage: '/Total .*(\d+\.\d+)$/' + +### Podcheck +## +# +podcheck: + stage: podcheck + script: + - make podcheck + +### Install common dependencies +## +# +carton: + stage: carton + artifacts: + paths: + - local/ + expire_in: 1 week + dependencies: [] + script: + - carton install --deployment --without=sqlite --without=postgresql --without=mysql + when: always + retry: 2 + +### Install DB related dependencies +## +# +carton_sqlite: + <<: *carton_bdd_definition + script: + - carton install --deployment --without=postgresql --without=mysql +carton_postgresql: + <<: *carton_bdd_definition + script: + - carton install --deployment --without=sqlite --without=mysql +carton_mysql: + <<: *carton_bdd_definition + script: + - carton install --deployment --without=sqlite --without=postgresql + +### SQLite tests +## +# +sqlite: + <<: *sqlite_definition + script: + - MOJO_CONFIG=t/sqlite.conf make test + - MOJO_CONFIG=t/sqlite.conf make cover + +### PostgreSQL tests +## +# +postgresql: + <<: *pg_definition + script: + - MOJO_CONFIG=t/postgresql.conf make test + - MOJO_CONFIG=t/postgresql.conf make cover + +### MySQL tests +## +# +mysql: + <<: *mysql_definition + script: + - MOJO_CONFIG=t/mysql.conf make test + - MOJO_CONFIG=t/mysql.conf make cover diff --git a/AUTHORS.md b/AUTHORS.md index 6fa6d7a..adf820e 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -14,3 +14,18 @@ * Yann Le Brech (htpasswd file support) * Jéssica Da Cunha (portuguese translation) * Ilker Kulgu (fix IE11 compatibility, Dutch translation) +* Stéphane Baron (bugfix) +* Butterfly of Fire (arabic translation) +* Frju365 (german translation) + +## Vulnerabilities / bug hunters + +Lufi participated to a [Hackpéro](https://hackpero.com/) (sort of a bug bounty hackathon), thanks to [Bounty factory](https://hackpero.com/). + +Many thanks to those who found bugs and vulnerabilities: + +* joker2a +* March +* Nicknam3 +* SaxX +* tfairane diff --git a/CHANGELOG b/CHANGELOG index 2c9740b..560f5b6 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,30 @@ Revision history for Lufi +0.03 2018-??-?? + - Use Mojo::SQLite instead of ORLite + - Use FiatTux plugins + - Option to force "Burn after reading" for each uploaded file + - Use GzipStatic and StaticCache plugins for speed + - Allow to block files by setting an abuse field in DB + - Display file size when uploading + - Add Content-Security-Policy header + - Update sjcl.js + - Mitigate genRandomKey exception risk + - Add report file link in the navbar + - Allow to choose your language + - Use a recurrent task to provision shorts + - Add a command to migrate data from SQLite to an other database + - Add a test suite + - MySQL support + - Display max size on upload page + - Add CSRF token challenge on login + - Add CSRF token challenge on logout + - Add constraints on mail sending to prevent spam sending (not perfect, but + should be good enough) + - Add Code of Conduct + - Add arabic translation + - Add german translation + 0.02.2 2017-09-18 - Fix cron tasks bug diff --git a/Makefile b/Makefile index d56ddf4..e594fa1 100644 --- a/Makefile +++ b/Makefile @@ -1,33 +1,34 @@ EXTRACTDIR=-D lib -D themes/default/templates -EN=themes/default/lib/Lufi/I18N/en.po -FR=themes/default/lib/Lufi/I18N/fr.po -IT=themes/default/lib/Lufi/I18N/it.po -OC=themes/default/lib/Lufi/I18N/oc.po -CA=themes/default/lib/Lufi/I18N/ca.po -PT=themes/default/lib/Lufi/I18N/pt.po -NL=themes/default/lib/Lufi/I18N/nl.po -XGETTEXT=carton exec local/bin/xgettext.pl +POT=themes/default/lib/Lufi/I18N/lufi.pot +XGETTEXT=carton exec local/bin/xgettext.pl -u CARTON=carton exec REAL_LUFI=script/application LUFI=script/lufi locales: - $(XGETTEXT) $(EXTRACTDIR) -o $(EN) 2>/dev/null - $(XGETTEXT) $(EXTRACTDIR) -o $(FR) 2>/dev/null - $(XGETTEXT) $(EXTRACTDIR) -o $(IT) 2>/dev/null - $(XGETTEXT) $(EXTRACTDIR) -o $(OC) 2>/dev/null - $(XGETTEXT) $(EXTRACTDIR) -o $(CA) 2>/dev/null - $(XGETTEXT) $(EXTRACTDIR) -o $(PT) 2>/dev/null - $(XGETTEXT) $(EXTRACTDIR) -o $(NL) 2>/dev/null + $(XGETTEXT) $(EXTRACTDIR) -o $(POT) 2>/dev/null + +push-locales: locales + zanata-cli -q -B push --errors --project-version `git branch | grep \* | cut -d ' ' -f2-` + +pull-locales: + zanata-cli -q -B pull --min-doc-percent 50 --project-version `git branch | grep \* | cut -d ' ' -f2-` + +stats-locales: + zanata-cli -q stats --project-version `git branch | grep \* | cut -d ' ' -f2-` podcheck: podchecker lib/Lufi/DB/File.pm lib/Lufi/DB/Slice.pm +cover: + PERL5OPT='-Ilib/' HARNESS_PERL_SWITCHES='-MDevel::Cover' $(CARTON) cover --ignore_re '^local' + test: - $(CARTON) $(REAL_LUFI) test + @PERL5OPT='-Ilib/' HARNESS_PERL_SWITCHES='-MDevel::Cover' $(CARTON) prove -l -f -o t/test.t clean: rm -rf lufi.db files/ + dev: clean $(CARTON) morbo $(LUFI) --listen http://0.0.0.0:3000 --watch lib/ --watch script/ --watch themes/ --watch lufi.conf diff --git a/README.md b/README.md index 82c6348..17fd374 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## What does Lufi mean? -Lufi means Let's Upload that FIle. +Lufi means Let's Upload that FIle. It's a E2E encrypted file sharing software. ## Which browsers are compatible? @@ -62,9 +62,9 @@ There is the web interface, but you can use a CLI client too! Have a look at = 7.31'; -requires 'ORLite'; requires 'Mojolicious::Plugin::DebugDumperHelper'; -requires 'Mojolicious::Plugin::PgURLHelper'; requires 'Mojolicious::Plugin::I18N'; requires 'Mojolicious::Plugin::Mail'; -requires 'Mojolicious::Plugin::Authentication'; -requires 'Mojo::Pg'; -requires 'EV'; +requires 'Mojolicious::Plugin::GzipStatic'; +requires 'Mojolicious::Plugin::StaticCache'; +requires 'Mojolicious::Plugin::CSPHeader'; +requires 'Mojolicious::Plugin::FiatTux::Helpers', '== 0.08', url => 'https://framagit.org/fiat-tux/mojolicious/mojolicious-plugin-fiattux-helpers/-/archive/0.08/mojolicious-plugin-fiattux-helpers-0.08.tar.gz'; +requires 'Mojolicious::Plugin::FiatTux::GrantAccess', '== 0.05', url => 'https://framagit.org/fiat-tux/mojolicious/mojolicious-plugin-fiattux-grantaccess/-/archive/0.05/mojolicious-plugin-fiattux-grantaccess-0.05.tar.gz'; +requires 'Mojolicious::Plugin::FiatTux::Themes', '== 0.02', url => 'https://framagit.org/fiat-tux/mojolicious/mojolicious-plugin-fiattux-themes/-/archive/0.02/mojolicious-plugin-fiattux-themes-0.02.tar.gz'; requires 'Filesys::DiskUsage'; requires 'Switch'; requires 'Locale::Maketext'; @@ -14,8 +16,40 @@ requires 'Locale::Maketext::Extract'; requires 'Email::Valid'; requires 'Number::Bytes::Human'; requires 'Filesys::DfPortable'; -requires 'Switch'; requires 'Data::Entropy'; -requires 'Net::LDAP'; requires 'Crypt::SaltedHash'; -requires 'Apache::Htpasswd'; +requires 'Data::Validate::URI'; +requires 'Term::ProgressBar'; +requires 'URI::Find'; + +# Mojolicious optional deps +feature 'optional_deps' => sub { + requires 'Cpanel::JSON::XS'; + requires 'EV'; + requires 'IO::Socket::Socks'; + requires 'Role::Tiny'; +}; + +feature 'test' => sub { + requires 'Devel::Cover'; +}; +feature 'ldap', 'LDAP authentication support' => sub { + requires 'Net::LDAP'; + requires 'Mojolicious::Plugin::Authentication'; +}; +feature 'htpasswd', 'Htpasswd authentication support' => sub { + requires 'Apache::Htpasswd'; + requires 'Mojolicious::Plugin::Authentication'; +}; +feature 'postgresql', 'PostgreSQL support' => sub { + requires 'Mojo::Pg'; + requires 'Mojolicious::Plugin::PgURLHelper'; +}; +feature 'sqlite', 'SQLite support' => sub { + requires 'Mojo::SQLite', '>= 3.000'; +}; +feature 'mysql', 'MySQL support' => sub { + requires 'DBD::mysql', '== 4.046'; + requires 'Mojo::mysql'; + requires 'Mojolicious::Plugin::PgURLHelper'; +}; diff --git a/cpanfile.snapshot b/cpanfile.snapshot index 19226ce..d922399 100644 --- a/cpanfile.snapshot +++ b/cpanfile.snapshot @@ -36,10 +36,10 @@ DISTRIBUTIONS Canary::Stability 2012 requirements: ExtUtils::MakeMaker 0 - Capture-Tiny-0.46 - pathname: D/DA/DAGOLDEN/Capture-Tiny-0.46.tar.gz + Capture-Tiny-0.48 + pathname: D/DA/DAGOLDEN/Capture-Tiny-0.48.tar.gz provides: - Capture::Tiny 0.46 + Capture::Tiny 0.48 requirements: Carp 0 Exporter 0 @@ -64,13 +64,26 @@ DISTRIBUTIONS perl 5.006 strict 0 warnings 0 - Clone-0.39 - pathname: G/GA/GARU/Clone-0.39.tar.gz + Class-MethodMaker-2.24 + pathname: S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-2.24.tar.gz provides: - Clone 0.39 + Class::MethodMaker 2.24 + Class::MethodMaker::Constants undef + Class::MethodMaker::Engine 2.24 + Class::MethodMaker::OptExt undef + Class::MethodMaker::V1Compat undef + Generate undef requirements: ExtUtils::MakeMaker 0 - Test::More 0 + perl 5.006 + Clone-Choose-0.010 + pathname: H/HE/HERMES/Clone-Choose-0.010.tar.gz + provides: + Clone::Choose 0.010 + requirements: + ExtUtils::MakeMaker 0 + Storable 0 + perl 5.008001 Convert-ASN1-0.27 pathname: G/GB/GBARR/Convert-ASN1-0.27.tar.gz provides: @@ -79,6 +92,14 @@ DISTRIBUTIONS ExtUtils::MakeMaker 6.30 Math::BigInt 1.997 Test::More 0.90 + Cpanel-JSON-XS-4.06 + pathname: R/RU/RURBAN/Cpanel-JSON-XS-4.06.tar.gz + provides: + Cpanel::JSON::XS 4.06 + Cpanel::JSON::XS::Type undef + requirements: + ExtUtils::MakeMaker 0 + Pod::Text 2.08 Crypt-PasswdMD5-1.40 pathname: R/RS/RSAVAGE/Crypt-PasswdMD5-1.40.tgz provides: @@ -105,24 +126,24 @@ DISTRIBUTIONS ExtUtils::MakeMaker 6.30 Test::Fatal 0 Test::More 0 - DBD-Pg-3.6.2 - pathname: T/TU/TURNSTEP/DBD-Pg-3.6.2.tar.gz + DBD-Pg-3.7.4 + pathname: T/TU/TURNSTEP/DBD-Pg-3.7.4.tar.gz provides: - Bundle::DBD::Pg v3.6.2 - DBD::Pg v3.6.2 + Bundle::DBD::Pg v3.7.4 + DBD::Pg v3.7.4 requirements: DBI 1.614 ExtUtils::MakeMaker 6.11 Test::More 0.88 Time::HiRes 0 version 0 - DBD-SQLite-1.54 - pathname: I/IS/ISHIGAKI/DBD-SQLite-1.54.tar.gz + DBD-SQLite-1.58 + pathname: I/IS/ISHIGAKI/DBD-SQLite-1.58.tar.gz provides: - DBD::SQLite 1.54 + DBD::SQLite 1.58 DBD::SQLite::Constants undef - DBD::SQLite::VirtualTable 1.54 - DBD::SQLite::VirtualTable::Cursor 1.54 + DBD::SQLite::VirtualTable 1.58 + DBD::SQLite::VirtualTable::Cursor 1.58 DBD::SQLite::VirtualTable::FileContent undef DBD::SQLite::VirtualTable::FileContent::Cursor undef DBD::SQLite::VirtualTable::PerlData undef @@ -135,8 +156,22 @@ DISTRIBUTIONS Test::More 0.47 Tie::Hash 0 perl 5.006 - DBI-1.636 - pathname: T/TI/TIMB/DBI-1.636.tar.gz + DBD-mysql-4.046 + pathname: C/CA/CAPTTOFU/DBD-mysql-4.046.tar.gz + provides: + Bundle::DBD::mysql 4.046 + DBD::mysql 4.046 + DBD::mysql::GetInfo undef + DBD::mysql::db 4.046 + DBD::mysql::dr 4.046 + DBD::mysql::st 4.046 + requirements: + DBI 1.609 + Data::Dumper 0 + ExtUtils::MakeMaker 0 + perl 5.008001 + DBI-1.641 + pathname: T/TI/TIMB/DBI-1.641.tar.gz provides: Bundle::DBI 12.008696 DBD::DBM 0.08 @@ -171,6 +206,13 @@ DISTRIBUTIONS DBD::Gofer::db 0.015327 DBD::Gofer::dr 0.015327 DBD::Gofer::st 0.015327 + DBD::Mem 0.001 + DBD::Mem::DataSource 0.001 + DBD::Mem::Statement 0.001 + DBD::Mem::Table 0.001 + DBD::Mem::db 0.001 + DBD::Mem::dr 0.001 + DBD::Mem::st 0.001 DBD::NullP 12.014715 DBD::NullP::db 12.014715 DBD::NullP::dr 12.014715 @@ -185,7 +227,7 @@ DISTRIBUTIONS DBD::Sponge::dr 12.010003 DBD::Sponge::st 12.010003 DBDI 12.015129 - DBI 1.636 + DBI 1.641 DBI::Const::GetInfo::ANSI 2.008697 DBI::Const::GetInfo::ODBC 2.011374 DBI::Const::GetInfoReturn 2.008697 @@ -225,7 +267,7 @@ DISTRIBUTIONS DBI::SQL::Nano::Table_ 1.015544 DBI::Util::CacheMemory 0.010315 DBI::Util::_accessor 0.009479 - DBI::common 1.636 + DBI::common 1.641 requirements: ExtUtils::MakeMaker 6.48 Test::Simple 0.90 @@ -257,10 +299,10 @@ DISTRIBUTIONS perl 5.006 strict 0 warnings 0 - Data-Float-0.012 - pathname: Z/ZE/ZEFRAM/Data-Float-0.012.tar.gz + Data-Float-0.013 + pathname: Z/ZE/ZEFRAM/Data-Float-0.013.tar.gz provides: - Data::Float 0.012 + Data::Float 0.013 requirements: Carp 0 Exporter 0 @@ -272,6 +314,96 @@ DISTRIBUTIONS perl 5.006 strict 0 warnings 0 + Data-Validate-Domain-0.14 + pathname: D/DR/DROLSKY/Data-Validate-Domain-0.14.tar.gz + provides: + Data::Validate::Domain 0.14 + requirements: + Exporter 0 + ExtUtils::MakeMaker 0 + Net::Domain::TLD 1.74 + strict 0 + warnings 0 + Data-Validate-IP-0.27 + pathname: D/DR/DROLSKY/Data-Validate-IP-0.27.tar.gz + provides: + Data::Validate::IP 0.27 + requirements: + Exporter 0 + ExtUtils::MakeMaker 0 + NetAddr::IP 4 + Scalar::Util 0 + base 0 + perl 5.008 + strict 0 + warnings 0 + Data-Validate-URI-0.07 + pathname: S/SO/SONNEN/Data-Validate-URI-0.07.tar.gz + provides: + Data::Validate::URI 0.07 + requirements: + Data::Validate::Domain 0 + Data::Validate::IP 0 + ExtUtils::MakeMaker 0 + Devel-Cover-1.31 + pathname: P/PJ/PJCJ/Devel-Cover-1.31.tar.gz + provides: + Devel::Cover 1.31 + Devel::Cover::Annotation::Git 1.31 + Devel::Cover::Annotation::Random 1.31 + Devel::Cover::Annotation::Svk 1.31 + Devel::Cover::Branch 1.31 + Devel::Cover::Collection 1.31 + Devel::Cover::Collection::Template::Provider 1.31 + Devel::Cover::Condition 1.31 + Devel::Cover::Condition_and_2 1.31 + Devel::Cover::Condition_and_3 1.31 + Devel::Cover::Condition_or_2 1.31 + Devel::Cover::Condition_or_3 1.31 + Devel::Cover::Condition_xor_4 1.31 + Devel::Cover::Criterion 1.31 + Devel::Cover::DB 1.31 + Devel::Cover::DB::Criterion 1.31 + Devel::Cover::DB::Digests 1.31 + Devel::Cover::DB::File 1.31 + Devel::Cover::DB::IO 1.31 + Devel::Cover::DB::IO::Base 1.31 + Devel::Cover::DB::IO::JSON 1.31 + Devel::Cover::DB::IO::Sereal 1.31 + Devel::Cover::DB::IO::Storable 1.31 + Devel::Cover::DB::Run 1.31 + Devel::Cover::DB::Structure 1.31 + Devel::Cover::Html_Common 1.31 + Devel::Cover::Op 1.31 + Devel::Cover::Pod 1.31 + Devel::Cover::Report::Compilation 1.31 + Devel::Cover::Report::Html 1.31 + Devel::Cover::Report::Html_basic 1.31 + Devel::Cover::Report::Html_basic::Template::Provider 1.31 + Devel::Cover::Report::Html_minimal 1.31 + Devel::Cover::Report::Html_subtle 1.31 + Devel::Cover::Report::Html_subtle::Template::Provider 1.31 + Devel::Cover::Report::Json 1.31 + Devel::Cover::Report::Sort 1.31 + Devel::Cover::Report::Text 1.31 + Devel::Cover::Report::Text2 1.31 + Devel::Cover::Report::Vim 1.31 + Devel::Cover::Report::Vim::Template::Provider 1.31 + Devel::Cover::Statement 1.31 + Devel::Cover::Subroutine 1.31 + Devel::Cover::Test 1.31 + Devel::Cover::Time 1.31 + Devel::Cover::Truth_Table 1.31 + Devel::Cover::Truth_Table::Row 1.31 + Devel::Cover::Util 1.31 + Devel::Cover::Web 1.31 + requirements: + B::Debug 0 + Digest::MD5 0 + ExtUtils::MakeMaker 0 + HTML::Entities 3.69 + Storable 0 + Test::More 0 Devel-GlobalDestruction-0.14 pathname: H/HA/HAARG/Devel-GlobalDestruction-0.14.tar.gz provides: @@ -317,6 +449,7 @@ DISTRIBUTIONS requirements: ExtUtils::MakeMaker 0 Mail::Address 0 + Net::DNS 0 Scalar::Util 0 Test::More 0 perl 5.006 @@ -329,6 +462,45 @@ DISTRIBUTIONS Encode::Alias 0 ExtUtils::MakeMaker 0 perl 5.008 + ExtUtils-Config-0.008 + pathname: L/LE/LEONT/ExtUtils-Config-0.008.tar.gz + provides: + ExtUtils::Config 0.008 + requirements: + Data::Dumper 0 + ExtUtils::MakeMaker 6.30 + strict 0 + warnings 0 + ExtUtils-Helpers-0.026 + pathname: L/LE/LEONT/ExtUtils-Helpers-0.026.tar.gz + provides: + ExtUtils::Helpers 0.026 + ExtUtils::Helpers::Unix 0.026 + ExtUtils::Helpers::VMS 0.026 + ExtUtils::Helpers::Windows 0.026 + requirements: + Carp 0 + Exporter 5.57 + ExtUtils::MakeMaker 0 + File::Basename 0 + File::Copy 0 + File::Spec::Functions 0 + Text::ParseWords 3.24 + perl 5.006 + strict 0 + warnings 0 + ExtUtils-InstallPaths-0.012 + pathname: L/LE/LEONT/ExtUtils-InstallPaths-0.012.tar.gz + provides: + ExtUtils::InstallPaths 0.012 + requirements: + Carp 0 + ExtUtils::Config 0.002 + ExtUtils::MakeMaker 0 + File::Spec 0 + perl 5.006 + strict 0 + warnings 0 File-Listing-6.04 pathname: G/GA/GAAS/File-Listing-6.04.tar.gz provides: @@ -342,16 +514,17 @@ DISTRIBUTIONS ExtUtils::MakeMaker 0 HTTP::Date 6 perl 5.006002 - File-Remove-1.57 - pathname: S/SH/SHLOMIF/File-Remove-1.57.tar.gz + File-Remove-1.58 + pathname: S/SH/SHLOMIF/File-Remove-1.58.tar.gz provides: - File::Remove 1.57 + File::Remove 1.58 requirements: Cwd 3.29 ExtUtils::MakeMaker 0 File::Glob 0 File::Path 0 File::Spec 3.29 + Module::Build 0.28 constant 0 perl 5.006 strict 0 @@ -363,10 +536,10 @@ DISTRIBUTIONS Filesys::DfPortable 0.85 requirements: ExtUtils::MakeMaker 0 - Filesys-DiskUsage-0.10 - pathname: M/MA/MANWAR/Filesys-DiskUsage-0.10.tar.gz + Filesys-DiskUsage-0.12 + pathname: M/MA/MANWAR/Filesys-DiskUsage-0.12.tar.gz provides: - Filesys::DiskUsage 0.10 + Filesys::DiskUsage 0.12 requirements: ExtUtils::MakeMaker 0 File::Basename 0 @@ -396,12 +569,12 @@ DISTRIBUTIONS HTML::Tagset 3.20 requirements: ExtUtils::MakeMaker 0 - HTTP-Cookies-6.03 - pathname: O/OA/OALDERS/HTTP-Cookies-6.03.tar.gz + HTTP-Cookies-6.04 + pathname: O/OA/OALDERS/HTTP-Cookies-6.04.tar.gz provides: - HTTP::Cookies 6.03 - HTTP::Cookies::Microsoft 6.03 - HTTP::Cookies::Netscape 6.03 + HTTP::Cookies 6.04 + HTTP::Cookies::Microsoft 6.04 + HTTP::Cookies::Netscape 6.04 requirements: Carp 0 ExtUtils::MakeMaker 0 @@ -447,19 +620,19 @@ DISTRIBUTIONS perl 5.005 strict 0 warnings 0 - HTTP-Message-6.13 - pathname: O/OA/OALDERS/HTTP-Message-6.13.tar.gz - provides: - HTTP::Config 6.13 - HTTP::Headers 6.13 - HTTP::Headers::Auth 6.13 - HTTP::Headers::ETag 6.13 - HTTP::Headers::Util 6.13 - HTTP::Message 6.13 - HTTP::Request 6.13 - HTTP::Request::Common 6.13 - HTTP::Response 6.13 - HTTP::Status 6.13 + HTTP-Message-6.18 + pathname: O/OA/OALDERS/HTTP-Message-6.18.tar.gz + provides: + HTTP::Config 6.18 + HTTP::Headers 6.18 + HTTP::Headers::Auth 6.18 + HTTP::Headers::ETag 6.18 + HTTP::Headers::Util 6.18 + HTTP::Message 6.18 + HTTP::Request 6.18 + HTTP::Request::Common 6.18 + HTTP::Response 6.18 + HTTP::Status 6.18 requirements: Carp 0 Compress::Raw::Zlib 0 @@ -493,13 +666,14 @@ DISTRIBUTIONS ExtUtils::MakeMaker 0 HTTP::Headers 6 perl 5.008001 - Hash-Merge-0.200 - pathname: R/RE/REHSACK/Hash-Merge-0.200.tar.gz + Hash-Merge-0.300 + pathname: R/RE/REHSACK/Hash-Merge-0.300.tar.gz provides: - Hash::Merge 0.200 + Hash::Merge 0.300 requirements: - Clone 0 - ExtUtils::MakeMaker 0 + Clone::Choose 0.008 + ExtUtils::MakeMaker 6.64 + Scalar::Util 0 perl 5.008001 IO-HTML-1.001 pathname: C/CJ/CJM/IO-HTML-1.001.tar.gz @@ -510,28 +684,57 @@ DISTRIBUTIONS Encode 2.10 Exporter 5.57 ExtUtils::MakeMaker 6.30 - IO-Socket-SSL-2.049 - pathname: S/SU/SULLR/IO-Socket-SSL-2.049.tar.gz + IO-Socket-IP-0.39 + pathname: P/PE/PEVANS/IO-Socket-IP-0.39.tar.gz provides: - IO::Socket::SSL 2.049 - IO::Socket::SSL::Intercept 2.014 - IO::Socket::SSL::OCSP_Cache 2.049 - IO::Socket::SSL::OCSP_Resolver 2.049 + IO::Socket::IP 0.39 + requirements: + IO::Socket 0 + Socket 1.97 + Test::More 0.88 + IO-Socket-SSL-2.060 + pathname: S/SU/SULLR/IO-Socket-SSL-2.060.tar.gz + provides: + IO::Socket::SSL 2.060 + IO::Socket::SSL::Intercept 2.056 + IO::Socket::SSL::OCSP_Cache 2.060 + IO::Socket::SSL::OCSP_Resolver 2.060 IO::Socket::SSL::PublicSuffix undef - IO::Socket::SSL::SSL_Context 2.049 - IO::Socket::SSL::SSL_HANDLE 2.049 - IO::Socket::SSL::Session_Cache 2.049 + IO::Socket::SSL::SSL_Context 2.060 + IO::Socket::SSL::SSL_HANDLE 2.060 + IO::Socket::SSL::Session_Cache 2.060 IO::Socket::SSL::Utils 2.014 requirements: ExtUtils::MakeMaker 0 Mozilla::CA 0 Net::SSLeay 1.46 Scalar::Util 0 - JSON-2.94 - pathname: I/IS/ISHIGAKI/JSON-2.94.tar.gz + IO-Socket-Socks-0.74 + pathname: O/OL/OLEG/IO-Socket-Socks-0.74.tar.gz provides: - JSON 2.94 - JSON::Backend::PP 2.94 + IO::Socket::Socks 0.74 + IO::Socket::Socks::Debug 0.74 + IO::Socket::Socks::Error 0.74 + IO::Socket::Socks::ReadOnlyVar 0.74 + IO::Socket::Socks::SocketClassVar 0.74 + requirements: + ExtUtils::MakeMaker 6.52 + IO::Select 0 + Socket 1.94 + Test::More 0.88 + constant 1.03 + ISO-639_1-0.02 + pathname: L/LD/LDIDRY/ISO-639_1-0.02.tar.gz + provides: + ISO::639_1 0.02 + requirements: + Module::Build::Tiny 0.035 + perl 5.008001 + JSON-2.97001 + pathname: I/IS/ISHIGAKI/JSON-2.97001.tar.gz + provides: + JSON 2.97001 + JSON::Backend::PP 2.97001 requirements: ExtUtils::MakeMaker 0 Test::More 0 @@ -606,12 +809,12 @@ DISTRIBUTIONS File::Basename 0 File::Spec 0 MIME::Types 1.28 - MIME-Types-2.13 - pathname: M/MA/MARKOV/MIME-Types-2.13.tar.gz + MIME-Types-2.17 + pathname: M/MA/MARKOV/MIME-Types-2.17.tar.gz provides: - MIME::Type 2.13 - MIME::Types 2.13 - MojoX::MIME::Types 2.13 + MIME::Type 2.17 + MIME::Types 2.17 + MojoX::MIME::Types 2.17 requirements: ExtUtils::MakeMaker 0 File::Basename 0 @@ -625,31 +828,31 @@ DISTRIBUTIONS requirements: ExtUtils::MakeMaker 0 perl 5.006 - MailTools-2.18 - pathname: M/MA/MARKOV/MailTools-2.18.tar.gz - provides: - Mail undef - Mail::Address 2.18 - Mail::Cap 2.18 - Mail::Field 2.18 - Mail::Field::AddrList 2.18 - Mail::Field::Date 2.18 - Mail::Field::Generic 2.18 - Mail::Filter 2.18 - Mail::Header 2.18 - Mail::Internet 2.18 - Mail::Mailer 2.18 - Mail::Mailer::qmail 2.18 - Mail::Mailer::rfc822 2.18 - Mail::Mailer::sendmail 2.18 - Mail::Mailer::smtp 2.18 - Mail::Mailer::smtp::pipe 2.18 - Mail::Mailer::smtps 2.18 - Mail::Mailer::smtps::pipe 2.18 - Mail::Mailer::testfile 2.18 - Mail::Mailer::testfile::pipe 2.18 - Mail::Send 2.18 - Mail::Util 2.18 + MailTools-2.20 + pathname: M/MA/MARKOV/MailTools-2.20.tar.gz + provides: + Mail::Address 2.20 + Mail::Cap 2.20 + Mail::Field 2.20 + Mail::Field::AddrList 2.20 + Mail::Field::Date 2.20 + Mail::Field::Generic 2.20 + Mail::Filter 2.20 + Mail::Header 2.20 + Mail::Internet 2.20 + Mail::Mailer 2.20 + Mail::Mailer::qmail 2.20 + Mail::Mailer::rfc822 2.20 + Mail::Mailer::sendmail 2.20 + Mail::Mailer::smtp 2.20 + Mail::Mailer::smtp::pipe 2.20 + Mail::Mailer::smtps 2.20 + Mail::Mailer::smtps::pipe 2.20 + Mail::Mailer::testfile 2.20 + Mail::Mailer::testfile::pipe 2.20 + Mail::Send 2.20 + Mail::Util 2.20 + MailTools 2.20 requirements: Date::Format 0 Date::Parse 0 @@ -708,33 +911,168 @@ DISTRIBUTIONS Text::ParseWords 0 perl 5.006001 version 0.87 - Module-Runtime-0.015 - pathname: Z/ZE/ZEFRAM/Module-Runtime-0.015.tar.gz + Module-Build-Tiny-0.039 + pathname: L/LE/LEONT/Module-Build-Tiny-0.039.tar.gz + provides: + Module::Build::Tiny 0.039 + requirements: + CPAN::Meta 0 + DynaLoader 0 + Exporter 5.57 + ExtUtils::CBuilder 0 + ExtUtils::Config 0.003 + ExtUtils::Helpers 0.020 + ExtUtils::Install 0 + ExtUtils::InstallPaths 0.002 + ExtUtils::ParseXS 0 + File::Basename 0 + File::Find 0 + File::Path 0 + File::Spec::Functions 0 + Getopt::Long 2.36 + JSON::PP 2 + Pod::Man 0 + TAP::Harness::Env 0 + perl 5.006 + strict 0 + warnings 0 + Module-Install-1.19 + pathname: E/ET/ETHER/Module-Install-1.19.tar.gz + provides: + Module::AutoInstall 1.19 + Module::Install 1.19 + Module::Install::Admin 1.19 + Module::Install::Admin::Bundle 1.19 + Module::Install::Admin::Compiler 1.19 + Module::Install::Admin::Find 1.19 + Module::Install::Admin::Include 1.19 + Module::Install::Admin::Makefile 1.19 + Module::Install::Admin::Manifest 1.19 + Module::Install::Admin::Metadata 1.19 + Module::Install::Admin::ScanDeps 1.19 + Module::Install::Admin::WriteAll 1.19 + Module::Install::AutoInstall 1.19 + Module::Install::Base 1.19 + Module::Install::Base::FakeAdmin 1.19 + Module::Install::Bundle 1.19 + Module::Install::Can 1.19 + Module::Install::Compiler 1.19 + Module::Install::DSL 1.19 + Module::Install::Deprecated 1.19 + Module::Install::External 1.19 + Module::Install::Fetch 1.19 + Module::Install::Include 1.19 + Module::Install::Inline 1.19 + Module::Install::MakeMaker 1.19 + Module::Install::Makefile 1.19 + Module::Install::Metadata 1.19 + Module::Install::PAR 1.19 + Module::Install::Run 1.19 + Module::Install::Scripts 1.19 + Module::Install::Share 1.19 + Module::Install::Win32 1.19 + Module::Install::With 1.19 + Module::Install::WriteAll 1.19 + inc::Module::Install 1.19 + inc::Module::Install::DSL 1.19 + requirements: + Devel::PPPort 3.16 + ExtUtils::Install 1.52 + ExtUtils::MakeMaker 6.59 + ExtUtils::ParseXS 2.19 + File::Path 0 + File::Remove 1.42 + File::Spec 3.28 + Module::Build 0.29 + Module::CoreList 2.17 + Module::ScanDeps 1.09 + Parse::CPAN::Meta 1.4413 + Test::Harness 3.13 + Test::More 0.86 + YAML::Tiny 1.38 + autodie 0 + perl 5.006 + Module-Runtime-0.016 + pathname: Z/ZE/ZEFRAM/Module-Runtime-0.016.tar.gz provides: - Module::Runtime 0.015 + Module::Runtime 0.016 requirements: Module::Build 0 Test::More 0.41 perl 5.006 strict 0 warnings 0 - Mojo-Pg-4.0 - pathname: S/SR/SRI/Mojo-Pg-4.0.tar.gz + Module-ScanDeps-1.25 + pathname: R/RS/RSCHUPP/Module-ScanDeps-1.25.tar.gz + provides: + Module::ScanDeps 1.25 + requirements: + ExtUtils::MakeMaker 0 + File::Spec 0 + File::Temp 0 + Getopt::Long 0 + Module::Metadata 0 + Text::ParseWords 0 + perl 5.008001 + version 0 + Mojo-Pg-4.11 + pathname: S/SR/SRI/Mojo-Pg-4.11.tar.gz provides: - Mojo::Pg 4.0 + Mojo::Pg 4.11 Mojo::Pg::Database undef Mojo::Pg::Migrations undef Mojo::Pg::PubSub undef Mojo::Pg::Results undef Mojo::Pg::Transaction undef + SQL::Abstract::Pg undef requirements: DBD::Pg 3.005001 ExtUtils::MakeMaker 0 + Mojolicious 8.03 + SQL::Abstract 1.86 + perl 5.010001 + Mojo-SQLite-3.001 + pathname: D/DB/DBOOK/Mojo-SQLite-3.001.tar.gz + provides: + Mojo::SQLite 3.001 + Mojo::SQLite::Database 3.001 + Mojo::SQLite::Migrations 3.001 + Mojo::SQLite::PubSub 3.001 + Mojo::SQLite::Results 3.001 + Mojo::SQLite::Transaction 3.001 + requirements: + Carp 0 + DBD::SQLite 1.54 + DBI 1.627 + File::Spec::Functions 0 + File::Temp 0 + Module::Build::Tiny 0.034 Mojolicious 7.32 SQL::Abstract 1.81 + Scalar::Util 0 + URI 1.69 + URI::db 0.15 + URI::file 4.21 perl 5.010001 - Mojolicious-7.36 - pathname: S/SR/SRI/Mojolicious-7.36.tar.gz + Mojo-mysql-1.07 + pathname: J/JH/JHTHORSEN/Mojo-mysql-1.07.tar.gz + provides: + Blog undef + Blog::Controller::Posts undef + Blog::Model::Posts undef + Mojo::mysql 1.07 + Mojo::mysql::Database undef + Mojo::mysql::Migrations undef + Mojo::mysql::PubSub undef + Mojo::mysql::Results undef + Mojo::mysql::Transaction undef + requirements: + DBD::mysql 4.042 + ExtUtils::MakeMaker 0 + Mojolicious 7.55 + SQL::Abstract 1.81 + Mojolicious-8.04 + pathname: S/SR/SRI/Mojolicious-8.04.tar.gz provides: Mojo undef Mojo::Asset undef @@ -754,6 +1092,7 @@ DISTRIBUTIONS Mojo::DOM::CSS undef Mojo::DOM::HTML undef Mojo::Date undef + Mojo::DynamicMethods undef Mojo::EventEmitter undef Mojo::Exception undef Mojo::File undef @@ -776,6 +1115,7 @@ DISTRIBUTIONS Mojo::Message::Response undef Mojo::Parameters undef Mojo::Path undef + Mojo::Promise undef Mojo::Reactor undef Mojo::Reactor::EV undef Mojo::Reactor::Poll undef @@ -802,30 +1142,28 @@ DISTRIBUTIONS Mojo::UserAgent::Transactor undef Mojo::Util undef Mojo::WebSocket undef - Mojolicious 7.36 + Mojolicious 8.04 Mojolicious::Command undef + Mojolicious::Command::Author::cpanify undef + Mojolicious::Command::Author::generate undef + Mojolicious::Command::Author::generate::app undef + Mojolicious::Command::Author::generate::lite_app undef + Mojolicious::Command::Author::generate::makefile undef + Mojolicious::Command::Author::generate::plugin undef + Mojolicious::Command::Author::inflate undef Mojolicious::Command::cgi undef - Mojolicious::Command::cpanify undef Mojolicious::Command::daemon undef Mojolicious::Command::eval undef - Mojolicious::Command::generate undef - Mojolicious::Command::generate::app undef - Mojolicious::Command::generate::lite_app undef - Mojolicious::Command::generate::makefile undef - Mojolicious::Command::generate::plugin undef Mojolicious::Command::get undef - Mojolicious::Command::inflate undef Mojolicious::Command::prefork undef Mojolicious::Command::psgi undef Mojolicious::Command::routes undef - Mojolicious::Command::test undef Mojolicious::Command::version undef Mojolicious::Commands undef Mojolicious::Controller undef Mojolicious::Lite undef Mojolicious::Plugin undef Mojolicious::Plugin::Config undef - Mojolicious::Plugin::Config::Sandbox undef Mojolicious::Plugin::DefaultHelpers undef Mojolicious::Plugin::EPLRenderer undef Mojolicious::Plugin::EPRenderer undef @@ -851,19 +1189,27 @@ DISTRIBUTIONS ExtUtils::MakeMaker 0 IO::Socket::IP 0.37 JSON::PP 2.27103 + List::Util 1.41 Pod::Simple 3.09 Time::Local 1.2 perl 5.010001 - Mojolicious-Plugin-Authentication-1.32 - pathname: J/JJ/JJATRIA/Mojolicious-Plugin-Authentication-1.32.tar.gz + Mojolicious-Plugin-Authentication-1.33 + pathname: J/JJ/JJATRIA/Mojolicious-Plugin-Authentication-1.33.tar.gz provides: - Mojolicious::Plugin::Authentication 1.32 + Mojolicious::Plugin::Authentication 1.33 requirements: ExtUtils::MakeMaker 0 Mojo::Base 0 perl 5.010 strict 0 warnings 0 + Mojolicious-Plugin-CSPHeader-0.03 + pathname: L/LD/LDIDRY/Mojolicious-Plugin-CSPHeader-0.03.tar.gz + provides: + Mojolicious::Plugin::CSPHeader 0.03 + requirements: + ExtUtils::MakeMaker 0 + Mojolicious 7.75 Mojolicious-Plugin-DebugDumperHelper-0.03 pathname: L/LD/LDIDRY/Mojolicious-Plugin-DebugDumperHelper-0.03.tar.gz provides: @@ -871,6 +1217,14 @@ DISTRIBUTIONS requirements: ExtUtils::MakeMaker 0 Mojolicious 6.11 + Mojolicious-Plugin-GzipStatic-0.04 + pathname: L/LD/LDIDRY/Mojolicious-Plugin-GzipStatic-0.04.tar.gz + provides: + Mojolicious::Plugin::GzipStatic 0.04 + requirements: + ExtUtils::MakeMaker 0 + IO::Compress::Gzip 0 + Mojolicious 7.75 Mojolicious-Plugin-I18N-1.6 pathname: S/SH/SHARIFULN/Mojolicious-Plugin-I18N-1.6.tar.gz provides: @@ -899,20 +1253,27 @@ DISTRIBUTIONS requirements: ExtUtils::MakeMaker 0 Mojolicious 7.23 - Moo-2.003002 - pathname: H/HA/HAARG/Moo-2.003002.tar.gz + Mojolicious-Plugin-StaticCache-0.02 + pathname: L/LD/LDIDRY/Mojolicious-Plugin-StaticCache-0.02.tar.gz + provides: + Mojolicious::Plugin::StaticCache 0.02 + requirements: + ExtUtils::MakeMaker 0 + Mojolicious 7.33 + Moo-2.003004 + pathname: H/HA/HAARG/Moo-2.003004.tar.gz provides: Method::Generate::Accessor undef Method::Generate::BuildAll undef Method::Generate::Constructor undef Method::Generate::DemolishAll undef - Moo 2.003002 + Moo 2.003004 Moo::HandleMoose undef Moo::HandleMoose::FakeConstructor undef Moo::HandleMoose::FakeMetaClass undef Moo::HandleMoose::_TypeMap undef Moo::Object undef - Moo::Role 2.003002 + Moo::Role 2.003004 Moo::_Utils undef Moo::_mro undef Moo::_strictures undef @@ -929,21 +1290,145 @@ DISTRIBUTIONS Sub::Defer 2.003001 Sub::Quote 2.003001 perl 5.006 - Mozilla-CA-20160104 - pathname: A/AB/ABH/Mozilla-CA-20160104.tar.gz + Mozilla-CA-20180117 + pathname: A/AB/ABH/Mozilla-CA-20180117.tar.gz provides: - Mozilla::CA 20160104 + Mozilla::CA 20180117 requirements: ExtUtils::MakeMaker 0 Test 0 perl 5.006 - Net-HTTP-6.16 - pathname: O/OA/OALDERS/Net-HTTP-6.16.tar.gz + Net-DNS-1.18 + pathname: N/NL/NLNETLABS/Net-DNS-1.18.tar.gz + provides: + Net::DNS 1.18 + Net::DNS::Domain 1698 + Net::DNS::DomainName 1605 + Net::DNS::DomainName1035 1605 + Net::DNS::DomainName2535 1605 + Net::DNS::Header 1709 + Net::DNS::Mailbox 1605 + Net::DNS::Mailbox1035 1605 + Net::DNS::Mailbox2535 1605 + Net::DNS::Nameserver 1692 + Net::DNS::Packet 1714 + Net::DNS::Parameters 1714 + Net::DNS::Question 1714 + Net::DNS::RR 1714 + Net::DNS::RR::A 1597 + Net::DNS::RR::AAAA 1597 + Net::DNS::RR::AFSDB 1597 + Net::DNS::RR::APL 1597 + Net::DNS::RR::APL::Item 1597 + Net::DNS::RR::CAA 1597 + Net::DNS::RR::CDNSKEY 1586 + Net::DNS::RR::CDS 1586 + Net::DNS::RR::CERT 1597 + Net::DNS::RR::CNAME 1597 + Net::DNS::RR::CSYNC 1597 + Net::DNS::RR::DHCID 1597 + Net::DNS::RR::DLV 1528 + Net::DNS::RR::DNAME 1597 + Net::DNS::RR::DNSKEY 1597 + Net::DNS::RR::DS 1597 + Net::DNS::RR::EUI48 1597 + Net::DNS::RR::EUI64 1597 + Net::DNS::RR::GPOS 1528 + Net::DNS::RR::HINFO 1597 + Net::DNS::RR::HIP 1597 + Net::DNS::RR::IPSECKEY 1597 + Net::DNS::RR::ISDN 1597 + Net::DNS::RR::KEY 1528 + Net::DNS::RR::KX 1597 + Net::DNS::RR::L32 1597 + Net::DNS::RR::L64 1597 + Net::DNS::RR::LOC 1597 + Net::DNS::RR::LP 1597 + Net::DNS::RR::MB 1528 + Net::DNS::RR::MG 1528 + Net::DNS::RR::MINFO 1597 + Net::DNS::RR::MR 1528 + Net::DNS::RR::MX 1597 + Net::DNS::RR::NAPTR 1597 + Net::DNS::RR::NID 1597 + Net::DNS::RR::NS 1597 + Net::DNS::RR::NSEC 1696 + Net::DNS::RR::NSEC3 1694 + Net::DNS::RR::NSEC3PARAM 1597 + Net::DNS::RR::NULL 1528 + Net::DNS::RR::OPENPGPKEY 1597 + Net::DNS::RR::OPT 1605 + Net::DNS::RR::OPT::CHAIN 1605 + Net::DNS::RR::OPT::CLIENT_SUBNET 1605 + Net::DNS::RR::OPT::COOKIE 1605 + Net::DNS::RR::OPT::DAU 1605 + Net::DNS::RR::OPT::DHU 1605 + Net::DNS::RR::OPT::EXPIRE 1605 + Net::DNS::RR::OPT::KEY_TAG 1605 + Net::DNS::RR::OPT::N3U 1605 + Net::DNS::RR::OPT::PADDING 1605 + Net::DNS::RR::OPT::TCP_KEEPALIVE 1605 + Net::DNS::RR::PTR 1597 + Net::DNS::RR::PX 1597 + Net::DNS::RR::RP 1597 + Net::DNS::RR::RRSIG 1709 + Net::DNS::RR::RT 1597 + Net::DNS::RR::SIG 1709 + Net::DNS::RR::SMIMEA 1597 + Net::DNS::RR::SOA 1597 + Net::DNS::RR::SPF 1593 + Net::DNS::RR::SRV 1597 + Net::DNS::RR::SSHFP 1597 + Net::DNS::RR::TKEY 1528 + Net::DNS::RR::TLSA 1597 + Net::DNS::RR::TSIG 1597 + Net::DNS::RR::TXT 1597 + Net::DNS::RR::URI 1597 + Net::DNS::RR::X25 1597 + Net::DNS::Resolver 1714 + Net::DNS::Resolver::Base 1709 + Net::DNS::Resolver::MSWin32 1568 + Net::DNS::Resolver::Recurse 1709 + Net::DNS::Resolver::UNIX 1573 + Net::DNS::Resolver::android 1568 + Net::DNS::Resolver::cygwin 1568 + Net::DNS::Resolver::os2 1568 + Net::DNS::Resolver::os390 1579 + Net::DNS::Text 1698 + Net::DNS::Update 1714 + Net::DNS::ZoneFile 1709 + Net::DNS::ZoneFile::Generator 1709 + Net::DNS::ZoneFile::Text 1709 + requirements: + Digest::HMAC 1.03 + Digest::MD5 2.13 + Digest::SHA 5.23 + ExtUtils::MakeMaker 0 + File::Spec 0.86 + IO::File 1.08 + IO::Select 1.14 + IO::Socket::IP 0.38 + MIME::Base64 2.11 + PerlIO 1.05 + Scalar::Util 1.25 + Test::More 0.52 + Time::Local 1.19 + perl 5.006 + Net-Domain-TLD-1.75 + pathname: A/AL/ALEXP/Net-Domain-TLD-1.75.tar.gz provides: - Net::HTTP 6.16 - Net::HTTP::Methods 6.16 - Net::HTTP::NB 6.16 - Net::HTTPS 6.16 + Net::Domain::TLD 1.75 + requirements: + Carp 0 + ExtUtils::MakeMaker 0 + Storable 0 + Net-HTTP-6.18 + pathname: O/OA/OALDERS/Net-HTTP-6.18.tar.gz + provides: + Net::HTTP 6.18 + Net::HTTP::Methods 6.18 + Net::HTTP::NB 6.18 + Net::HTTPS 6.18 requirements: Carp 0 Compress::Raw::Zlib 0 @@ -956,16 +1441,29 @@ DISTRIBUTIONS strict 0 vars 0 warnings 0 - Net-SSLeay-1.81 - pathname: M/MI/MIKEM/Net-SSLeay-1.81.tar.gz + Net-SSLeay-1.85 + pathname: M/MI/MIKEM/Net-SSLeay-1.85.tar.gz provides: - Net::SSLeay 1.81 + Net::SSLeay 1.85 Net::SSLeay::Handle 0.61 requirements: ExtUtils::MakeMaker 6.36 MIME::Base64 0 Test::More 0.60_01 perl 5.005 + NetAddr-IP-4.079 + pathname: M/MI/MIKER/NetAddr-IP-4.079.tar.gz + provides: + NetAddr::IP 4.079 + NetAddr::IP::InetBase 0.08 + NetAddr::IP::Lite 1.57 + NetAddr::IP::Util 1.53 + NetAddr::IP::UtilPP 1.09 + NetAddr::IP::UtilPolluted 1.53 + NetAddr::IP::Util_IS 1 + requirements: + ExtUtils::MakeMaker 0 + Test::More 0 Number-Bytes-Human-0.11 pathname: F/FE/FERREIRA/Number-Bytes-Human-0.11.tar.gz provides: @@ -975,29 +1473,12 @@ DISTRIBUTIONS ExtUtils::MakeMaker 0 POSIX 0 Test::More 0 - ORLite-1.98 - pathname: A/AD/ADAMK/ORLite-1.98.tar.gz - provides: - ORLite 1.98 - requirements: - DBD::SQLite 1.27 - DBI 1.607 - ExtUtils::MakeMaker 6.59 - File::Path 2.08 - File::Remove 1.40 - File::Spec 0.80 - File::Temp 0.20 - Params::Util 1.00 - Test::More 0.47 - Test::Script 1.06 - perl 5.006 - Params-Classify-0.013 - pathname: Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz + Params-Classify-0.015 + pathname: Z/ZE/ZEFRAM/Params-Classify-0.015.tar.gz provides: - Params::Classify 0.013 + Params::Classify 0.015 requirements: Exporter 0 - ExtUtils::ParseXS 2.2006 Module::Build 0 Scalar::Util 1.01 Test::More 0 @@ -1005,38 +1486,18 @@ DISTRIBUTIONS perl 5.006001 strict 0 warnings 0 - Params-Util-1.07 - pathname: A/AD/ADAMK/Params-Util-1.07.tar.gz - provides: - Params::Util 1.07 - requirements: - ExtUtils::CBuilder 0.27 - ExtUtils::MakeMaker 6.52 - File::Spec 0.80 - Scalar::Util 1.18 - Test::More 0.42 - perl 5.00503 - Probe-Perl-0.03 - pathname: K/KW/KWILLIAMS/Probe-Perl-0.03.tar.gz - provides: - Probe::Perl 0.03 - requirements: - Config 0 - ExtUtils::MakeMaker 6.30 - File::Spec 0 - strict 0 - Role-Tiny-2.000005 - pathname: H/HA/HAARG/Role-Tiny-2.000005.tar.gz + Role-Tiny-2.000006 + pathname: H/HA/HAARG/Role-Tiny-2.000006.tar.gz provides: - Role::Tiny 2.000005 - Role::Tiny::With 2.000005 + Role::Tiny 2.000006 + Role::Tiny::With 2.000006 requirements: Exporter 5.57 perl 5.006 - SQL-Abstract-1.84 - pathname: I/IL/ILMARI/SQL-Abstract-1.84.tar.gz + SQL-Abstract-1.86 + pathname: I/IL/ILMARI/SQL-Abstract-1.86.tar.gz provides: - SQL::Abstract 1.84 + SQL::Abstract 1.86 SQL::Abstract::Test undef SQL::Abstract::Tree undef requirements: @@ -1049,17 +1510,18 @@ DISTRIBUTIONS Scalar::Util 0 Sub::Quote 2.000001 Text::Balanced 2.00 + perl 5.006 Sub-Exporter-Progressive-0.001013 pathname: F/FR/FREW/Sub-Exporter-Progressive-0.001013.tar.gz provides: Sub::Exporter::Progressive 0.001013 requirements: ExtUtils::MakeMaker 0 - Sub-Quote-2.004000 - pathname: H/HA/HAARG/Sub-Quote-2.004000.tar.gz + Sub-Quote-2.005001 + pathname: H/HA/HAARG/Sub-Quote-2.005001.tar.gz provides: - Sub::Defer 2.004000 - Sub::Quote 2.004000 + Sub::Defer 2.005001 + Sub::Quote 2.005001 requirements: ExtUtils::MakeMaker 0 Scalar::Util 0 @@ -1085,6 +1547,46 @@ DISTRIBUTIONS Text::Balanced 2 if 0 perl 5.005 + Term-ProgressBar-2.22 + pathname: M/MA/MANWAR/Term-ProgressBar-2.22.tar.gz + provides: + Term::ProgressBar 2.22 + Term::ProgressBar::IO 2.22 + requirements: + Capture::Tiny 0.13 + Carp 0 + Class::MethodMaker 1.02 + ExtUtils::MakeMaker 0 + Fatal 0 + File::Temp 0 + POSIX 0 + Term::ReadKey 2.14 + Test::Exception 0.31 + Test::More 0.80 + Test::Warnings 0 + perl 5.006 + TermReadKey-2.37 + pathname: J/JS/JSTOWE/TermReadKey-2.37.tar.gz + provides: + Term::ReadKey 2.37 + requirements: + ExtUtils::MakeMaker 6.58 + Test-Exception-0.43 + pathname: E/EX/EXODIST/Test-Exception-0.43.tar.gz + provides: + Test::Exception 0.43 + requirements: + Carp 0 + Exporter 0 + ExtUtils::MakeMaker 0 + Sub::Uplevel 0.18 + Test::Builder 0.7 + Test::Builder::Tester 1.07 + Test::Harness 2.03 + base 0 + perl 5.006001 + strict 0 + warnings 0 Test-Fatal-0.014 pathname: R/RJ/RJBS/Test-Fatal-0.014.tar.gz provides: @@ -1097,24 +1599,10 @@ DISTRIBUTIONS Try::Tiny 0.07 strict 0 warnings 0 - Test-Script-1.20 - pathname: P/PL/PLICEASE/Test-Script-1.20.tar.gz - provides: - Test::Script 1.20 - requirements: - Capture::Tiny 0 - ExtUtils::MakeMaker 0 - File::Spec 0.80 - IO::Handle 0 - Probe::Perl 0.01 - Test::Builder 0.32 - Test::More 0.96 - perl 5.008001 - Test-Warn-0.32 - pathname: B/BI/BIGJ/Test-Warn-0.32.tar.gz + Test-Warn-0.36 + pathname: B/BI/BIGJ/Test-Warn-0.36.tar.gz provides: - Test::Warn 0.32 - Test::Warn::Categorization 0.32 + Test::Warn 0.36 requirements: Carp 1.22 ExtUtils::MakeMaker 0 @@ -1122,6 +1610,19 @@ DISTRIBUTIONS Test::Builder 0.13 Test::Builder::Tester 1.02 perl 5.006 + Test-Warnings-0.026 + pathname: E/ET/ETHER/Test-Warnings-0.026.tar.gz + provides: + Test::Warnings 0.026 + requirements: + Carp 0 + Exporter 0 + ExtUtils::MakeMaker 0 + Test::Builder 0 + parent 0 + perl 5.006 + strict 0 + warnings 0 Text-Soundex-3.05 pathname: R/RJ/RJBS/Text-Soundex-3.05.tar.gz provides: @@ -1172,10 +1673,10 @@ DISTRIBUTIONS Time::Zone 2.24 requirements: ExtUtils::MakeMaker 0 - Try-Tiny-0.28 - pathname: E/ET/ETHER/Try-Tiny-0.28.tar.gz + Try-Tiny-0.30 + pathname: E/ET/ETHER/Try-Tiny-0.30.tar.gz provides: - Try::Tiny 0.28 + Try::Tiny 0.30 requirements: Carp 0 Exporter 5.57 @@ -1184,70 +1685,139 @@ DISTRIBUTIONS perl 5.006 strict 0 warnings 0 - URI-1.71 - pathname: E/ET/ETHER/URI-1.71.tar.gz + URI-1.74 + pathname: E/ET/ETHER/URI-1.74.tar.gz provides: - URI 1.71 + URI 1.74 URI::Escape 3.31 URI::Heuristic 4.20 - URI::IRI 1.71 - URI::QueryParam 1.71 - URI::Split 1.71 + URI::IRI 1.74 + URI::QueryParam 1.74 + URI::Split 1.74 URI::URL 5.04 URI::WithBase 2.20 - URI::_foreign 1.71 - URI::_generic 1.71 - URI::_idna 1.71 - URI::_ldap 1.71 - URI::_login 1.71 - URI::_punycode 1.71 - URI::_query 1.71 - URI::_segment 1.71 - URI::_server 1.71 - URI::_userpass 1.71 - URI::data 1.71 + URI::data 1.74 URI::file 4.21 - URI::file::Base 1.71 - URI::file::FAT 1.71 - URI::file::Mac 1.71 - URI::file::OS2 1.71 - URI::file::QNX 1.71 - URI::file::Unix 1.71 - URI::file::Win32 1.71 - URI::ftp 1.71 - URI::gopher 1.71 - URI::http 1.71 - URI::https 1.71 - URI::ldap 1.71 - URI::ldapi 1.71 - URI::ldaps 1.71 - URI::mailto 1.71 - URI::mms 1.71 - URI::news 1.71 - URI::nntp 1.71 - URI::pop 1.71 - URI::rlogin 1.71 - URI::rsync 1.71 - URI::rtsp 1.71 - URI::rtspu 1.71 - URI::sftp 1.71 - URI::sip 1.71 - URI::sips 1.71 - URI::snews 1.71 - URI::ssh 1.71 - URI::telnet 1.71 - URI::tn3270 1.71 - URI::urn 1.71 - URI::urn::isbn undef - URI::urn::oid 1.71 + URI::file::Base 1.74 + URI::file::FAT 1.74 + URI::file::Mac 1.74 + URI::file::OS2 1.74 + URI::file::QNX 1.74 + URI::file::Unix 1.74 + URI::file::Win32 1.74 + URI::ftp 1.74 + URI::gopher 1.74 + URI::http 1.74 + URI::https 1.74 + URI::ldap 1.74 + URI::ldapi 1.74 + URI::ldaps 1.74 + URI::mailto 1.74 + URI::mms 1.74 + URI::news 1.74 + URI::nntp 1.74 + URI::pop 1.74 + URI::rlogin 1.74 + URI::rsync 1.74 + URI::rtsp 1.74 + URI::rtspu 1.74 + URI::sftp 1.74 + URI::sip 1.74 + URI::sips 1.74 + URI::snews 1.74 + URI::ssh 1.74 + URI::telnet 1.74 + URI::tn3270 1.74 + URI::urn 1.74 + URI::urn::isbn 1.74 + URI::urn::oid 1.74 requirements: + Carp 0 + Cwd 0 + Data::Dumper 0 + Encode 0 Exporter 5.57 ExtUtils::MakeMaker 0 MIME::Base64 2 + Net::Domain 0 Scalar::Util 0 + constant 0 + integer 0 + overload 0 parent 0 perl 5.008001 + strict 0 utf8 0 + warnings 0 + URI-Find-20160806 + pathname: M/MS/MSCHWERN/URI-Find-20160806.tar.gz + provides: + URI::Find 20160806 + URI::Find::Schemeless 20160806 + requirements: + Module::Build 0.30 + Test::More 0.88 + URI 1.60 + perl v5.8.8 + URI-Nested-0.10 + pathname: D/DW/DWHEELER/URI-Nested-0.10.tar.gz + provides: + URI::Nested 0.10 + requirements: + Module::Build 0.30 + Test::More 0.88 + URI 1.40 + perl 5.008001 + URI-db-0.19 + pathname: D/DW/DWHEELER/URI-db-0.19.tar.gz + provides: + URI::cassandra 0.19 + URI::couch 0.19 + URI::couchdb 0.19 + URI::cubrid 0.19 + URI::db 0.19 + URI::db2 0.19 + URI::derby 0.19 + URI::exasol 0.19 + URI::firebird 0.19 + URI::hive 0.19 + URI::impala 0.19 + URI::informix 0.19 + URI::ingres 0.19 + URI::interbase 0.19 + URI::ldapdb 0.19 + URI::maria 0.19 + URI::mariadb 0.19 + URI::max 0.19 + URI::maxdb 0.19 + URI::monet 0.19 + URI::monetdb 0.19 + URI::mongo 0.19 + URI::mongodb 0.19 + URI::mssql 0.19 + URI::mysql 0.19 + URI::oracle 0.19 + URI::pg 0.19 + URI::pgsql 0.19 + URI::pgxc 0.19 + URI::postgres 0.19 + URI::postgresql 0.19 + URI::postgresxc 0.19 + URI::redshift 0.19 + URI::snowflake 0.19 + URI::sqlite 0.19 + URI::sqlite3 0.19 + URI::sqlserver 0.19 + URI::sybase 0.19 + URI::teradata 0.19 + URI::unify 0.19 + URI::vertica 0.19 + requirements: + Module::Build 0.30 + Test::More 0.88 + URI 1.40 + URI::Nested 0.10 + perl 5.008001 WWW-RobotRules-6.02 pathname: G/GA/GAAS/WWW-RobotRules-6.02.tar.gz provides: @@ -1260,53 +1830,55 @@ DISTRIBUTIONS Fcntl 0 URI 1.10 perl 5.008001 - XML-SAX-Base-1.09 - pathname: G/GR/GRANTM/XML-SAX-Base-1.09.tar.gz + YAML-Tiny-1.73 + pathname: E/ET/ETHER/YAML-Tiny-1.73.tar.gz provides: - XML::SAX::Base 1.09 - XML::SAX::Base::NoHandler 1.09 - XML::SAX::Exception 1.09 + YAML::Tiny 1.73 requirements: + B 0 + Carp 0 + Exporter 0 ExtUtils::MakeMaker 0 - perl 5.008 + Fcntl 0 + Scalar::Util 0 + perl 5.008001 + strict 0 + warnings 0 common-sense-3.74 pathname: M/ML/MLEHMANN/common-sense-3.74.tar.gz provides: common::sense 3.74 requirements: ExtUtils::MakeMaker 0 - libwww-perl-6.26 - pathname: O/OA/OALDERS/libwww-perl-6.26.tar.gz - provides: - LWP 6.26 - LWP::Authen::Basic 6.26 - LWP::Authen::Digest 6.26 - LWP::Authen::Ntlm 6.26 - LWP::ConnCache 6.26 - LWP::Debug 6.26 - LWP::Debug::TraceHTTP 6.26 - LWP::Debug::TraceHTTP::Socket 6.26 - LWP::DebugFile 6.26 - LWP::MemberMixin 6.26 - LWP::Protocol 6.26 - LWP::Protocol::MyFTP 6.26 - LWP::Protocol::cpan 6.26 - LWP::Protocol::data 6.26 - LWP::Protocol::file 6.26 - LWP::Protocol::ftp 6.26 - LWP::Protocol::gopher 6.26 - LWP::Protocol::http 6.26 - LWP::Protocol::http::Socket 6.26 - LWP::Protocol::http::SocketMethods 6.26 - LWP::Protocol::loopback 6.26 - LWP::Protocol::mailto 6.26 - LWP::Protocol::nntp 6.26 - LWP::Protocol::nogo 6.26 - LWP::RobotUA 6.26 - LWP::Simple 6.26 - LWP::UserAgent 6.26 + libwww-perl-6.36 + pathname: E/ET/ETHER/libwww-perl-6.36.tar.gz + provides: + LWP 6.36 + LWP::Authen::Basic 6.36 + LWP::Authen::Digest 6.36 + LWP::Authen::Ntlm 6.36 + LWP::ConnCache 6.36 + LWP::Debug 6.36 + LWP::Debug::TraceHTTP 6.36 + LWP::DebugFile 6.36 + LWP::MemberMixin 6.36 + LWP::Protocol 6.36 + LWP::Protocol::cpan 6.36 + LWP::Protocol::data 6.36 + LWP::Protocol::file 6.36 + LWP::Protocol::ftp 6.36 + LWP::Protocol::gopher 6.36 + LWP::Protocol::http 6.36 + LWP::Protocol::loopback 6.36 + LWP::Protocol::mailto 6.36 + LWP::Protocol::nntp 6.36 + LWP::Protocol::nogo 6.36 + LWP::RobotUA 6.36 + LWP::Simple 6.36 + LWP::UserAgent 6.36 libwww::perl undef requirements: + CPAN::Meta::Requirements 2.120620 Digest::MD5 0 Encode 2.12 Encode::Locale 0 @@ -1328,6 +1900,7 @@ DISTRIBUTIONS IO::Socket 0 LWP::MediaTypes 6 MIME::Base64 2.1 + Module::Metadata 0 Net::FTP 2.58 Net::HTTP 6.07 Scalar::Util 0 @@ -1400,6 +1973,7 @@ DISTRIBUTIONS requirements: Authen::SASL 2.00 Convert::ASN1 0.2 + Digest::HMAC_MD5 0 Digest::MD5 0 ExtUtils::MakeMaker 6.42 File::Basename 0 @@ -1419,5 +1993,4 @@ DISTRIBUTIONS Text::Soundex 0 Time::Local 0 URI::ldap 1.1 - XML::SAX::Base 0 perl 5.008001 diff --git a/lib/Lufi.pm b/lib/Lufi.pm index e703ec4..3884830 100644 --- a/lib/Lufi.pm +++ b/lib/Lufi.pm @@ -3,47 +3,33 @@ package Lufi; use Mojo::Base 'Mojolicious'; use Net::LDAP; use Apache::Htpasswd; +use Mojolicious::Sessions; +use Email::Valid; +use Data::Validate::URI qw(is_web_uri); +use Lufi::DefaultConfig qw($default_config); $ENV{MOJO_MAX_WEBSOCKET_SIZE} = 100485760; # 10 * 1024 * 1024 = 10MiB # This method will run once at server start sub startup { my $self = shift; - my $entry; my $config = $self->plugin('Config' => { - default => { - provisioning => 100, - provis_step => 5, - length => 10, - token_length => 32, - secrets => ['hfudsifdsih'], - default_delay => 0, - max_delay => 0, - mail => { - how => 'sendmail' - }, - mail_sender => 'no-reply@lufi.io', - theme => 'default', - upload_dir => 'files', - session_duration => 3600, - allow_pwd_on_files => 0, - dbtype => 'sqlite', - } + default => $default_config }); - die "You need to provide a contact information in lufi.conf!" unless (defined($self->config('contact'))); + die 'You need to provide a contact information in lufi.conf!' unless (defined($self->config('contact'))); + die 'You need to provide a **report** information in lufi.conf!' unless (defined($self->config('report'))); - # Themes handling - shift @{$self->renderer->paths}; - shift @{$self->static->paths}; - if ($config->{theme} ne 'default') { - my $theme = $self->home->rel_file('themes/'.$config->{theme}); - push @{$self->renderer->paths}, $theme.'/templates' if -d $theme.'/templates'; - push @{$self->static->paths}, $theme.'/public' if -d $theme.'/public'; + if (Email::Valid->address($self->config('report'))) { + $self->config('report' => 'mailto:'.$self->config('report')); + } elsif (!is_web_uri($self->config('report'))) { + die 'You need to provide an email address or an URL as report information in lufi.conf!'; } - push @{$self->renderer->paths}, $self->home->rel_file('themes/default/templates'); - push @{$self->static->paths}, $self->home->rel_file('themes/default/public'); + + + # Themes handling + $self->plugin('FiatTux::Themes'); # Mail config my $mail_config = { @@ -63,88 +49,30 @@ sub startup { # Debug $self->plugin('DebugDumperHelper'); - # Check htpasswd file existence - die 'Unable to read '.$self->config('htpasswd') if (defined($self->config('htpasswd')) && !-r $self->config('htpasswd')); - - # Authentication (if configured) - $self->plugin('authentication' => - { - autoload_user => 1, - session_key => 'Dolomon', - load_user => sub { - my ($c, $username) = @_; - - return $username; - }, - validate_user => sub { - my ($c, $username, $password, $extradata) = @_; - - if (defined($c->config('ldap'))) { - my $ldap = Net::LDAP->new($c->config->{ldap}->{uri}); - my $mesg = $ldap->bind($c->config->{ldap}->{bind_user}.$c->config->{ldap}->{bind_dn}, - password => $c->config->{ldap}->{bind_pwd} - ); - - $mesg->code && die $mesg->error; - - $mesg = $ldap->search( - base => $c->config->{ldap}->{user_tree}, - filter => "(&(uid=$username)".$c->config->{ldap}->{user_filter}.")" - ); - - if ($mesg->code) { - $c->app->log->error($mesg->error); - return undef; - } - - # we filtered out, but did we actually get a non-empty result? - $entry = $mesg->shift_entry; - if (!defined $entry) { - $c->app->log->info("[LDAP authentication failed] - User $username filtered out, IP: ".$c->ip); - return undef; - } - - # Now we know that the user exists, and that he is authorized by the filter - $mesg = $ldap->bind('uid='.$username.$c->config->{ldap}->{bind_dn}, - password => $password - ); - - if ($mesg->code) { - $c->app->log->info("[LDAP authentication failed] login: $username, IP: ".$c->ip); - $c->app->log->error("[LDAP authentication failed] ".$mesg->error); - return undef; - } - - $c->app->log->info("[LDAP authentication successful] login: $username, IP: ".$c->ip); - } elsif (defined($c->config('htpasswd'))) { - my $htpasswd = new Apache::Htpasswd({passwdFile => $c->config->{htpasswd}, - ReadOnly => 1} - ); - if (!$htpasswd->htCheckPassword($username, $password)) { - return undef; - } - $c->app->log->info("[Simple authentication successful] login: $username, IP: ".$c->ip); - } - - return $username; - } - } - ); - if (defined($self->config('ldap')) || defined($self->config('htpasswd'))) { - $self->app->sessions->default_expiration($self->config('session_duration')); - } + # Compress static assets + $self->plugin('GzipStatic'); + + # Headers + $self->plugin('Lufi::Plugin::Headers'); + + # Fiat Tux helpers + $self->plugin('FiatTux::Helpers'); + + # Authentication + $self->plugin('FiatTux::GrantAccess'); # Secrets $self->secrets($self->config('secrets')); # Helpers $self->plugin('Lufi::Plugin::Helpers'); - # Hooks - $self->hook( - after_dispatch => sub { - shift->provisioning(); - } - ); + + # Recurrent task + Mojo::IOLoop->recurring(2 => sub { + my $loop = shift; + + $self->provisioning(); + }); # For the first launch (after, this isn't really useful) $self->provisioning(); @@ -153,6 +81,12 @@ sub startup { mkdir($self->config('upload_dir'), 0700) unless (-d $self->config('upload_dir')); die ('The upload directory ('.$self->config('upload_dir').') is not writable') unless (-w $self->config('upload_dir')); + # Configure sessions + my $sessions = Mojolicious::Sessions->new; + $sessions->cookie_name('lufi'); + $sessions->cookie_path($self->config('prefix')); + $self->sessions($sessions); + # Default layout $self->defaults(layout => 'default'); @@ -160,55 +94,38 @@ sub startup { my $r = $self->routes; # Page for files uploading - $r->get('/' => sub { - my $c = shift; - if ((!defined($c->config('ldap')) && !defined($c->config('htpasswd'))) || $c->is_user_authenticated) { - $c->render(template => 'index'); - } else { - $c->redirect_to('login'); - } - })->name('index'); + $r->get('/') + ->to('Misc#index') + ->name('index'); + + $r->get('/lang/:l') + ->to('Misc#change_lang') + ->name('lang'); if (defined $self->config('ldap') || defined $self->config('htpasswd')) { # Login page - $r->get('/login' => sub { - my $c = shift; - if ($c->is_user_authenticated) { - $c->redirect_to('index'); - } else { - $c->render(template => 'login'); - } - }); + $r->get('/login') + ->to('Auth#login_page'); + # Authentication - $r->post('/login' => sub { - my $c = shift; - my $login = $c->param('login'); - my $pwd = $c->param('password'); - - if($c->authenticate($login, $pwd)) { - $c->redirect_to('index'); - } elsif (defined $entry) { - $c->stash(msg => $c->l('Please, check your credentials: unable to authenticate.')); - $c->render(template => 'login'); - } else { - $c->stash(msg => $c->l('Sorry mate, you are not authorised to use that service. Contact your sysadmin if you think there\'s a glitch in the matrix.')); - $c->render(template => 'login'); - } - }); + $r->post('/login') + ->to('Auth#login'); + # Logout page - $r->get('/logout' => sub { - my $c = shift; - if ($c->is_user_authenticated) { - $c->logout; - } - $c->render(template => 'logout'); - })->name('logout'); + $r->post('/logout') + ->to('Auth#log_out') + ->name('logout'); } # About page - $r->get('/about' => sub { - shift->render(template => 'about'); - })->name('about'); + $r->get('/about') + ->to('Misc#about') + ->name('about'); + + # Generated js files + $r->get('/partial/:file') + ->to('Misc#js_files') + ->name('partial'); # Get instance stats $r->get('/fullstats') @@ -216,58 +133,48 @@ sub startup { ->name('fullstats'); # Get a file - $r->get('/r/:short')-> - to('Files#r')-> - name('render'); + $r->get('/r/:short') + ->to('Files#r') + ->name('render'); # List of files (use localstorage, so the server know nothing about files) - $r->get('/files' => sub { - my $c = shift; - if ((!defined($c->config('ldap')) && !defined($c->config('htpasswd'))) || $c->is_user_authenticated) { - $c->render(template => 'files'); - } else { - $c->redirect_to('login'); - } - })->name('files'); + $r->get('/files') + ->to('Files#files') + ->name('files'); # Get counter informations about a file - $r->post('/c')-> - to('Files#get_counter')-> - name('counter'); + $r->post('/c') + ->to('Files#get_counter') + ->name('counter'); # Get counter informations about a file - $r->get('/d/:short/:token')-> - to('Files#delete')-> - name('delete'); + $r->get('/d/:short/:token') + ->to('Files#delete') + ->name('delete'); # Get some informations about delays - $r->get('/delays' => sub { - shift->render(template => 'delays'); - })->name('delays'); + $r->get('/delays') + ->to('Misc#delays') + ->name('delays'); # Get mail page - $r->get('/m')-> - to('Mail#render_mail')-> - name('mail'); + $r->get('/m') + ->to('Mail#render_mail') + ->name('mail'); # Submit mail - $r->post('/m')-> - to('Mail#send_mail'); - - # About page - $r->get('/about' => sub { - shift->render(template => 'about'); - })->name('about'); + $r->post('/m') + ->to('Mail#send_mail'); # Upload files websocket - $r->websocket('/upload')-> - to('Files#upload')-> - name('upload'); + $r->websocket('/upload') + ->to('Files#upload') + ->name('upload'); # Get files websocket - $r->websocket('/download/:short')-> - to('Files#download')-> - name('download'); + $r->websocket('/download/:short') + ->to('Files#download') + ->name('download'); } 1; diff --git a/lib/Lufi/Command/cron/cleanbdd.pm b/lib/Lufi/Command/cron/cleanbdd.pm index 4a3e326..4ff7fbc 100644 --- a/lib/Lufi/Command/cron/cleanbdd.pm +++ b/lib/Lufi/Command/cron/cleanbdd.pm @@ -3,6 +3,7 @@ package Lufi::Command::cron::cleanbdd; use Mojo::Base 'Mojolicious::Command'; use Lufi::DB::File; use FindBin qw($Bin); +use Lufi::DefaultConfig qw($default_config); has description => 'Delete IP addresses from database after configured delay.'; has usage => sub { shift->extract_usage }; @@ -19,10 +20,7 @@ sub run { } my $config = $c->app->plugin('Config', { file => $cfile, - default => { - dbtype => 'sqlite', - keep_ip_during => 365, - } + default => $default_config }); my $separation = time() - $config->{keep_ip_during} * 86400; diff --git a/lib/Lufi/Command/cron/cleanfiles.pm b/lib/Lufi/Command/cron/cleanfiles.pm index 721e2ad..2e3ec34 100644 --- a/lib/Lufi/Command/cron/cleanfiles.pm +++ b/lib/Lufi/Command/cron/cleanfiles.pm @@ -3,6 +3,7 @@ package Lufi::Command::cron::cleanfiles; use Mojo::Base 'Mojolicious::Command'; use Lufi::DB::File; use FindBin qw($Bin); +use Lufi::DefaultConfig qw($default_config); has description => 'Delete expired files.'; has usage => sub { shift->extract_usage }; @@ -19,10 +20,7 @@ sub run { } my $config = $c->app->plugin('Config', { file => $cfile, - default => { - dbtype => 'sqlite', - upload_dir => 'files', - } + default => $default_config }); my $time = time(); diff --git a/lib/Lufi/Command/cron/watch.pm b/lib/Lufi/Command/cron/watch.pm index 8d31ce6..6badb2e 100644 --- a/lib/Lufi/Command/cron/watch.pm +++ b/lib/Lufi/Command/cron/watch.pm @@ -4,6 +4,7 @@ use Filesys::DiskUsage qw/du/; use Lufi::DB::File; use Switch; use FindBin qw($Bin); +use Lufi::DefaultConfig qw($default_config); has description => 'Watch the files directory and take action when over quota'; has usage => sub { shift->extract_usage }; @@ -20,11 +21,7 @@ sub run { } my $config = $c->app->plugin('Config', { file => $cfile, - default => { - dbtype => 'sqlite', - upload_dir => 'files', - policy_when_full => 'warn' - } + default => $default_config }); if (defined($config->{max_total_size})) { diff --git a/lib/Lufi/Command/sqliteToOtherDB.pm b/lib/Lufi/Command/sqliteToOtherDB.pm new file mode 100644 index 0000000..20e8561 --- /dev/null +++ b/lib/Lufi/Command/sqliteToOtherDB.pm @@ -0,0 +1,94 @@ +package Lufi::Command::sqliteToOtherDB; +use Mojo::Base 'Mojolicious::Command'; +use Lufi::DB::File; +use Lufi::DB::Slice; +use Mojo::SQLite; +use FindBin qw($Bin); +use Term::ProgressBar; +use Lufi::DefaultConfig qw($default_config); + +has description => 'Migrate the records from a SQLite db to the currently configured database'; +has usage => sub { shift->extract_usage }; + +sub run { + my $c = shift; + + my $cfile = Mojo::File->new($Bin, '..' , 'lufi.conf'); + if (defined $ENV{MOJO_CONFIG}) { + $cfile = Mojo::File->new($ENV{MOJO_CONFIG}); + unless (-e $cfile->to_abs) { + $cfile = Mojo::File->new($Bin, '..', $ENV{MOJO_CONFIG}); + } + } + my $config = $c->app->plugin('Config', { + file => $cfile, + default => $default_config + }); + + if ($config->{dbtype} eq 'sqlite') { + say 'Please configure `dbtype` to something else than `sqlite` to use this command.'; + print $c->usage; + exit 1; + } + + my $sqlite = Mojo::SQLite->new('sqlite:'.$config->{db_path}); + my $files = $sqlite->db->select('files', undef)->hashes; + my $slices = $sqlite->db->select('slices', undef)->hashes; + + my $progress = Term::ProgressBar->new({count => $files->size + $slices->size}); + + $files->each(sub { + my ($file, $num) = @_; + + $progress->update(); + + Lufi::DB::File->new(app => $c->app) + ->short($file->{short}) + ->deleted($file->{deleted}) + ->mediatype($file->{mediatype}) + ->filename($file->{filename}) + ->filesize($file->{filesize}) + ->counter($file->{counter}) + ->delete_at_first_view($file->{delete_at_first_view}) + ->delete_at_day($file->{delete_at_day}) + ->created_at($file->{created_at}) + ->created_by($file->{created_by}) + ->last_access_at($file->{last_access_at}) + ->mod_token($file->{mod_token}) + ->nbslices($file->{nbslices}) + ->complete($file->{complete}) + ->passwd($file->{passwd}) + ->abuse($file->{abuse}) + ->write(); + }); + $slices->each(sub { + my ($slice, $num) = @_; + + Lufi::DB::Slice->new(app => $c->app) + ->short($slice->{short}) + ->j($slice->{j}) + ->path($slice->{path}) + ->write(); + + $progress->update(); + }); +} + +=encoding utf8 + +=head1 NAME + +Lufi::Command::cron::sqliteToOtherDB Migrate the records from a SQLite db to the currently configured database + +=head1 SYNOPSIS + + Usage: script/lufi sqliteToOtherDB + + This command needs you to: + - set `db_path` in your config file (otherwise, it will use the default path, `lufi.db` to migrate data from) + - set `dbtype` to an other database type in your config file + - configure the other database access in your config file + +=cut + +1; diff --git a/lib/Lufi/Controller/Auth.pm b/lib/Lufi/Controller/Auth.pm new file mode 100644 index 0000000..6168309 --- /dev/null +++ b/lib/Lufi/Controller/Auth.pm @@ -0,0 +1,47 @@ +# vim:set sw=4 ts=4 sts=4 ft=perl expandtab: +package Lufi::Controller::Auth; +use Mojo::Base 'Mojolicious::Controller'; + +sub login_page { + my $c = shift; + + if ($c->is_user_authenticated) { + $c->redirect_to('index'); + } else { + $c->render(template => 'login'); + } +} + +sub login { + my $c = shift; + + my $login = $c->param('login'); + my $pwd = $c->param('password'); + + if ($c->validation->csrf_protect->has_error('csrf_token')) { + $c->stash(msg => $c->l('Bad CSRF token.')); + $c->render(template => 'login'); + } else { + if($c->authenticate($login, $pwd)) { + $c->redirect_to('index'); + } else { + $c->stash(msg => $c->l('Please, check your credentials or your right to access this service: unable to authenticate.')); + $c->render(template => 'login'); + } + } +} + +sub log_out { + my $c = shift; + + if ($c->is_user_authenticated) { + if ($c->validation->csrf_protect->has_error('csrf_token')) { + $c->stash(msg => $c->l('Bad CSRF token.')); + } else { + $c->logout; + } + } + $c->render(template => 'logout'); +} + +1; diff --git a/lib/Lufi/Controller/Files.pm b/lib/Lufi/Controller/Files.pm index 7841268..bb72521 100644 --- a/lib/Lufi/Controller/Files.pm +++ b/lib/Lufi/Controller/Files.pm @@ -11,6 +11,16 @@ use Number::Bytes::Human qw(format_bytes); use Filesys::DfPortable; use Crypt::SaltedHash; +sub files { + my $c = shift; + + if ((!defined($c->config('ldap')) && !defined($c->config('htpasswd'))) || $c->is_user_authenticated) { + $c->render(template => 'files'); + } else { + $c->redirect_to('login'); + } +} + sub upload { my $c = shift; @@ -111,9 +121,11 @@ sub upload { if (defined($c->config('ldap')) || defined($c->config('htpasswd'))) { $creator = 'User: '.$c->current_user.', IP: '.$creator; } + my $delete_at_first_view = ($json->{del_at_first_view}) ? 1 : 0; + $delete_at_first_view = 1 if $c->app->config('force_burn_after_reading'); $f = Lufi::DB::File->new(app => $c->app)->get_empty() ->created_by($creator) - ->delete_at_first_view(($json->{del_at_first_view}) ? 1 : 0) + ->delete_at_first_view($delete_at_first_view) ->delete_at_day($delay) ->mediatype($json->{type}) ->filename($json->{name}) @@ -153,8 +165,6 @@ sub upload { } } - $c->provisioning; - $ws->send(to_json( { success => true, @@ -190,6 +200,13 @@ sub upload { $c->app->log->debug('Client disconnected'); } ); + } else { + $c->on( + message => sub { + $c->app->log->info(sprintf('Someone unauthenticated tried to upload a file. IP: %s', $c->ip)); + $c->finish; + } + ); } } @@ -227,6 +244,20 @@ sub download { ))); } ); + } elsif (defined($ldfile->abuse)) { + my $abuse_msg = $c->l('This file has been deactivated by the admins. Contact them to know why.'); + $abuse_msg = $c->app->config('abuse')->{$ldfile->abuse} if ($c->app->config('abuse') && $c->app->config('abuse')->{$ldfile->abuse}); + $c->on( + message => sub { + my ($ws, $json) = @_; + $c->send(decode('UTF-8', encode_json( + { + success => false, + msg => $abuse_msg + } + ))); + } + ); } elsif ($ldfile->complete) { my $f = $ldfile; diff --git a/lib/Lufi/Controller/Mail.pm b/lib/Lufi/Controller/Mail.pm index bbfbfbe..2dbb466 100644 --- a/lib/Lufi/Controller/Mail.pm +++ b/lib/Lufi/Controller/Mail.pm @@ -1,13 +1,17 @@ # vim:set sw=4 ts=4 sts=4 ft=perl expandtab: package Lufi::Controller::Mail; use Mojo::Base 'Mojolicious::Controller'; -use Email::Valid; use Mojo::JSON qw(decode_json); +use Mojo::URL; +use Email::Valid; +use URI::Find; sub render_mail { my $c = shift; my $links = (defined($c->param('links'))) ? decode_json($c->param('links')) : []; + $c->redirect_to('/') unless (scalar(@{$links})); + $c->render( template => 'mail', links => $links @@ -20,7 +24,34 @@ sub send_mail { my $validation = $c->validation; return $c->render(text => $c->l('Bad CSRF token!'), status => 403) if $validation->csrf_protect->has_error('csrf_token'); - my $emails = $c->param('emails'); + my $emails = $c->param('emails'); + my $body = $c->param('body'); + my $subject = $c->param('subject'); + my $msg = ''; + + my $base_url = $c->req->url->to_abs->path('/r/'); + my $fixed_url = $base_url; + if ($c->config('fixed_domain')) { + $fixed_url->host($c->config('fixed_domain')); + } + my $at_least_one_instance_url = 0; + my $finder = URI::Find->new(sub { + my ($uri, $orig_uri) = @_; + $uri = Mojo::URL->new($uri); + if ($uri->host ne $base_url->to_abs->host && $uri->host ne $fixed_url->to_abs->host) { + $msg .= $c->l('You can\'t add URLs that are not related to this instance.').'
'; + } elsif (index($orig_uri, $fixed_url->to_abs->to_string) > -1) { + $at_least_one_instance_url = 1; + } + return $orig_uri; + }); + $finder->find(\$body); + $finder->find(\$subject); + + $c->debug($at_least_one_instance_url); + unless ($at_least_one_instance_url) { + $msg .= $c->l('The body of the mail must contain at least one URL pointing to a file hosted on this instance.').'
'; + } $emails =~ s/ //g; my @a = split(',', $emails); @@ -33,23 +64,23 @@ sub send_mail { } } - my $msg = ''; if (scalar(@bad)) { - $msg .= $c->l('The following email addresses are not valid: %1', join(', ', @bad))."\n"; + $msg .= $c->l('The following email addresses are not valid: %1', join(', ', @bad)).'
'; } - $msg .= $c->l('You must give email addresses.')."\n" unless (scalar(@a)); - $msg .= $c->l('The email subject can\'t be empty.')."\n" unless ($c->param('subject')); - $msg .= $c->l('The email body can\'t be empty.')."\n" unless ($c->param('body')); + $msg .= $c->l('You must give email addresses.').'
' unless (scalar(@a)); + $msg .= $c->l('The email subject can\'t be empty.').'
' unless ($subject); + $msg .= $c->l('The email body can\'t be empty.').'
' unless ($body); if ($msg) { return $c->render( template => 'mail', msg => $msg, + links => [], values => { emails => $emails, - subject => $c->param('subject'), - body => $c->param('body') + subject => $subject, + body => $body } ) } @@ -57,8 +88,8 @@ sub send_mail { $c->mail( from => $c->config('mail_sender'), bcc => $emails, - subject => $c->param('subject'), - data => $c->param('body') + subject => $subject, + data => $body ); return $c->render( diff --git a/lib/Lufi/Controller/Misc.pm b/lib/Lufi/Controller/Misc.pm index 1783d61..0c196c2 100644 --- a/lib/Lufi/Controller/Misc.pm +++ b/lib/Lufi/Controller/Misc.pm @@ -2,8 +2,49 @@ package Lufi::Controller::Misc; use Mojo::Base 'Mojolicious::Controller'; use Mojo::File; +use Mojo::URL; use Lufi::DB::File; +sub index { + my $c = shift; + if ((!defined($c->config('ldap')) && !defined($c->config('htpasswd'))) || $c->is_user_authenticated) { + $c->render(template => 'index'); + } else { + $c->redirect_to('login'); + } +} + +sub change_lang { + my $c = shift; + my $l = $c->param('l'); + + if ($c->iso639_native_name($l)) { + $c->cookie($c->app->moniker.'_lang' => $l, { path => $c->config('prefix') }); + } + + if ($c->req->headers->referrer + && Mojo::URL->new($c->req->headers->referrer)->host eq $c->req->url->to_abs->host) { + return $c->redirect_to($c->req->headers->referrer); + } else { + return $c->redirect_to('/'); + } +} + +sub about { + shift->render(template => 'about'); +} + +sub js_files { + my $c = shift; + + $c->stash($c->req->params->to_hash); + $c->render( + template => 'partial/'.$c->param('file'), + format => 'js', + layout => undef, + ); +} + sub fullstats { my $c = shift; @@ -19,4 +60,8 @@ sub fullstats { ); } +sub delays { + shift->render(template => 'delays'); +} + 1; diff --git a/lib/Lufi/DB/File.pm b/lib/Lufi/DB/File.pm index d323b9e..e2b8b32 100644 --- a/lib/Lufi/DB/File.pm +++ b/lib/Lufi/DB/File.pm @@ -1,7 +1,9 @@ # vim:set sw=4 ts=4 sts=4 ft=perl expandtab: package Lufi::DB::File; use Mojo::Base -base; -use Mojo::Collection; +use Mojo::File; +use Mojo::Collection 'c'; +use Lufi::DB::Slice; has 'short'; has 'deleted' => 0; @@ -23,6 +25,8 @@ has 'slices' => sub { return Mojo::Collection->new(); }; has 'passwd'; +has 'abuse'; +has 'record' => 0; has 'app'; =head1 NAME @@ -72,6 +76,8 @@ Have a look at Lufi::DB::File::SQLite's code: it's simple and may be more unders =item B : string +=item B : integer + =item B : a Mojolicious object =back @@ -109,6 +115,9 @@ sub new { } elsif ($dbtype eq 'postgresql') { use Lufi::DB::File::Pg; $c = Lufi::DB::File::Pg->new(@_); + } elsif ($dbtype eq 'mysql') { + use Lufi::DB::File::Mysql; + $c = Lufi::DB::File::Mysql->new(@_); } } @@ -160,6 +169,21 @@ sub delete { =back +=cut + +sub write { + my $c = shift; + + if ($c->record) { + $c->app->dbi->db->query('UPDATE files SET short = ?, deleted = ?, mediatype = ?, filename = ?, filesize = ?, counter = ?, delete_at_first_view = ?, delete_at_day = ?, created_at = ?, created_by = ?, last_access_at = ?, mod_token = ?, nbslices = ?, complete = ?, passwd = ?, abuse = ? WHERE short = ?', $c->short, $c->deleted, $c->mediatype, $c->filename, $c->filesize, $c->counter, $c->delete_at_first_view, $c->delete_at_day, $c->created_at, $c->created_by, $c->last_access_at, $c->mod_token, $c->nbslices, $c->complete, $c->passwd, $c->abuse, $c->short); + } else { + $c->app->dbi->db->query('INSERT INTO files (short, deleted, mediatype, filename, filesize, counter, delete_at_first_view, delete_at_day, created_at, created_by, last_access_at, mod_token, nbslices, complete, passwd, abuse) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', $c->short, $c->deleted, $c->mediatype, $c->filename, $c->filesize, $c->counter, $c->delete_at_first_view, $c->delete_at_day, $c->created_at, $c->created_by, $c->last_access_at, $c->mod_token, $c->nbslices, $c->complete, $c->passwd, $c->abuse); + $c->record(1); + } + + return $c; +} + =head2 count_empty =over 1 @@ -174,6 +198,14 @@ sub delete { =back +=cut + +sub count_empty { + my $c = shift; + + return $c->app->dbi->db->query('SELECT count(short) AS count FROM files WHERE created_at IS NULL')->hashes->first->{count}; +} + =head2 already_exists =over 1 @@ -188,6 +220,15 @@ sub delete { =back +=cut + +sub already_exists { + my $c = shift; + my $short = shift; + + return $c->app->dbi->db->query('SELECT count(short) AS count FROM files WHERE short = ?', $short)->hashes->first->{count}; +} + =head2 get_empty =over 1 @@ -202,6 +243,16 @@ sub delete { =back +=cut + +sub get_empty { + my $c = shift; + + my $r = $c->app->dbi->db->query('SELECT * FROM files WHERE created_at IS NULL')->hashes->shuffle->first; + + return $c->_slurp($r)->created_at(time)->write; +} + =head2 get_stats =over 1 @@ -216,6 +267,18 @@ sub delete { =back +=cut + +sub get_stats { + my $c = shift; + + my $files = $c->app->dbi->db->query('SELECT count(short) AS count FROM files WHERE created_at IS NOT null AND deleted = ?', 0)->hashes->first->{count}; + my $deleted = $c->app->dbi->db->query('SELECT count(short) AS count FROM files WHERE created_at IS NOT null AND deleted = ?', 1)->hashes->first->{count}; + my $empty = $c->app->dbi->db->query('SELECT count(short) AS count FROM files WHERE created_at IS null')->hashes->first->{count}; + + return { files => $files, deleted => $deleted, empty => $empty }; +} + =head2 from_short =over 1 @@ -230,6 +293,21 @@ sub delete { =back +=cut + +sub from_short { + my $c = shift; + my $short = shift; + + my $r = $c->app->dbi->db->query('SELECT * FROM files WHERE short = ?', $short)->hashes; + + if ($r->size) { + return $c->_slurp($r->first)->record(1); + } else { + return undef; + } +} + =head2 get_oldest_undeleted_files =over 1 @@ -244,6 +322,26 @@ sub delete { =back +=cut + +sub get_oldest_undeleted_files { + my $c = shift; + my $num = shift; + + my @files; + my $records = $c->app->dbi->db->query('SELECT * FROM files WHERE deleted = ? ORDER BY created_at ASC LIMIT ?', 0, $num)->hashes; + $records->each( + sub { + my ($e, $num) = @_; + my $i = Lufi::DB::File->new(app => $c->app); + + push @files, $i->_slurp($e); + } + ); + + return c(@files); +} + =head2 get_expired =over 1 @@ -258,6 +356,27 @@ sub delete { =back +=cut + +sub get_expired { + my $c = shift; + my $time = shift; + + my @files; + ## Select only files expired since two days, to be sure that nobody is still downloading it + my $records = $c->app->dbi->db->query('SELECT * FROM files WHERE deleted = ? AND ((delete_at_day + 2) * 86400) < (? - created_at) AND delete_at_day != 0', 0, $time)->hashes; + $records->each( + sub { + my ($e, $num) = @_; + my $i = Lufi::DB::File->new(app => $c->app); + + push @files, $i->_slurp($e); + } + ); + + return c(@files); +} + =head2 get_no_longer_viewed =over 1 @@ -272,6 +391,26 @@ sub delete { =back +=cut + +sub get_no_longer_viewed { + my $c = shift; + my $time = shift; + + my @files; + my $records = $c->app->dbi->db->query('SELECT * FROM files WHERE deleted = ? AND last_access_at < ?', 0, $time)->hashes; + $records->each( + sub { + my ($e, $num) = @_; + my $i = Lufi::DB::File->new(app => $c->app); + + push @files, $i->_slurp($e); + } + ); + + return c(@files); +} + =head2 delete_creator_before =over 1 @@ -288,4 +427,90 @@ sub delete { =cut +sub delete_creator_before { + my $c = shift; + my $separation = shift; + + $c->app->dbi->db->query('UPDATE files SET created_by = NULL WHERE created_by IS NOT NULL AND created_at < ?', $separation); +} + +=head2 delete_all + +=over 1 + +=item B : C<$c-Edelete_all()> + +=item B : none + +=item B : delete all file records from database unconditionnally + +=item B : nothing + +=back + +=cut + +sub delete_all { + my $c = shift; + + $c->app->dbi->db->delete('files'); +} + +=head2 _slurp + +=over 1 + +=item B : C<$c-E_slurp> + +=item B : none + +=item B : put a database record's columns into the Lufi::DB::File object's attributes + +=item B : the Lufi::DB::File object + +=back + +=cut + +sub _slurp { + my $c = shift; + my $r = shift; + + my $file; + if (defined $r) { + $file = $r; + } else { + my $files = $c->app->dbi->db->query('SELECT * FROM files WHERE short = ?', $c->short)->hashes; + + if ($files->size) { + $file = $files->first; + } + } + + if ($file) { + $c->short($file->{short}); + $c->deleted($file->{deleted}); + $c->mediatype($file->{mediatype}); + $c->filename($file->{filename}); + $c->filesize($file->{filesize}); + $c->counter($file->{counter}); + $c->delete_at_first_view($file->{delete_at_first_view}); + $c->delete_at_day($file->{delete_at_day}); + $c->created_at($file->{created_at}); + $c->created_by($file->{created_by}); + $c->last_access_at($file->{last_access_at}); + $c->mod_token($file->{mod_token}); + $c->nbslices($file->{nbslices}); + $c->complete($file->{complete}); + $c->passwd($file->{passwd}); + $c->abuse($file->{abuse}); + + $c->record(1) unless $c->record; + } + + $c->slices(Lufi::DB::Slice->new(app => $c->app)->get_slices_of_file($c->short)); + + return $c; +} + 1; diff --git a/lib/Lufi/DB/File/Mysql.pm b/lib/Lufi/DB/File/Mysql.pm new file mode 100644 index 0000000..b4ad4c9 --- /dev/null +++ b/lib/Lufi/DB/File/Mysql.pm @@ -0,0 +1,13 @@ +# vim:set sw=4 ts=4 sts=4 ft=perl expandtab: +package Lufi::DB::File::Mysql; +use Mojo::Base 'Lufi::DB::File'; + +sub new { + my $c = shift; + + $c = $c->SUPER::new(@_); + + return $c; +} + +1; diff --git a/lib/Lufi/DB/File/Pg.pm b/lib/Lufi/DB/File/Pg.pm index 62967f7..925c9e2 100644 --- a/lib/Lufi/DB/File/Pg.pm +++ b/lib/Lufi/DB/File/Pg.pm @@ -1,11 +1,6 @@ # vim:set sw=4 ts=4 sts=4 ft=perl expandtab: package Lufi::DB::File::Pg; use Mojo::Base 'Lufi::DB::File'; -use Mojo::File; -use Mojo::Collection 'c'; -use Lufi::DB::Slice; - -has 'record' => 0; sub new { my $c = shift; @@ -15,163 +10,4 @@ sub new { return $c; } -sub write { - my $c = shift; - - if ($c->record) { - $c->app->pg->db->query('UPDATE files SET short = ?, deleted = ?, mediatype = ?, filename = ?, filesize = ?, counter = ?, delete_at_first_view = ?, delete_at_day = ?, created_at = ?, created_by = ?, last_access_at = ?, mod_token = ?, nbslices = ?, complete = ?, passwd = ? WHERE short = ?', $c->short, $c->deleted, $c->mediatype, $c->filename, $c->filesize, $c->counter, $c->delete_at_first_view, $c->delete_at_day, $c->created_at, $c->created_by, $c->last_access_at, $c->mod_token, $c->nbslices, $c->complete, $c->passwd, $c->short); - } else { - $c->app->pg->db->query('INSERT INTO files (short, deleted, mediatype, filename, filesize, counter, delete_at_first_view, delete_at_day, created_at, created_by, last_access_at, mod_token, nbslices, complete, passwd) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', $c->short, $c->deleted, $c->mediatype, $c->filename, $c->filesize, $c->counter, $c->delete_at_first_view, $c->delete_at_day, $c->created_at, $c->created_by, $c->last_access_at, $c->mod_token, $c->nbslices, $c->complete, $c->passwd); - $c->record(1); - } - - return $c; -} - -sub count_empty { - my $c = shift; - - return $c->app->pg->db->query('SELECT count(short) FROM files WHERE created_at IS NULL')->hashes->first->{count}; -} - -sub already_exists { - my $c = shift; - my $short = shift; - - return $c->app->pg->db->query('SELECT count(short) FROM files WHERE short = ?', $short)->hashes->first->{count}; -} - -sub get_empty { - my $c = shift; - - my $r = $c->app->pg->db->query('SELECT * FROM files WHERE created_at IS NULL')->hashes->shuffle->first; - - return $c->_slurp($r)->created_at(time)->write; -} - -sub get_stats { - my $c = shift; - - my $files = $c->app->pg->db->query('SELECT count(short) FROM files WHERE created_at IS NOT null AND deleted = false')->hashes->first->{count}; - my $deleted = $c->app->pg->db->query('SELECT count(short) FROM files WHERE created_at IS NOT null AND deleted = true')->hashes->first->{count}; - my $empty = $c->app->pg->db->query('SELECT count(short) FROM files WHERE created_at IS null')->hashes->first->{count}; - - return { files => $files, deleted => $deleted, empty => $empty }; -} - -sub from_short { - my $c = shift; - my $short = shift; - - my $r = $c->app->pg->db->query('SELECT * FROM files WHERE short = ?', $short)->hashes; - - if ($r->size) { - return $c->_slurp($r->first)->record(1); - } else { - return undef; - } -} - -sub get_oldest_undeleted_files { - my $c = shift; - my $num = shift; - - my @files; - my $records = $c->app->pg->db->query('SELECT * FROM files WHERE deleted = false ORDER BY created_at ASC LIMIT ?', $num)->hashes; - $records->each( - sub { - my ($e, $num) = @_; - my $i = Lufi::DB::File->new(app => $c->app); - - push @files, $i->_slurp($e); - } - ); - - return c(@files); -} - -sub get_expired { - my $c = shift; - my $time = shift; - - my @files; - ## Select only files expired since two days, to be sure that nobody is still downloading it - my $records = $c->app->pg->db->query('SELECT * FROM files WHERE deleted = false AND ((delete_at_day + 2) * 86400) < (? - created_at) AND delete_at_day != 0', $time)->hashes; - $records->each( - sub { - my ($e, $num) = @_; - my $i = Lufi::DB::File->new(app => $c->app); - - push @files, $i->_slurp($e); - } - ); - - return c(@files); -} - -sub get_no_longer_viewed { - my $c = shift; - my $time = shift; - - my @files; - my $records = $c->app->pg->db->query('SELECT * FROM files WHERE deleted = false AND last_access_at < ?', $time)->hashes; - $records->each( - sub { - my ($e, $num) = @_; - my $i = Lufi::DB::File->new(app => $c->app); - - push @files, $i->_slurp($e); - } - ); - - return c(@files); -} - -sub delete_creator_before { - my $c = shift; - my $separation = shift; - - $c->app->pg->db->query('UPDATE files SET created_by = NULL WHERE created_by IS NOT NULL AND created_at < ?', $separation); -} - -sub _slurp { - my $c = shift; - my $r = shift; - - my $file; - if (defined $r) { - $file = $r; - } else { - my $files = $c->app->pg->db->query('SELECT * FROM files WHERE short = ?', $c->short)->hashes; - - if ($files->size) { - $file = $files->first; - } - } - - if ($file) { - $c->short($file->{short}); - $c->deleted($file->{deleted}); - $c->mediatype($file->{mediatype}); - $c->filename($file->{filename}); - $c->filesize($file->{filesize}); - $c->counter($file->{counter}); - $c->delete_at_first_view($file->{delete_at_first_view}); - $c->delete_at_day($file->{delete_at_day}); - $c->created_at($file->{created_at}); - $c->created_by($file->{created_by}); - $c->last_access_at($file->{last_access_at}); - $c->mod_token($file->{mod_token}); - $c->nbslices($file->{nbslices}); - $c->complete($file->{complete}); - $c->passwd($file->{passwd}); - - $c->record(1) unless $c->record; - } - - $c->slices(Lufi::DB::Slice->new(app => $c->app)->get_slices_of_file($c->short)); - - return $c; -} - 1; diff --git a/lib/Lufi/DB/File/SQLite.pm b/lib/Lufi/DB/File/SQLite.pm index 47eface..213e896 100644 --- a/lib/Lufi/DB/File/SQLite.pm +++ b/lib/Lufi/DB/File/SQLite.pm @@ -1,12 +1,6 @@ # vim:set sw=4 ts=4 sts=4 ft=perl expandtab: package Lufi::DB::File::SQLite; use Mojo::Base 'Lufi::DB::File'; -use Mojo::File; -use Mojo::Collection 'c'; -use Lufi::DB::SQLite; -use Lufi::DB::Slice; - -has 'record'; sub new { my $c = shift; @@ -17,172 +11,4 @@ sub new { return $c; } -sub write { - my $c = shift; - - if (defined $c->record) { - $c->record->update( - short => $c->short, - deleted => $c->deleted, - mediatype => $c->mediatype, - filename => $c->filename, - filesize => $c->filesize, - counter => $c->counter, - delete_at_first_view => $c->delete_at_first_view, - delete_at_day => $c->delete_at_day, - created_at => $c->created_at, - created_by => $c->created_by, - last_access_at => $c->last_access_at, - mod_token => $c->mod_token, - nbslices => $c->nbslices, - complete => $c->complete, - passwd => $c->passwd, - ); - } else { - my $record = Lufi::DB::SQLite::Files->create( - short => $c->short, - deleted => $c->deleted, - mediatype => $c->mediatype, - filename => $c->filename, - filesize => $c->filesize, - counter => $c->counter, - delete_at_first_view => $c->delete_at_first_view, - delete_at_day => $c->delete_at_day, - created_at => $c->created_at, - created_by => $c->created_by, - last_access_at => $c->last_access_at, - mod_token => $c->mod_token, - nbslices => $c->nbslices, - complete => $c->complete, - passwd => $c->passwd, - ); - $c->record($record); - } - - return $c; -} - -sub count_empty { - my $c = shift; - - return Lufi::DB::SQLite::Files->count('WHERE created_at IS NULL'); -} - -sub already_exists { - my $c = shift; - my $short = shift; - - return Lufi::DB::SQLite::Files->count('WHERE short = ?', $short); -} - -sub get_empty { - my $c = shift; - - my @records = Lufi::DB::SQLite::Files->select('WHERE created_at IS NULL LIMIT 1'); - - return $c->record($records[0])->_slurp->created_at(time)->write; -} - -sub get_stats { - my $c = shift; - - my $files = Lufi::DB::SQLite::Files->count('WHERE created_at IS NOT null AND deleted = 0'); - my $deleted = Lufi::DB::SQLite::Files->count('WHERE created_at IS NOT null AND deleted = 1'); - my $empty = Lufi::DB::SQLite::Files->count('WHERE created_at IS null'); - - return { files => $files, deleted => $deleted, empty => $empty }; -} - -sub from_short { - my $c = shift; - my $short = shift; - - my @records = Lufi::DB::SQLite::Files->select('WHERE short = ?', $short); - - if (scalar @records) { - $c->record($records[0]); - $c->_slurp; - - return $c; - } else { - return undef; - } -} - -sub get_oldest_undeleted_files { - my $c = shift; - my $num = shift; - - my @files = Lufi::DB::SQLite::Files->select('WHERE deleted = 0 ORDER BY created_at ASC LIMIT ?', $num); - - return c(map { Lufi::DB::File->new(app => $c->app, record => $_) } @files); -} - -sub get_expired { - my $c = shift; - my $time = shift; - - ## Select only files expired since two days, to be sure that nobody is still downloading it - my @files = Lufi::DB::SQLite::Files->select('WHERE deleted = 0 AND ((delete_at_day + 2) * 86400) < (? - created_at) AND delete_at_day != 0', $time); - - return c(map { Lufi::DB::File->new(app => $c->app, record => $_) } @files); -} - -sub get_no_longer_viewed { - my $c = shift; - my $time = shift; - - my @files = Lufi::DB::SQLite::Files->select('WHERE deleted = 0 AND last_access_at < ?', $time); - - return c(map { Lufi::DB::File->new(app => $c->app, record => $_) } @files); -} - -sub delete_creator_before { - my $c = shift; - my $separation = shift; - - Lufi::DB::SQLite->do( - 'UPDATE files SET created_by = NULL WHERE created_by IS NOT NULL AND created_at < ?', - {}, - $separation - ); -} - -sub _slurp { - my $c = shift; - - my @files; - if ($c->record) { - @files = ($c->record); - } elsif ($c->short) { - @files = Lufi::DB::SQLite::Files->select('WHERE short = ?', $c->short); - } - - if (scalar @files) { - my $file = $files[0]; - - $c->short($file->short); - $c->deleted($file->deleted) if defined $file->deleted; - $c->mediatype($file->mediatype) if defined $file->mediatype; - $c->filename($file->filename) if defined $file->filename; - $c->filesize($file->filesize) if defined $file->filesize; - $c->counter($file->counter) if defined $file->counter; - $c->delete_at_first_view($file->delete_at_first_view) if defined $file->delete_at_first_view; - $c->delete_at_day($file->delete_at_day) if defined $file->delete_at_day; - $c->created_at($file->created_at) if defined $file->created_at; - $c->created_by($file->created_by) if defined $file->created_by; - $c->last_access_at($file->last_access_at) if defined $file->last_access_at; - $c->mod_token($file->mod_token) if defined $file->mod_token; - $c->nbslices($file->nbslices) if defined $file->nbslices; - $c->complete($file->complete) if defined $file->complete; - $c->passwd($file->passwd) if defined $file->passwd; - - $c->record($file) unless $c->record; - } - - $c->slices(Lufi::DB::Slice->new(app => $c->app)->get_slices_of_file($c->short)); - - return $c; -} - 1; diff --git a/lib/Lufi/DB/SQLite.pm b/lib/Lufi/DB/SQLite.pm deleted file mode 100644 index 4553f56..0000000 --- a/lib/Lufi/DB/SQLite.pm +++ /dev/null @@ -1,64 +0,0 @@ -# vim:set sw=4 ts=4 sts=4 ft=perl expandtab: -package Lufi::DB::SQLite; -use Mojolicious; -use Mojo::File; -use FindBin qw($Bin); - -BEGIN { - my $m = Mojolicious->new; - my $cfile = Mojo::File->new($Bin, '..' , 'lufi.conf'); - if (defined $ENV{MOJO_CONFIG}) { - $cfile = Mojo::File->new($ENV{MOJO_CONFIG}); - unless (-e $cfile->to_abs) { - $cfile = Mojo::File->new($Bin, '..', $ENV{MOJO_CONFIG}); - } - } - our $config = $m->plugin('Config' => - { - file => $cfile->to_abs->to_string, - default => { - db_path => 'lufi.db' - } - } - ); -} - -# Create database -use ORLite { - file => $config->{db_path}, - unicode => 1, - create => sub { - my $dbh = shift; - $dbh->do( - 'CREATE TABLE files ( - short TEXT PRIMARY KEY, - deleted INTEGER, - mediatype TEXT, - filename TEXT, - filesize INTEGER, - counter INTEGER, - delete_at_first_view INTEGER, - delete_at_day INTEGER, - created_at INTEGER, - created_by TEXT, - last_access_at INTEGER, - mod_token TEXT, - nbslices INTEGER, - complete INTEGER, - passwd TEXT)' - ); - $dbh->do( - 'CREATE TABLE slices ( - short TEXT, - j INTEGER, - path TEXT, - FOREIGN KEY (short) REFERENCES files(short))' - ); - $dbh->do( - 'CREATE INDEX slices_idx ON slices(short)' - ); - return 1; - } -}; - -1; diff --git a/lib/Lufi/DB/Slice.pm b/lib/Lufi/DB/Slice.pm index b350071..932ac5e 100644 --- a/lib/Lufi/DB/Slice.pm +++ b/lib/Lufi/DB/Slice.pm @@ -1,10 +1,12 @@ # vim:set sw=4 ts=4 sts=4 ft=perl expandtab: package Lufi::DB::Slice; use Mojo::Base -base; +use Mojo::Collection 'c'; has 'short'; has 'j'; has 'path'; +has 'record' => 0; has 'app'; =head1 NAME @@ -65,6 +67,9 @@ sub new { } elsif ($dbtype eq 'postgresql') { use Lufi::DB::Slice::Pg; $c = Lufi::DB::Slice::Pg->new(@_); + } elsif ($dbtype eq 'mysql') { + use Lufi::DB::Slice::Mysql; + $c = Lufi::DB::Slice::Mysql->new(@_); } } @@ -85,6 +90,21 @@ sub new { =back +=cut + +sub write { + my $c = shift; + + if ($c->record) { + $c->app->dbi->db->query('UPDATE slices SET short = ?, j = ?, path = ? WHERE short = ? AND j = ?', $c->short, $c->j, $c->path, $c->short, $c->j); + } else { + $c->app->dbi->db->query('INSERT INTO slices (short, j, path) VALUES (?, ?, ?)', $c->short, $c->j, $c->path); + $c->record(1); + } + + return $c; +} + =head2 get_slices_of_file =over 1 @@ -101,4 +121,86 @@ sub new { =cut +sub get_slices_of_file { + my $c = shift; + my $short = shift; + + my @slices; + my $records = $c->app->dbi->db->query('SELECT * FROM slices WHERE short = ? ORDER BY j ASC', $short)->hashes; + $records->each( + sub { + my ($e, $num) = @_; + my $i = Lufi::DB::Slice->new(app => $c->app); + + push @slices, $i->_slurp($e); + } + ); + + return c(@slices); +} + +=head2 delete_all + +=over 1 + +=item B : C<$c-Edelete_all()> + +=item B : none + +=item B : delete all file records from database unconditionnally + +=item B : nothing + +=back + +=cut + +sub delete_all { + my $c = shift; + + $c->app->dbi->db->delete('slices'); +} + +=head2 _slurp + +=over 1 + +=item B : C<$c-E_slurp> + +=item B : none + +=item B : put a database record's columns into the Lufi::DB::Slice object's attributes + +=item B : the Lufi::DB::Slice object + +=back + +=cut + +sub _slurp { + my $c = shift; + my $r = shift; + + my $slice; + if (defined $r) { + $slice = $r; + } else { + my $slices = $c->app->dbi->db->query('SELECT * FROM slices WHERE short = ? AND j = ?', $c->short, $c->j)->hashes; + + if ($slices->size) { + $slice = $slices->first; + } + } + + if ($slice) { + $c->short($slice->{short}); + $c->j($slice->{j}); + $c->path($slice->{path}); + + $c->record(1); + } + + return $c; +} + 1; diff --git a/lib/Lufi/DB/Slice/Mysql.pm b/lib/Lufi/DB/Slice/Mysql.pm new file mode 100644 index 0000000..cb55ed0 --- /dev/null +++ b/lib/Lufi/DB/Slice/Mysql.pm @@ -0,0 +1,13 @@ +# vim:set sw=4 ts=4 sts=4 ft=perl expandtab: +package Lufi::DB::Slice::Mysql; +use Mojo::Base 'Lufi::DB::Slice'; + +sub new { + my $c = shift; + + $c = $c->SUPER::new(@_); + + return $c; +} + +1; diff --git a/lib/Lufi/DB/Slice/Pg.pm b/lib/Lufi/DB/Slice/Pg.pm index 5744b49..defdf27 100644 --- a/lib/Lufi/DB/Slice/Pg.pm +++ b/lib/Lufi/DB/Slice/Pg.pm @@ -1,9 +1,6 @@ # vim:set sw=4 ts=4 sts=4 ft=perl expandtab: package Lufi::DB::Slice::Pg; use Mojo::Base 'Lufi::DB::Slice'; -use Mojo::Collection 'c'; - -has 'record' => 0; sub new { my $c = shift; @@ -13,61 +10,4 @@ sub new { return $c; } -sub write { - my $c = shift; - - if ($c->record) { - $c->app->pg->db->query('UPDATE slices SET short = ?, j = ?, path = ? WHERE short = ? AND j = ?', $c->short, $c->j, $c->path, $c->short, $c->j); - } else { - $c->app->pg->db->query('INSERT INTO slices (short, j, path) VALUES (?, ?, ?)', $c->short, $c->j, $c->path); - $c->record(1); - } - - return $c; -} - -sub get_slices_of_file { - my $c = shift; - my $short = shift; - - my @slices; - my $records = $c->app->pg->db->query('SELECT * FROM slices WHERE short = ? ORDER BY j ASC', $short)->hashes; - $records->each( - sub { - my ($e, $num) = @_; - my $i = Lufi::DB::Slice->new(app => $c->app); - - push @slices, $i->_slurp($e); - } - ); - - return c(@slices); -} - -sub _slurp { - my $c = shift; - my $r = shift; - - my $slice; - if (defined $r) { - $slice = $r; - } else { - my $slices = $c->app->pg->db->query('SELECT * FROM slices WHERE short = ? AND j = ?', $c->short, $c->j)->hashes; - - if ($slices->size) { - $slice = $slices->first; - } - } - - if ($slice) { - $c->short($slice->{short}); - $c->j($slice->{j}); - $c->path($slice->{path}); - - $c->record(1); - } - - return $c; -} - 1; diff --git a/lib/Lufi/DB/Slice/SQLite.pm b/lib/Lufi/DB/Slice/SQLite.pm index 5927f9b..d65ed26 100644 --- a/lib/Lufi/DB/Slice/SQLite.pm +++ b/lib/Lufi/DB/Slice/SQLite.pm @@ -1,10 +1,6 @@ # vim:set sw=4 ts=4 sts=4 ft=perl expandtab: package Lufi::DB::Slice::SQLite; use Mojo::Base 'Lufi::DB::Slice'; -use Lufi::DB::SQLite; -use Mojo::Collection 'c'; - -has 'record'; sub new { my $c = shift; @@ -16,44 +12,4 @@ sub new { return $c; } -sub write { - my $c = shift; - - if (defined $c->record) { - $c->record->update( - short => $c->short, - j => $c->j, - path => $c->path - ); - } else { - my $record = Lufi::DB::SQLite::Slices->create( - short => $c->short, - j => $c->j, - path => $c->path - ); - $c->record($record); - } - - return $c; -} - -sub get_slices_of_file { - my $c = shift; - my $short = shift; - - my @slices = Lufi::DB::SQLite::Slices->select('WHERE short = ? ORDER BY j ASC', $short); - - return c(map { Lufi::DB::Slice->new(app => $c->app, record => $_) } @slices); -} - -sub _slurp { - my $c = shift; - - $c->short($c->record->short) if defined $c->record->short; - $c->j($c->record->j) if defined $c->record->j; - $c->path($c->record->path) if defined $c->record->path; - - return $c; -} - 1; diff --git a/lib/Lufi/DefaultConfig.pm b/lib/Lufi/DefaultConfig.pm new file mode 100644 index 0000000..d8d75e4 --- /dev/null +++ b/lib/Lufi/DefaultConfig.pm @@ -0,0 +1,31 @@ +# vim:set sw=4 ts=4 sts=4 ft=perl expandtab: +package Lufi::DefaultConfig; +require Exporter; +@ISA = qw(Exporter); +@EXPORT_OK = qw($default_config); +our $default_config = { + prefix => '/', + provisioning => 100, + provis_step => 5, + length => 10, + token_length => 32, + secrets => ['hfudsifdsih'], + default_delay => 0, + max_delay => 0, + mail => { + how => 'sendmail' + }, + mail_sender => 'no-reply@lufi.io', + theme => 'default', + upload_dir => 'files', + session_duration => 3600, + allow_pwd_on_files => 0, + dbtype => 'sqlite', + db_path => 'lufi.db', + force_burn_after_reading => 0, + x_frame_options => 'DENY', + x_content_type_options => 'nosniff', + x_xss_protection => '1; mode=block', +}; + +1; diff --git a/lib/Lufi/Plugin/Headers.pm b/lib/Lufi/Plugin/Headers.pm new file mode 100644 index 0000000..8c26cc5 --- /dev/null +++ b/lib/Lufi/Plugin/Headers.pm @@ -0,0 +1,52 @@ +package Lufi::Plugin::Headers; +use Mojo::Base 'Mojolicious::Plugin'; + +sub register { + my ($self, $app) = @_; + + # Assets Cache headers + $app->plugin('StaticCache'); + + # Add CSP Header + if (!defined($app->config('csp')) || (defined($app->config('csp')) && $app->config('csp') ne '')) { + my $directives = { + 'default-src' => "'none'", + 'script-src' => "'self' 'unsafe-inline' 'unsafe-eval'", + 'style-src' => "'self' 'unsafe-inline'", + 'img-src' => "'self' blob:", + 'media-src' => "blob:", + 'font-src' => "'self'", + 'form-action' => "'self'", + 'base-uri' => "'self'", + 'connect-src' => "'self'", + }; + + my $frame_ancestors = ''; + $frame_ancestors = "'none'" if $app->config('x_frame_options') eq 'DENY'; + $frame_ancestors = "'self'" if $app->config('x_frame_options') eq 'SAMEORIGIN'; + if ($app->config('x_frame_options') =~ m#^ALLOW-FROM#) { + $frame_ancestors = $app->config('x_frame_options'); + $frame_ancestors =~ s#ALLOW-FROM +##; + } + $directives->{'frame-ancestors'} = $frame_ancestors if $frame_ancestors; + + $app->plugin('CSPHeader', + csp => $app->config('csp'), + directives => $directives + ); + } + + # Add other headers + $app->hook( + before_dispatch => sub { + my $c = shift; + + $c->res->headers->header('X-Frame-Options' => $app->config('x_frame_options')) if $app->config('x_frame_options'); + $c->res->headers->header('X-Content-Type-Options' => $app->config('x_content_type_options')) if $app->config('x_content_type_options'); + $c->res->headers->header('X-XSS-Protection' => $app->config('x_xss_protection')) if $app->config('x_xss_protection'); + } + ); + +} + +1; diff --git a/lib/Lufi/Plugin/Helpers.pm b/lib/Lufi/Plugin/Helpers.pm index 518f3fe..1b7794f 100644 --- a/lib/Lufi/Plugin/Helpers.pm +++ b/lib/Lufi/Plugin/Helpers.pm @@ -2,54 +2,105 @@ package Lufi::Plugin::Helpers; use Mojo::Base 'Mojolicious::Plugin'; use Lufi::DB::File; -use Data::Entropy qw(entropy_source); sub register { my ($self, $app) = @_; - $app->plugin('PgURLHelper'); + # PgURL helper + if ($app->config('dbtype') eq 'postgresql' || $app->config('dbtype') eq 'mysql') { + $app->plugin('PgURLHelper'); + } + if ($app->config('dbtype') eq 'postgresql') { - use Mojo::Pg; - $app->helper(pg => \&_pg); + require Mojo::Pg; + $app->helper(dbi => \&_pg); # Database migration - my $migrations = Mojo::Pg::Migrations->new(pg => $app->pg); + my $migrations = Mojo::Pg::Migrations->new(pg => $app->dbi); if ($app->mode eq 'development' && $ENV{LUFI_DEV}) { - $migrations->from_file('utilities/migrations_pg.sql')->migrate(0)->migrate(1); + $migrations->from_file('utilities/migrations/pg.sql')->migrate(0)->migrate(2); } else { - $migrations->from_file('utilities/migrations_pg.sql')->migrate(1); + $migrations->from_file('utilities/migrations/pg.sql')->migrate(2); } - } elsif ($app->config('dbtype') eq 'sqlite') { - # SQLite database migration if needed - use Lufi::DB::SQLite; - my $columns = Lufi::DB::SQLite::Files->table_info; - my $pwd_col = 0; - foreach my $col (@{$columns}) { - $pwd_col = 1 if $col->{name} eq 'passwd'; + } elsif ($app->config('dbtype') eq 'mysql') { + require Mojo::mysql; + $app->helper(dbi => \&_mysql); + + # Database migration + my $migrations = Mojo::mysql::Migrations->new(mysql => $app->dbi); + if ($app->mode eq 'development' && $ENV{LUFI_DEV}) { + $migrations->from_file('utilities/migrations/mysql.sql')->migrate(0)->migrate(1); + } else { + $migrations->from_file('utilities/migrations/mysql.sql')->migrate(1); } - unless ($pwd_col) { - Lufi::DB::SQLite->do('ALTER TABLE files ADD COLUMN passwd TEXT;'); + } elsif ($app->config('dbtype') eq 'sqlite') { + require Mojo::SQLite; + $app->helper(dbi => \&_sqlite); + + # Database migration + # Have to create $sql before using its migrations attribute, otherwise, it won't work + my $sql = $app->dbi; + my $migrations = $sql->migrations; + if ($app->mode eq 'development' && $ENV{LUFI_DEV}) { + $migrations->from_file('utilities/migrations/sqlite.sql')->migrate(0)->migrate(2); + } else { + $migrations->from_file('utilities/migrations/sqlite.sql')->migrate(2); } + + # Check if passwd column is missing + my $columns = $app->dbi->db->query('PRAGMA table_info(files)')->hashes; + my $pwd_col = 0; + $columns->each(sub { + my ($e, $num) = @_; + $pwd_col = 1 if $e->{name} eq 'passwd'; + }); + $app->dbi->db->query('ALTER TABLE files ADD COLUMN passwd TEXT') unless $pwd_col; } - $app->helper(provisioning => \&_provisioning); - $app->helper(get_empty => \&_get_empty); - $app->helper(shortener => \&_shortener); - $app->helper(ip => \&_ip); + $app->helper(provisioning => \&_provisioning); + $app->helper(get_empty => \&_get_empty); + $app->helper(ip => \&_ip); $app->helper(default_delay => \&_default_delay); - $app->helper(max_delay => \&_max_delay); - $app->helper(is_selected => \&_is_selected); - $app->helper(stop_upload => \&_stop_upload); + $app->helper(max_delay => \&_max_delay); + $app->helper(is_selected => \&_is_selected); + $app->helper(stop_upload => \&_stop_upload); } sub _pg { - my $c = shift; + my $c = shift; - state $pg = Mojo::Pg->new($c->app->pg_url($c->app->config('pgdb'))); + my $pgdb = $c->config('pgdb'); + my $port = (defined $pgdb->{port}) ? $pgdb->{port}: 5432; + my $addr = $c->pg_url({ + host => $pgdb->{host}, port => $port, database => $pgdb->{database}, user => $pgdb->{user}, pwd => $pgdb->{pwd} + }); + state $pg = Mojo::Pg->new($addr); + $pg->max_connections($pgdb->{max_connections}) if defined $pgdb->{max_connections}; return $pg; } +sub _mysql { + my $c = shift; + + my $mysqldb = $c->config('mysqldb'); + my $port = (defined $mysqldb->{port}) ? $mysqldb->{port}: 3306; + my $addr = $c->pg_url({ + host => $mysqldb->{host}, port => $port, database => $mysqldb->{database}, user => $mysqldb->{user}, pwd => $mysqldb->{pwd} + }); + $addr =~ s/postgresql/mysql/; + state $mysql = Mojo::mysql->new($addr); + $mysql->max_connections($mysqldb->{max_connections}) if defined $mysqldb->{max_connections}; + return $mysql; +} + +sub _sqlite { + my $c = shift; + + state $sqlite = Mojo::SQLite->new('sqlite:'.$c->app->config('db_path')); + return $sqlite; +} + sub _provisioning { my $c = shift; @@ -75,18 +126,6 @@ sub _get_empty { return $ldfile; } -sub _shortener { - my $c = shift; - my $length = shift; - - my @chars = ('a'..'z','A'..'Z','0'..'9', '-', '_'); - my $result = ''; - foreach (1..$length) { - $result .= $chars[entropy_source->get_int(scalar(@chars))]; - } - return $result; -} - sub _ip { my $c = shift; my $proxy = $c->req->headers->header('X-Forwarded-For'); diff --git a/lib/Mounter.pm b/lib/Mounter.pm index 8575d8b..5408e0b 100644 --- a/lib/Mounter.pm +++ b/lib/Mounter.pm @@ -2,6 +2,7 @@ package Mounter; use Mojo::Base 'Mojolicious'; use FindBin qw($Bin); use File::Spec qw(catfile); +use Lufi::DefaultConfig qw($default_config); # This method will run once at server start sub startup { @@ -9,27 +10,31 @@ sub startup { push @{$self->commands->namespaces}, 'Lufi::Command'; + my $cfile = Mojo::File->new($Bin, '..' , 'lufi.conf'); + if (defined $ENV{MOJO_CONFIG}) { + $cfile = Mojo::File->new($ENV{MOJO_CONFIG}); + unless (-e $cfile->to_abs) { + $cfile = Mojo::File->new($Bin, '..', $ENV{MOJO_CONFIG}); + } + } my $config = $self->plugin('Config' => { - file => File::Spec->catfile($Bin, '..' ,'lufi.conf'), - default => { - prefix => '/', - theme => 'default', - dbtype => 'sqlite', - } + file => $cfile, + default => $default_config } ); + # Compress static assets + $self->plugin('GzipStatic'); + + # Headers + $self->plugin('Lufi::Plugin::Headers'); + # Helpers $self->plugin('Lufi::Plugin::Helpers'); # Themes handling - shift @{$self->static->paths}; - if ($config->{theme} ne 'default') { - my $theme = $self->home->rel_file('themes/'.$config->{theme}); - push @{$self->static->paths}, $theme.'/public' if -d $theme.'/public'; - } - push @{$self->static->paths}, $self->home->rel_file('themes/default/public'); + $self->plugin('FiatTux::Themes'); $self->plugin('Mount' => {$config->{prefix} => File::Spec->catfile($Bin, '..', 'script', 'application')}); } diff --git a/lufi.conf.template b/lufi.conf.template index ac0b7f2..1434931 100644 --- a/lufi.conf.template +++ b/lufi.conf.template @@ -6,11 +6,12 @@ # see http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad for a full list of settings hypnotoad => { # array of IP addresses and ports you want to listen to + # you can specify a unix socket too, like 'http+unix://%2Ftmp%2Flufi.sock' listen => ['http://127.0.0.1:8081'], - # if you use Lufi behind a reverse proxy like Nginx, you want ro set proxy to 1 + # if you use Lufi behind a reverse proxy like Nginx, you want to set proxy to 1 # if you use Lufi directly, let it commented #proxy => 1, - + # Please read http://mojolicious.org/perldoc/Mojo/Server/Hypnotoad#workers # to adjust this to your server workers => 30, @@ -18,8 +19,14 @@ }, # put a way to contact you here and uncomment it + # you can put some HTML in it + # MANDATORY + #contact => 'Contact page', + + # put an URL or an email address to receive file reports and uncomment it + # it's for make reporting illegal files easy for users # MANDATORY - #contact => 'admin[at]example.com', + #report => 'report@example.com', # array of random strings used to encrypt cookies # optional, default is ['fdjsofjoihrei'], PLEASE, CHANGE IT @@ -108,7 +115,7 @@ #mail_sender => 'no-reply@lufi.io', # choose what database you want to use - # valid choices are sqlite and postgresql (all lowercase) + # valid choices are sqlite, postgresql and mysql (all lowercase) # optional, default is sqlite #dbtype => 'sqlite', @@ -125,8 +132,28 @@ #pgdb => { # database => 'lufi', # host => 'localhost', - # #user => 'DBUSER', - # #pwd => 'DBPASSWORD' + # # optional, default is 5432 + # #port => 5432, + # user => 'DBUSER', + # pwd => 'DBPASSWORD', + # # https://mojolicious.org/perldoc/Mojo/Pg#max_connections + # # optional, default is 1 + # #max_connections => 1, + #}, + + # MySQL ONLY - only used if dbtype is set to mysql + # these are the credentials to access the MySQL database + # mandatory if you choosed mysql as dbtype + #mysqldb => { + # database => 'lufi', + # host => 'localhost', + # # optional, default is 3306 + # #port => 3306, + # user => 'DBUSER', + # pwd => 'DBPASSWORD', + # # https://metacpan.org/pod/Mojo::mysql#max_connections + # # optional, default is 5 (set to 0 to disable persistent connections) + # #max_connections => 5, #}, # define a path to the upload directory, where the uploaded files will be stored @@ -140,12 +167,18 @@ # please note that everybody can still download files # optional, no default #ldap => { - # uri => 'ldaps://ldap.example.org', - # user_tree => 'ou=users,dc=example,dc=org', - # bind_dn => ',ou=users,dc=example,dc=org', - # bind_user => 'uid=ldap_user', - # bind_pwd => 'secr3t', - # user_filter => '!(uid=ldap_user)' + # uri => 'ldaps://ldap.example.org', # server URI + # user_tree => 'ou=users,dc=example,dc=org', # search base DN + # bind_dn => 'uid=ldap_user,ou=users,dc=example,dc=org', # search bind DN + # bind_pwd => 'secr3t', # search bind password + # user_attr => 'uid', # user attribute (uid, mail, sAMAccountName, etc.) + # user_filter => '(!(uid=ldap_user))', # user filter (to exclude some users, etc.) + # # optional start_tls configuration. See https://metacpan.org/pod/distribution/perl-ldap/lib/Net/LDAP.pod#start_tls + # # don't set or uncomment if you don't want to configure it + # start_tls => { + # verify => 'optional', + # clientcert => '/etc/ssl/certs/ca-bundle.pem' + # } #}, # set `htpasswd` if you want to use an htpasswd file instead of ldap @@ -158,9 +191,55 @@ #session_duration => 3600, # allow to add a password on files, asked before allowing to download files - # optional, default to 0 + # optional, default is 0 #allow_pwd_on_files => 0, + # force all files to be in "Burn after reading mode" + # optional, default is 0 + #force_burn_after_reading => 0, + + # if set, the files' URLs will always use this domain + # optional, no default + #fixed_domain => 'example.org', + + # abuse reasons + # set an integer in the abuse field of a file in the database and it will not be downloadable anymore + # the reason will be displayed to the downloader, according to the reasons you will configure here. + # optional, no default + #abuse => { + # 0 => 'Copyright infringment', + # 1 => 'Illegal content', + #}, + + # Content-Security-Policy header that will be sent by Lufi + # Set to '' to disable CSP header + # https://content-security-policy.com/ provides a good documentation about CSP. + # https://report-uri.com/home/generate provides a tool to generate a CSP header. + # optional, default is "base-uri 'self'; connect-src 'self'; default-src 'none'; font-src 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' blob:; media-src blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'" + # the default value is good for `default` and `milligram` themes + #csp => "base-uri 'self'; connect-src 'self'; default-src 'none'; font-src 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' blob:; media-src blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'" + + # X-Frame-Options header that will be sent by Lufi + # Valid values are: 'DENY', 'SAMEORIGIN', 'ALLOW-FROM https://example.com/' + # Set to '' to disable X-Frame-Options header + # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options + # Please note that this will add a "frame-ancestors" directive to the CSP header (see above) accordingly + # to the chosen setting (See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors) + # optional, default is 'DENY' + #x_frame_options => 'DENY', + + # X-Content-Type-Options that will be sent by Lufi + # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options + # Set to '' to disable X-Content-Type-Options header + # optional, default is 'nosniff' + #x_content_type_options => 'nosniff', + + # X-XSS-Protection that will be sent by Lufi + # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection + # Set to '' to disable X-XSS-Protection header + # optional, default is '1; mode=block' + #x_xss_protection => '1; mode=block', + ######################### # Lufi cron jobs settings ######################### diff --git a/t/basic.t b/t/basic.t deleted file mode 100644 index d04e686..0000000 --- a/t/basic.t +++ /dev/null @@ -1,9 +0,0 @@ -use Mojo::Base -strict; - -use Test::More; -use Test::Mojo; - -my $t = Test::Mojo->new('Lufi'); -$t->get_ok('/')->status_is(200)->content_like(qr/Lufi/i); - -done_testing(); diff --git a/t/lufi.passwd b/t/lufi.passwd new file mode 100644 index 0000000..c893b45 --- /dev/null +++ b/t/lufi.passwd @@ -0,0 +1 @@ +luc:$apr1$zG4UAKGa$FqSi4widrkVH/pT3qPawd. diff --git a/t/mysql.conf b/t/mysql.conf new file mode 100644 index 0000000..4b6197c --- /dev/null +++ b/t/mysql.conf @@ -0,0 +1,251 @@ +# vim:set sw=4 ts=4 sts=4 ft=perl expandtab: +{ + #################### + # Hypnotoad settings + #################### + # see http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad for a full list of settings + hypnotoad => { + # array of IP addresses and ports you want to listen to + listen => ['http://127.0.0.1:8081'], + # if you use Lufi behind a reverse proxy like Nginx, you want to set proxy to 1 + # if you use Lufi directly, let it commented + #proxy => 1, + + # Please read http://mojolicious.org/perldoc/Mojo/Server/Hypnotoad#workers + # to adjust this to your server + workers => 30, + clients => 1, + }, + + # put a way to contact you here and uncomment it + # you can put some HTML in it + # MANDATORY + contact => 'Contact page', + + # put an URL or an email address to receive file reports and uncomment it + # it's for make reporting illegal files easy for users + # MANDATORY + report => 'report@example.com', + + # array of random strings used to encrypt cookies + # optional, default is ['fdjsofjoihrei'], PLEASE, CHANGE IT + #secrets => ['fdjsofjoihrei'], + + # choose a theme. See the available themes in `themes` directory + # optional, default is 'default' + #theme => 'default', + + # length of the random URL + # optional, default is 8 + #length => 8, + + # how many URLs will be provisioned in a batch ? + # optional, default is 5 + #provis_step => 5, + + # max number of URLs to be provisioned + # optional, default is 100 + #provisioning => 100, + + # length of the modify/delete token + # optional, default is 32 + #token_length => 32, + + # max file size, in octets + # you can write it 100*1024*1024 + # optional, no default + #max_file_size => 104857600, + + # if you want to have piwik statistics, provide a piwik image tracker + # only the image tracker is allowed, no javascript + # optional, no default + #piwik_img => 'https://piwik.example.org/piwik.php?idsite=1&rec=1', + + # broadcast_message which will displayed on the index page + # optional, no default + #broadcast_message => 'Maintenance', + + # default time limit for files + # valid values are 0, 1, 7, 30 and 365 + # optional, default is 0 (no limit) + #default_delay => 0, + + # number of days after which the images will be deleted, even if they were uploaded with "no delay" (or value superior to max_delay) + # a warning message will be displayed on homepage + # optional, default is 0 (no limit) + #max_delay => 0, + + # size thresholds: if you want to define max delays for different sizes of file + # the keys are size in Bytes, you can't have 10*1000*10000 as key + # if a file is smaller than the smallest configured size, it will have a expiration delay of max_delay (see above) + # optional, default is using max_delay (see above) for all sizes + #delay_for_size => { + # 10000000 => 90, # between 10MB and 50MB => max is 90 days, less than 10MB => max is max_delay (see above) + # 50000000 => 60, # between 50MB ans 1GB => max is 60 days + # 1000000000 => 2, # more than 1GB => max is 2 days + #}, + + # URL sub-directory in which you want Lufi to be accessible + # example: you want to have Lufi under https://example.org/lufi/ + # => set prefix to '/lufi' or to '/lufi/', it doesn't matter + # optional, defaut is / + #prefix => '/', + + # array of authorized domains for API calls. + # if you want to authorize everyone to use the API: ['*'] + # optional, no domains allowed by default + #allowed_domains => ['http://1.example.com', 'http://2.example.com'], + + # if set, the shortened URLs will use this domain + # optional + #fixed_domain => 'example.org', + + # Mail configuration + # See https://metacpan.org/pod/Mojolicious::Plugin::Mail#EXAMPLES + # Optional, default to sendmail method with no arguments + #mail => { + # # Valid values are 'sendmail' and 'smtp' + # how => 'smtp', + # howargs => ['smtp.example.org'] + #}, + + # Email sender address + # Optional, default to no-reply@lufi.io + #mail_sender => 'no-reply@lufi.io', + + # choose what database you want to use + # valid choices are sqlite, postgresql and mysql (all lowercase) + # optional, default is sqlite + dbtype => 'mysql', + + # SQLite ONLY - only used if dbtype is set to sqlite + # define a path to the SQLite database + # you can define it relative to lufi directory or set an absolute path + # remember that it has to be in a directory writable by Lufi user + # optional, default is lufi.db + #db_path => 'lufi.db', + + # PostgreSQL ONLY - only used if dbtype is set to postgresql + # these are the credentials to access the PostgreSQL database + # mandatory if you choosed postgresql as dbtype + #pgdb => { + # database => 'lufi', + # host => 'localhost', + # # optional, default is 5432 + # #port => 5432, + # user => 'DBUSER', + # pwd => 'DBPASSWORD', + # # optional, default is 1 + # #max_connections => 1, + #}, + + # MySQL ONLY - only used if dbtype is set to mysql + # these are the credentials to access the MySQL database + # mandatory if you choosed mysql as dbtype + mysqldb => { + database => 'lufi_db', + host => 'mariadb', + # optional, default is 3306 + #port => 3306, + user => 'lufi', + pwd => 'lufi_pwd', + # # optional, default is 5 (set to 0 to disable persistent connections) + # #max_connections => 5, + }, + + # define a path to the upload directory, where the uploaded files will be stored + # you can define it relative to lufi directory or set an absolute path + # remember that it has to be in a directory writable by Lufi user + # DO NOT CHANGE THIS IF FILES HAVE BEEN ALREADY UPLOADED: THEY WILL NOT BE DOWNLOADABLE ANYMORE + # optional, default is 'files' + #upload_dir => 'files', + + # set `ldap` if you want that only authenticated users can upload files + # please note that everybody can still download files + # optional, no default + #ldap => { uri => 'ldap://rroemhild-test-openldap', user_tree => 'ou=people,dc=planetexpress,dc=com', bind_dn => 'cn=admin,dc=planetexpress,dc=com', bind_pwd => 'GoodNewsEveryone', user_attr => 'uid', user_filter => '' }, + + # set `htpasswd` if you want to use an htpasswd file instead of ldap + # see 'man htpasswd' to know how to create such file + #htpasswd => 't/lstu.passwd', + + # if you've set ldap above, the session will last `session_duration` seconds before + # the user needs to reauthenticate + # optional, default is 3600 + #session_duration => 3600, + + # allow to add a password on files, asked before allowing to download files + # optional, default is 0 + allow_pwd_on_files => 1, + + # force all files to be in "Burn after reading mode" + # optional, default is 0 + #force_burn_after_reading => 0, + + # if set, the files' URLs will always use this domain + # optional, no default + #fixed_domain => 'example.org', + + # abuse reasons + # set an integer in the abuse field of a file in the database and it will not be downloadable anymore + # the reason will be displayed to the downloader, according to the reasons you will configure here. + # optional, no default + abuse => { + 0 => 'Copyright infringment', + 1 => 'Illegal content', + }, + + # Content-Security-Policy header that will be sent by Lufi + # Set to '' to disable CSP header + # https://content-security-policy.com/ provides a good documentation about CSP. + # https://report-uri.com/home/generate provides a tool to generate a CSP header. + # optional, default is "base-uri 'self'; connect-src 'self'; default-src 'none'; font-src 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' blob:; media-src blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'" + # the default value is good for `default` and `milligram` themes + #csp => "base-uri 'self'; connect-src 'self'; default-src 'none'; font-src 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' blob:; media-src blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'" + + # X-Frame-Options header that will be sent by Lufi + # Valid values are: 'DENY', 'SAMEORIGIN', 'ALLOW-FROM https://example.com/' + # Set to '' to disable X-Frame-Options header + # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options + # Please note that this will add a "frame-ancestors" directive to the CSP header (see above) accordingly + # to the chosen setting (See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors) + # optional, default is 'DENY' + #x_frame_options => 'DENY', + + # X-Content-Type-Options that will be sent by Lufi + # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options + # Set to '' to disable X-Content-Type-Options header + # optional, default is 'nosniff' + #x_content_type_options => 'nosniff', + + # X-XSS-Protection that will be sent by Lufi + # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection + # Set to '' to disable X-XSS-Protection header + # optional, default is '1; mode=block' + #x_xss_protection => '1; mode=block', + + ######################### + # Lufi cron jobs settings + ######################### + + # number of days senders' IP addresses are kept in database + # after that delay, they will be deleted from database (used with script/lufi cron cleanbdd) + # optional, default is 365 + #keep_ip_during => 365, + + # max size of the files directory, in octets + # used by script/lufi cron watch to trigger an action + # optional, no default + #max_total_size => 10*1024*1024*1024, + + # default action when files directory is over max_total_size (used with script/lufi cron watch) + # valid values are 'warn', 'stop-upload' and 'delete' + # please, see readme + # optional, default is 'warn' + #policy_when_full => 'warn', + + # images which are not viewed since delete_no_longer_viewed_files days will be deleted by the cron cleanfiles task + # if delete_no_longer_viewed_files is not set, the no longer viewed files will NOT be deleted + # optional, no default + #delete_no_longer_viewed_files => 90, +}; diff --git a/t/postgresql.conf b/t/postgresql.conf new file mode 100644 index 0000000..5306c8d --- /dev/null +++ b/t/postgresql.conf @@ -0,0 +1,251 @@ +# vim:set sw=4 ts=4 sts=4 ft=perl expandtab: +{ + #################### + # Hypnotoad settings + #################### + # see http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad for a full list of settings + hypnotoad => { + # array of IP addresses and ports you want to listen to + listen => ['http://127.0.0.1:8081'], + # if you use Lufi behind a reverse proxy like Nginx, you want to set proxy to 1 + # if you use Lufi directly, let it commented + #proxy => 1, + + # Please read http://mojolicious.org/perldoc/Mojo/Server/Hypnotoad#workers + # to adjust this to your server + workers => 30, + clients => 1, + }, + + # put a way to contact you here and uncomment it + # you can put some HTML in it + # MANDATORY + contact => 'Contact page', + + # put an URL or an email address to receive file reports and uncomment it + # it's for make reporting illegal files easy for users + # MANDATORY + report => 'report@example.com', + + # array of random strings used to encrypt cookies + # optional, default is ['fdjsofjoihrei'], PLEASE, CHANGE IT + #secrets => ['fdjsofjoihrei'], + + # choose a theme. See the available themes in `themes` directory + # optional, default is 'default' + #theme => 'default', + + # length of the random URL + # optional, default is 8 + #length => 8, + + # how many URLs will be provisioned in a batch ? + # optional, default is 5 + #provis_step => 5, + + # max number of URLs to be provisioned + # optional, default is 100 + #provisioning => 100, + + # length of the modify/delete token + # optional, default is 32 + #token_length => 32, + + # max file size, in octets + # you can write it 100*1024*1024 + # optional, no default + #max_file_size => 104857600, + + # if you want to have piwik statistics, provide a piwik image tracker + # only the image tracker is allowed, no javascript + # optional, no default + #piwik_img => 'https://piwik.example.org/piwik.php?idsite=1&rec=1', + + # broadcast_message which will displayed on the index page + # optional, no default + #broadcast_message => 'Maintenance', + + # default time limit for files + # valid values are 0, 1, 7, 30 and 365 + # optional, default is 0 (no limit) + #default_delay => 0, + + # number of days after which the images will be deleted, even if they were uploaded with "no delay" (or value superior to max_delay) + # a warning message will be displayed on homepage + # optional, default is 0 (no limit) + #max_delay => 0, + + # size thresholds: if you want to define max delays for different sizes of file + # the keys are size in Bytes, you can't have 10*1000*10000 as key + # if a file is smaller than the smallest configured size, it will have a expiration delay of max_delay (see above) + # optional, default is using max_delay (see above) for all sizes + #delay_for_size => { + # 10000000 => 90, # between 10MB and 50MB => max is 90 days, less than 10MB => max is max_delay (see above) + # 50000000 => 60, # between 50MB ans 1GB => max is 60 days + # 1000000000 => 2, # more than 1GB => max is 2 days + #}, + + # URL sub-directory in which you want Lufi to be accessible + # example: you want to have Lufi under https://example.org/lufi/ + # => set prefix to '/lufi' or to '/lufi/', it doesn't matter + # optional, defaut is / + #prefix => '/', + + # array of authorized domains for API calls. + # if you want to authorize everyone to use the API: ['*'] + # optional, no domains allowed by default + #allowed_domains => ['http://1.example.com', 'http://2.example.com'], + + # if set, the shortened URLs will use this domain + # optional + #fixed_domain => 'example.org', + + # Mail configuration + # See https://metacpan.org/pod/Mojolicious::Plugin::Mail#EXAMPLES + # Optional, default to sendmail method with no arguments + #mail => { + # # Valid values are 'sendmail' and 'smtp' + # how => 'smtp', + # howargs => ['smtp.example.org'] + #}, + + # Email sender address + # Optional, default to no-reply@lufi.io + #mail_sender => 'no-reply@lufi.io', + + # choose what database you want to use + # valid choices are sqlite, postgresql and mysql (all lowercase) + # optional, default is sqlite + dbtype => 'postgresql', + + # SQLite ONLY - only used if dbtype is set to sqlite + # define a path to the SQLite database + # you can define it relative to lufi directory or set an absolute path + # remember that it has to be in a directory writable by Lufi user + # optional, default is lufi.db + #db_path => 'lufi.db', + + # PostgreSQL ONLY - only used if dbtype is set to postgresql + # these are the credentials to access the PostgreSQL database + # mandatory if you choosed postgresql as dbtype + pgdb => { + database => 'lufi_db', + host => 'postgres', + # optional, default is 5432 + #port => 5432, + user => 'lufi', + pwd => 'lufi_pwd' + # # optional, default is 1 + # #max_connections => 1, + }, + + # MySQL ONLY - only used if dbtype is set to mysql + # these are the credentials to access the MySQL database + # mandatory if you choosed mysql as dbtype + #mysqldb => { + # database => 'lufi', + # host => 'localhost', + # # optional, default is 3306 + # #port => 3306, + # user => 'DBUSER', + # pwd => 'DBPASSWORD', + # # optional, default is 5 (set to 0 to disable persistent connections) + # #max_connections => 5, + #}, + + # define a path to the upload directory, where the uploaded files will be stored + # you can define it relative to lufi directory or set an absolute path + # remember that it has to be in a directory writable by Lufi user + # DO NOT CHANGE THIS IF FILES HAVE BEEN ALREADY UPLOADED: THEY WILL NOT BE DOWNLOADABLE ANYMORE + # optional, default is 'files' + #upload_dir => 'files', + + # set `ldap` if you want that only authenticated users can upload files + # please note that everybody can still download files + # optional, no default + #ldap => { uri => 'ldap://rroemhild-test-openldap', user_tree => 'ou=people,dc=planetexpress,dc=com', bind_dn => 'cn=admin,dc=planetexpress,dc=com', bind_pwd => 'GoodNewsEveryone', user_attr => 'uid', user_filter => '' }, + + # set `htpasswd` if you want to use an htpasswd file instead of ldap + # see 'man htpasswd' to know how to create such file + #htpasswd => 't/lstu.passwd', + + # if you've set ldap above, the session will last `session_duration` seconds before + # the user needs to reauthenticate + # optional, default is 3600 + #session_duration => 3600, + + # allow to add a password on files, asked before allowing to download files + # optional, default is 0 + allow_pwd_on_files => 1, + + # force all files to be in "Burn after reading mode" + # optional, default is 0 + #force_burn_after_reading => 0, + + # if set, the files' URLs will always use this domain + # optional, no default + #fixed_domain => 'example.org', + + # abuse reasons + # set an integer in the abuse field of a file in the database and it will not be downloadable anymore + # the reason will be displayed to the downloader, according to the reasons you will configure here. + # optional, no default + abuse => { + 0 => 'Copyright infringment', + 1 => 'Illegal content', + }, + + # Content-Security-Policy header that will be sent by Lufi + # Set to '' to disable CSP header + # https://content-security-policy.com/ provides a good documentation about CSP. + # https://report-uri.com/home/generate provides a tool to generate a CSP header. + # optional, default is "base-uri 'self'; connect-src 'self'; default-src 'none'; font-src 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' blob:; media-src blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'" + # the default value is good for `default` and `milligram` themes + #csp => "base-uri 'self'; connect-src 'self'; default-src 'none'; font-src 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' blob:; media-src blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'" + + # X-Frame-Options header that will be sent by Lufi + # Valid values are: 'DENY', 'SAMEORIGIN', 'ALLOW-FROM https://example.com/' + # Set to '' to disable X-Frame-Options header + # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options + # Please note that this will add a "frame-ancestors" directive to the CSP header (see above) accordingly + # to the chosen setting (See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors) + # optional, default is 'DENY' + #x_frame_options => 'DENY', + + # X-Content-Type-Options that will be sent by Lufi + # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options + # Set to '' to disable X-Content-Type-Options header + # optional, default is 'nosniff' + #x_content_type_options => 'nosniff', + + # X-XSS-Protection that will be sent by Lufi + # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection + # Set to '' to disable X-XSS-Protection header + # optional, default is '1; mode=block' + #x_xss_protection => '1; mode=block', + + ######################### + # Lufi cron jobs settings + ######################### + + # number of days senders' IP addresses are kept in database + # after that delay, they will be deleted from database (used with script/lufi cron cleanbdd) + # optional, default is 365 + #keep_ip_during => 365, + + # max size of the files directory, in octets + # used by script/lufi cron watch to trigger an action + # optional, no default + #max_total_size => 10*1024*1024*1024, + + # default action when files directory is over max_total_size (used with script/lufi cron watch) + # valid values are 'warn', 'stop-upload' and 'delete' + # please, see readme + # optional, default is 'warn' + #policy_when_full => 'warn', + + # images which are not viewed since delete_no_longer_viewed_files days will be deleted by the cron cleanfiles task + # if delete_no_longer_viewed_files is not set, the no longer viewed files will NOT be deleted + # optional, no default + #delete_no_longer_viewed_files => 90, +}; diff --git a/t/sqlite.conf b/t/sqlite.conf new file mode 100644 index 0000000..03ee083 --- /dev/null +++ b/t/sqlite.conf @@ -0,0 +1,253 @@ +# vim:set sw=4 ts=4 sts=4 ft=perl expandtab: +{ + #################### + # Hypnotoad settings + #################### + # see http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad for a full list of settings + hypnotoad => { + # array of IP addresses and ports you want to listen to + listen => ['http://127.0.0.1:8081'], + # if you use Lufi behind a reverse proxy like Nginx, you want to set proxy to 1 + # if you use Lufi directly, let it commented + #proxy => 1, + + # Please read http://mojolicious.org/perldoc/Mojo/Server/Hypnotoad#workers + # to adjust this to your server + workers => 30, + clients => 1, + }, + + # put a way to contact you here and uncomment it + # you can put some HTML in it + # MANDATORY + contact => 'Contact page', + + # put an URL or an email address to receive file reports and uncomment it + # it's for make reporting illegal files easy for users + # MANDATORY + report => 'report@example.com', + + # array of random strings used to encrypt cookies + # optional, default is ['fdjsofjoihrei'], PLEASE, CHANGE IT + #secrets => ['fdjsofjoihrei'], + + # choose a theme. See the available themes in `themes` directory + # optional, default is 'default' + #theme => 'default', + + # length of the random URL + # optional, default is 8 + #length => 8, + + # how many URLs will be provisioned in a batch ? + # optional, default is 5 + #provis_step => 5, + + # max number of URLs to be provisioned + # optional, default is 100 + #provisioning => 100, + + # length of the modify/delete token + # optional, default is 32 + #token_length => 32, + + # max file size, in octets + # you can write it 100*1024*1024 + # optional, no default + #max_file_size => 104857600, + + # if you want to have piwik statistics, provide a piwik image tracker + # only the image tracker is allowed, no javascript + # optional, no default + #piwik_img => 'https://piwik.example.org/piwik.php?idsite=1&rec=1', + + # broadcast_message which will displayed on the index page + # optional, no default + #broadcast_message => 'Maintenance', + + # default time limit for files + # valid values are 0, 1, 7, 30 and 365 + # optional, default is 0 (no limit) + #default_delay => 0, + + # number of days after which the images will be deleted, even if they were uploaded with "no delay" (or value superior to max_delay) + # a warning message will be displayed on homepage + # optional, default is 0 (no limit) + #max_delay => 0, + + # size thresholds: if you want to define max delays for different sizes of file + # the keys are size in Bytes, you can't have 10*1000*10000 as key + # if a file is smaller than the smallest configured size, it will have a expiration delay of max_delay (see above) + # optional, default is using max_delay (see above) for all sizes + #delay_for_size => { + # 10000000 => 90, # between 10MB and 50MB => max is 90 days, less than 10MB => max is max_delay (see above) + # 50000000 => 60, # between 50MB ans 1GB => max is 60 days + # 1000000000 => 2, # more than 1GB => max is 2 days + #}, + + # URL sub-directory in which you want Lufi to be accessible + # example: you want to have Lufi under https://example.org/lufi/ + # => set prefix to '/lufi' or to '/lufi/', it doesn't matter + # optional, defaut is / + #prefix => '/', + + # array of authorized domains for API calls. + # if you want to authorize everyone to use the API: ['*'] + # optional, no domains allowed by default + #allowed_domains => ['http://1.example.com', 'http://2.example.com'], + + # if set, the shortened URLs will use this domain + # optional + #fixed_domain => 'example.org', + + # Mail configuration + # See https://metacpan.org/pod/Mojolicious::Plugin::Mail#EXAMPLES + # Optional, default to sendmail method with no arguments + #mail => { + # # Valid values are 'sendmail' and 'smtp' + # how => 'smtp', + # howargs => ['smtp.example.org'] + #}, + + # Email sender address + # Optional, default to no-reply@lufi.io + #mail_sender => 'no-reply@lufi.io', + + # choose what database you want to use + # valid choices are sqlite, postgresql and mysql (all lowercase) + # optional, default is sqlite + #dbtype => 'sqlite', + + # SQLite ONLY - only used if dbtype is set to sqlite + # define a path to the SQLite database + # you can define it relative to lufi directory or set an absolute path + # remember that it has to be in a directory writable by Lufi user + # optional, default is lufi.db + db_path => 'sqlite.db', + + # PostgreSQL ONLY - only used if dbtype is set to postgresql + # these are the credentials to access the PostgreSQL database + # mandatory if you choosed postgresql as dbtype + #pgdb => { + # database => 'lufi', + # host => 'localhost', + # # optional, default is 5432 + # #port => 5432, + # user => 'DBUSER', + # pwd => 'DBPASSWORD', + # # https://mojolicious.org/perldoc/Mojo/Pg#max_connections + # # optional, default is 1 + # #max_connections => 1, + #}, + + # MySQL ONLY - only used if dbtype is set to mysql + # these are the credentials to access the MySQL database + # mandatory if you choosed mysql as dbtype + #mysqldb => { + # database => 'lufi', + # host => 'localhost', + # # optional, default is 3306 + # #port => 3306, + # user => 'DBUSER', + # pwd => 'DBPASSWORD', + # # https://metacpan.org/pod/Mojo::mysql#max_connections + # # optional, default is 5 (set to 0 to disable persistent connections) + # #max_connections => 5, + #}, + + # define a path to the upload directory, where the uploaded files will be stored + # you can define it relative to lufi directory or set an absolute path + # remember that it has to be in a directory writable by Lufi user + # DO NOT CHANGE THIS IF FILES HAVE BEEN ALREADY UPLOADED: THEY WILL NOT BE DOWNLOADABLE ANYMORE + # optional, default is 'files' + #upload_dir => 'files', + + # set `ldap` if you want that only authenticated users can upload files + # please note that everybody can still download files + # optional, no default + #ldap => { uri => 'ldap://rroemhild-test-openldap', user_tree => 'ou=people,dc=planetexpress,dc=com', bind_dn => 'cn=admin,dc=planetexpress,dc=com', bind_pwd => 'GoodNewsEveryone', user_attr => 'uid', user_filter => '' }, + + # set `htpasswd` if you want to use an htpasswd file instead of ldap + # see 'man htpasswd' to know how to create such file + #htpasswd => 't/lstu.passwd', + + # if you've set ldap above, the session will last `session_duration` seconds before + # the user needs to reauthenticate + # optional, default is 3600 + #session_duration => 3600, + + # allow to add a password on files, asked before allowing to download files + # optional, default is 0 + allow_pwd_on_files => 1, + + # force all files to be in "Burn after reading mode" + # optional, default is 0 + #force_burn_after_reading => 0, + + # if set, the files' URLs will always use this domain + # optional, no default + #fixed_domain => 'example.org', + + # abuse reasons + # set an integer in the abuse field of a file in the database and it will not be downloadable anymore + # the reason will be displayed to the downloader, according to the reasons you will configure here. + # optional, no default + abuse => { + 0 => 'Copyright infringment', + 1 => 'Illegal content', + }, + + # Content-Security-Policy header that will be sent by Lufi + # Set to '' to disable CSP header + # https://content-security-policy.com/ provides a good documentation about CSP. + # https://report-uri.com/home/generate provides a tool to generate a CSP header. + # optional, default is "base-uri 'self'; connect-src 'self'; default-src 'none'; font-src 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' blob:; media-src blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'" + # the default value is good for `default` and `milligram` themes + #csp => "base-uri 'self'; connect-src 'self'; default-src 'none'; font-src 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' blob:; media-src blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'" + + # X-Frame-Options header that will be sent by Lufi + # Valid values are: 'DENY', 'SAMEORIGIN', 'ALLOW-FROM https://example.com/' + # Set to '' to disable X-Frame-Options header + # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options + # Please note that this will add a "frame-ancestors" directive to the CSP header (see above) accordingly + # to the chosen setting (See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors) + # optional, default is 'DENY' + #x_frame_options => 'DENY', + + # X-Content-Type-Options that will be sent by Lufi + # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options + # Set to '' to disable X-Content-Type-Options header + # optional, default is 'nosniff' + #x_content_type_options => 'nosniff', + + # X-XSS-Protection that will be sent by Lufi + # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection + # Set to '' to disable X-XSS-Protection header + # optional, default is '1; mode=block' + #x_xss_protection => '1; mode=block', + + ######################### + # Lufi cron jobs settings + ######################### + + # number of days senders' IP addresses are kept in database + # after that delay, they will be deleted from database (used with script/lufi cron cleanbdd) + # optional, default is 365 + #keep_ip_during => 365, + + # max size of the files directory, in octets + # used by script/lufi cron watch to trigger an action + # optional, no default + #max_total_size => 10*1024*1024*1024, + + # default action when files directory is over max_total_size (used with script/lufi cron watch) + # valid values are 'warn', 'stop-upload' and 'delete' + # please, see readme + # optional, default is 'warn' + #policy_when_full => 'warn', + + # images which are not viewed since delete_no_longer_viewed_files days will be deleted by the cron cleanfiles task + # if delete_no_longer_viewed_files is not set, the no longer viewed files will NOT be deleted + # optional, no default + #delete_no_longer_viewed_files => 90, +}; diff --git a/t/test.t b/t/test.t new file mode 100644 index 0000000..87c9f26 --- /dev/null +++ b/t/test.t @@ -0,0 +1,262 @@ +# vim:set sw=4 ts=4 sts=4 ft=perl expandtab: +use Mojo::Base -strict; +use Mojo::File; +use Mojo::JSON qw(to_json from_json true); +use Mojolicious; + +use Test::More; +use Test::Mojo; + +use Lufi::DB::File; +use Lufi::DB::Slice; +use FindBin qw($Bin); + +my ($m, $cfile, $config_orig, $config_file, $config_content); + +my $msg = to_json { + "total" => 1, + "part" => 0, + "size" => 7, + "name" => "foobar.txt", + "type" => "text/plain", + "delay" => "0", + "del_at_first_view" => 1, + "id" => undef, + "i" => 0 +}; +my $encrypted = '"{\\"iv\\":\\"2RGAviAeYybBqcLCmnqlgA==\\",\\"v\\":1,\\"iter\\":10000,\\"ks\\":128,\\"ts\\":64,\\"mode\\":\\"ccm\\",\\"adata\\":\\"\\",\\"cipher\\":\\"aes\\",\\"salt\\":\\"1dvKtbZ8hxA=\\",\\"ct\\":\\"w9wDZCwNSyH/yL7q1GW5fPSdi+w=\\"}"'; +my $encrypted_rgx = $encrypted; +$encrypted_rgx =~ s@\\@\\\\@g; +$encrypted_rgx =~ s@\+@\\+@g; +$encrypted_rgx =~ s@(\{|\})@\\$1@g; + +BEGIN { + use lib 'lib'; + $m = Mojolicious->new; + $cfile = Mojo::File->new($Bin, '..', 'lutim.conf'); + if (defined $ENV{MOJO_CONFIG}) { + $cfile = Mojo::File->new($ENV{MOJO_CONFIG}); + unless (-e $cfile->to_abs) { + $cfile = Mojo::File->new($Bin, '..', $ENV{MOJO_CONFIG}); + } + } + my $config = $m->plugin( + 'Config' => { + file => $cfile->to_abs->to_string, + default => { + prefix => '/', + provisioning => 100, + provis_step => 5, + length => 10, + token_length => 32, + secrets => ['hfudsifdsih'], + default_delay => 0, + max_delay => 0, + mail => { + how => 'sendmail' + }, + mail_sender => 'no-reply@lufi.io', + theme => 'default', + upload_dir => 'files', + session_duration => 3600, + allow_pwd_on_files => 0, + dbtype => 'sqlite', + db_path => 'lufi.db', + force_burn_after_reading => 0, + x_frame_options => 'DENY', + x_content_type_options => 'nosniff', + x_xss_protection => '1; mode=block', + } + } + ); + $m->plugin('Lufi::Plugin::Helpers'); + $m->plugin('DebugDumperHelper'); +} ## end BEGIN + +Lufi::DB::Slice->new(app => $m)->delete_all; +Lufi::DB::File->new(app => $m)->delete_all; + +my $t = Test::Mojo->new('Lufi'); + +## Wait for short generation +sleep 3; + +## Let's go +$t->get_ok('/') + ->status_is(200) + ->content_like(qr@Lufi@i); + +test_upload_file(); +test_download_file(); + +## Test htpasswd +switch_to_htpasswd(); +auth_test_suite('luc', 'toto'); +restore_config(); + +## Test LDAP +switch_to_ldap(); +auth_test_suite('zoidberg', 'zoidberg'); +restore_config(); + +done_testing(); + +###### +### Functions +## +sub test_upload_file { + $t->websocket_ok('/upload/') + ->send_ok($msg.'XXMOJOXX'.$encrypted) + ->message_ok + ->message_like(qr@"created_at":\d+@) + ->message_like(qr@"del_at_first_view":true@) + ->message_like(qr@"delay":0@) + ->message_like(qr@"duration":\d+@) + ->message_like(qr@"i":0@) + ->message_like(qr@"j":0@) + ->message_like(qr@"name":"foobar\.txt"@) + ->message_like(qr@"parts":1@) + ->message_like(qr@"sent_delay":0@) + ->message_like(qr@"short":"[^"]+"@) + ->message_like(qr@"size":7@) + ->message_like(qr@"success":true@) + ->message_like(qr@"token":"[^"]+"}@) + ->finish_ok; +} + +sub test_download_file { + my $ws_msg; + $t->ua->websocket_p('/upload/')->then(sub { + my $tx = shift; + my $promise = Mojo::Promise->new; + $tx->on(finish => sub { $promise->resolve }); + $tx->on(message => sub { + my $tx = shift; + $ws_msg = shift; + $tx->finish; + }); + $tx->send($msg.'XXMOJOXX'.$encrypted); + return $promise; + })->catch(sub { + my $err = shift; + is($err, undef); + })->wait; + + $ws_msg = from_json($ws_msg); + $t->websocket_ok('/download/'.$ws_msg->{short}) + ->send_ok(to_json({part => 0})) + ->message_ok + ->message_like(qr@"total":1@) + ->message_like(qr@"part":0@) + ->message_like(qr@"i":0@) + ->message_like(qr@"id":null@) + ->message_like(qr@"del_at_first_view":1@) + ->message_like(qr@"delay":"0"@) + ->message_like(qr@"name":"foobar\.txt"@) + ->message_like(qr@"size":7@) + ->message_like(qr@"type":"text\\/plain"@) + ->message_like(qr@XXMOJOXX@) + ->message_like(qr@$encrypted_rgx@) + ->send_ok(to_json({ended => true})) + ->finish_ok; + + # The file is not supposed to be available anymore + $t->websocket_ok('/download/'.$ws_msg->{short}) + ->send_ok(to_json({part => 0})) + ->message_ok + ->message_like(qr@"msg":"Error: the file existed but was deleted\."@) + ->message_like(qr@"success":false@) + ->send_ok(to_json({ended => true})) + ->finish_ok; +} + +sub auth_test_suite { + my ($login, $pass) = @_; + + $t->get_ok('/') + ->status_is(302) + ->header_is(Location => '/login'); + + test_fail_upload(); + test_login($login, $pass); + test_upload_file(); + test_download_file(); + + my $token = ''; + + $t->post_ok('/logout' => form => { csrf_token => $token }) + ->status_is(200) + ->content_like(qr@Bad CSRF token\.@); + + $token = $t->ua->get('/')->res->dom->find('input[name="csrf_token"]')->first->attr('value'); + + $t->post_ok('/logout' => form => { csrf_token => $token }) + ->status_is(200) + ->content_like(qr@You have been successfully logged out\.@); + + test_fail_upload(); +} + +sub test_fail_upload { + # An empty message would make it fail if we were allowed to go in the authenticated part + $t->websocket_ok('/upload/') + ->send_ok('') + ->finish_ok; +} + +sub test_login { + my ($login, $pass) = @_; + $t->get_ok('/login') + ->status_is(200) + ->content_like(qr@Signin@); + + my $token = ''; + + $t->post_ok('/login' => form => { login => $login, password => $pass, csrf_token => $token }) + ->status_is(200) + ->content_like(qr@Bad CSRF token\.@); + + $token = $t->ua->get('/login')->res->dom->find('input[name="csrf_token"]')->first->attr('value'); + + $t->post_ok('/login' => form => { login => $login, password => $pass, csrf_token => $token }) + ->status_is(302) + ->header_is(Location => '/'); + + $t->get_ok('/login') + ->status_is(302) + ->header_is(Location => '/'); +} + +sub restore_config { + $config_file->spurt($config_orig); +} + +sub switch_to_htpasswd { + $config_file = Mojo::File->new($cfile->to_abs->to_string); + $config_content = $config_file->slurp; + $config_orig = $config_content; + $config_content =~ s/#?htpasswd.*/htpasswd => 't\/lufi.passwd',/gm; + $config_file->spurt($config_content); + + Lufi::DB::Slice->new(app => $m)->delete_all; + Lufi::DB::File->new(app => $m)->delete_all; + + $t = Test::Mojo->new('Lufi'); + + ## Wait for short generation + sleep 3; +} + +sub switch_to_ldap { + $config_content = $config_orig; + $config_content =~ s/^( +)#?ldap => \{ uri/$1ldap => { uri/gm; + $config_file->spurt($config_content); + + Lufi::DB::Slice->new(app => $m)->delete_all; + Lufi::DB::File->new(app => $m)->delete_all; + + $t = Test::Mojo->new('Lufi'); + + ## Wait for short generation + sleep 3; +} diff --git a/themes/default/lib/Lufi/I18N/ar.po b/themes/default/lib/Lufi/I18N/ar.po new file mode 100644 index 0000000..2c34ecf --- /dev/null +++ b/themes/default/lib/Lufi/I18N/ar.po @@ -0,0 +1,631 @@ +# ButterflyOfFire , 2018. #zanata +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2018-10-28 08:31+0000\n" +"Last-Translator: ButterflyOfFire \n" +"Language: ar\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " +"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" +"X-Generator: Zanata 4.6.2\n" +"Language-Team: Arabic\n" + +#. ($delay) +#. (max_delay) +#: themes/default/templates/index.html.ep:47 themes/default/templates/index.html.ep:56 themes/default/templates/index.html.ep:57 +msgid "%1 days" +msgstr "%1 أيام" + +#: themes/default/templates/partial/index.js.ep:26 +msgid "(max size: XXX)" +msgstr "(الحجم الأقصى: XXX)" + +#: themes/default/templates/index.html.ep:5 +msgid "1 year" +msgstr "سنة واحدة" + +#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:56 +msgid "24 hours" +msgstr "24 ساعة" + +#: themes/default/templates/partial/mail.js.ep:40 +msgid ":" +msgstr ":" + +#: themes/default/templates/about.html.ep:16 +msgid "" +"A thank you with a photo of kitten on Diaspora* or " +"Mastodon " +"is cool too ;-)" +msgstr "" + +#: themes/default/templates/render.html.ep:42 +msgid "Abort" +msgstr "إلغاء" + +#: themes/default/templates/layouts/default.html.ep:48 themes/default/templates/layouts/default.html.ep:76 +msgid "About" +msgstr "عن البرنامج" + +#: themes/default/templates/index.html.ep:88 +msgid "Add a password to file(s)" +msgstr "إضافة كلمة سرية إلى الملف" + +#: themes/default/templates/mail.html.ep:16 +msgid "" +"Adding URLs not related to this Lufi instance to the mail body or subject is " +"prohibited." +msgstr "" + +#: themes/default/templates/about.html.ep:18 +msgid "" +"As Lufi is a free software licensed under of the terms of the AGPLv3, you can " +"install it on you own server. Have a look on the Wiki for the procedure." +msgstr "" + +#. (stash('nbslices') +#: themes/default/templates/partial/render.js.ep:9 +msgid "Asking for file part XX1 of %1" +msgstr "" + +#: themes/default/templates/about.html.ep:21 +msgid "Back to homepage" +msgstr "العودة إلى الصفحة الرئيسة" + +#: lib/Lufi/Controller/Mail.pm:25 +msgid "Bad CSRF token!" +msgstr "رمز CSRF خاطئ!" + +#: lib/Lufi/Controller/Auth.pm:22 lib/Lufi/Controller/Auth.pm:39 +msgid "Bad CSRF token." +msgstr "رمز CSRF خاطئ." + +#: themes/default/templates/partial/render.js.ep:5 +msgid "Click here to refresh the page and restart the download." +msgstr "اضغط لتحديث الصفحة و إعادة التنزيل." + +#: themes/default/templates/index.html.ep:98 +msgid "Click to open the file browser" +msgstr "اضغط لفتح متصفح الملفات" + +#: themes/default/templates/delays.html.ep:38 +msgid "Close" +msgstr "إغلاق" + +#: themes/default/templates/mail.html.ep:23 +msgid "Comma-separated email addresses" +msgstr "عناوين البريد الإلكترونية مُقسّمة بفاصلة" + +#: themes/default/templates/partial/index.js.ep:14 +msgid "Copy all links to clipboard" +msgstr "نسخ كافة الروابط إلى الحافظة" + +#: themes/default/templates/partial/index.js.ep:17 +msgid "Copy to clipboard" +msgstr "انسخ إلى الحافظة" + +#: lib/Lufi/Controller/Files.pm:460 +msgid "Could not delete the file. You are not authenticated." +msgstr "لا يمكن حذف الملف. إنك لم تقم بتسجيل الدخول." + +#: lib/Lufi/Controller/Files.pm:442 +msgid "Could not find the file. Are you sure of the URL and the token?" +msgstr "" + +#: lib/Lufi/Controller/Files.pm:353 +msgid "Could not find the file. Are you sure of the URL?" +msgstr "" + +#: themes/default/templates/files.html.ep:28 +msgid "Counter" +msgstr "العداد" + +#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:81 +msgid "Delete at first download?" +msgstr "هل تريد أن يُحذَف الملف عند أول تنزيل؟" + +#: themes/default/templates/files.html.ep:18 +msgid "Delete selected files" +msgstr "حذف الملفات التي تم اختيارها" + +#: themes/default/templates/files.html.ep:32 themes/default/templates/partial/index.js.ep:18 +msgid "Deletion link" +msgstr "رابط الحذف" + +#: themes/default/templates/delays.html.ep:8 +msgid "" +"Don't worry: if a user begins to download the file before the expiration and " +"the download ends after the expiration, he will be able to get the file." +msgstr "" + +#: themes/default/templates/partial/index.js.ep:20 themes/default/templates/render.html.ep:28 +msgid "Download" +msgstr "تنزيل" + +#: themes/default/templates/partial/render.js.ep:4 +msgid "Download aborted." +msgstr "لقد ألغِيَ التنزيل." + +#: themes/default/templates/files.html.ep:27 themes/default/templates/partial/index.js.ep:19 +msgid "Download link" +msgstr "رابط التنزيل" + +#: themes/default/templates/about.html.ep:10 +msgid "" +"Drag and drop files in the appropriate area or use the traditional way to " +"send files and the files will be chunked, encrypted and sent to the server. " +"You will get two links per file: a download link, that you give to the " +"people you want to share the file with and a deletion link, allowing you to " +"delete the file whenever you want." +msgstr "" + +#: themes/default/templates/index.html.ep:94 +msgid "Drop files here" +msgstr "قم بوضع الملفات هنا" + +#: themes/default/templates/mail.html.ep:39 +msgid "Email body" +msgstr "مضمون الرسالة الإلكترونية" + +#: themes/default/templates/mail.html.ep:31 +msgid "Email subject" +msgstr "موضوع الرسالة الإلكترونية" + +#: themes/default/templates/mail.html.ep:25 themes/default/templates/mail.html.ep:27 +msgid "Emails" +msgstr "عناوين البريد الإلكترونية" + +#: themes/default/templates/partial/index.js.ep:21 +msgid "Encrypting part XX1 of XX2" +msgstr "تعمية الجزء XX1 مِن XX2" + +#: lib/Lufi/Controller/Files.pm:242 +msgid "Error: the file existed but was deleted." +msgstr "خطأ: لقد كان الملف موجودا بالفعل و لكن تم حذفه." + +#: lib/Lufi/Controller/Files.pm:322 +msgid "Error: the file has not been sent entirely." +msgstr "خطأ: لم يتم إرسال الملف كاملا." + +#: lib/Lufi/Controller/Files.pm:332 +msgid "Error: unable to find the file. Are you sure of your URL?" +msgstr "خطأ: غير قادر على العثور على الملف. هل أنت متأكد من العنوان؟" + +#: themes/default/templates/partial/index.js.ep:22 +msgid "Expiration:" +msgstr "تاريخ نهاية الصلاحية:" + +#: themes/default/templates/files.html.ep:31 +msgid "Expires at" +msgstr "تنتهي صلاحيته في" + +#: themes/default/templates/files.html.ep:12 +msgid "Export localStorage data" +msgstr "" + +#: lib/Lufi/Controller/Files.pm:424 +msgid "File deleted" +msgstr "تم حذف الملف" + +#: themes/default/templates/files.html.ep:26 +msgid "File name" +msgstr "اسم الملف" + +#: themes/default/templates/index.html.ep:71 +msgid "Files deleted at first download" +msgstr "تم حذف الملفات عند أول تنزيل" + +#: themes/default/templates/partial/render.js.ep:8 +msgid "Get the file" +msgstr "تحصّل على الملف" + +#: themes/default/templates/about.html.ep:19 +msgid "" +"Get the source code on the official repository or on its Github mirror" +msgstr "" + +#: themes/default/templates/partial/mail.js.ep:35 +msgid "Hello,\\n\\nHere's some files I want to share with you:\\n" +msgstr "السلام،\\n\\nها هي بعض الملفات التي أحببتُ مشاركتها معك:\\n" + +#: themes/default/templates/mail.html.ep:35 +msgid "Here's some files" +msgstr "ها هي بعض الملفات" + +#: themes/default/templates/partial/index.js.ep:24 +msgid "Hit Enter, then Ctrl+C to copy all the download links" +msgstr "اضغط على Enter، ثم Ctrl+C لنسخ جميع روابط التحميل" + +#: themes/default/templates/partial/index.js.ep:23 +msgid "Hit Enter, then Ctrl+C to copy the download link" +msgstr "اضغط على Enter، ثم Ctrl+C لنسخ رابط التحميل" + +#: themes/default/templates/about.html.ep:9 +msgid "How does it work?" +msgstr "كيف يعمل؟" + +#: themes/default/templates/about.html.ep:17 +msgid "How to install the software on my server?" +msgstr "كيف يمكنني تثبيت البرنامج على خادومي؟" + +#: themes/default/templates/about.html.ep:12 +msgid "How to report an illegal file?" +msgstr "كيف يمكن الإبلاغ عن ملف غير قانوني؟" + +#: themes/default/templates/delays.html.ep:7 +msgid "If you choose a delay, the file will be deleted after that delay." +msgstr "إذا قمت باختيار تأخير، سيتم حذف الملف بعد ذلك التأخير." + +#: themes/default/templates/mail.html.ep:15 +msgid "" +"If you send the mail from this server, the links will be sent to the server, " +"which may lower your privacy protection." +msgstr "" +"إذا قمت بإرسال البريد من هذا الخادوم، سيتم إرسال الروابط إلى الخادم، الأمر " +"الذي يمكن أن يقلل من حماية خصوصيتك." + +#: themes/default/templates/files.html.ep:14 +msgid "Import localStorage data" +msgstr "" + +#: themes/default/templates/index.html.ep:44 +msgid "Important: more information on delays" +msgstr "هام: مزيد من المعلومات عن التأخير" + +#: themes/default/templates/delays.html.ep:5 +msgid "Information about delays" +msgstr "معلومات حول التأخير" + +#: themes/default/templates/partial/render.js.ep:6 +msgid "" +"It seems that the key in your URL is incorrect. Please, verify your URL." +msgstr "" +"ويبدو أن المفتاح في عنوان URL الخاص بك غير صحيح. الرجاء تحقق من عنوان رابطك." + +#: themes/default/templates/index.html.ep:12 +msgid "Javascript is disabled. You won't be able to use Lufi." +msgstr "الجافا سكريبت غير مفعل. ليس بإمكانك استخدام لوفي Lufi." + +#: themes/default/templates/layouts/default.html.ep:40 themes/default/templates/layouts/default.html.ep:68 +msgid "Language" +msgstr "اللغة" + +#: themes/default/templates/login.html.ep:15 +msgid "Login" +msgstr "تسجيل الدخول" + +#: themes/default/templates/layouts/default.html.ep:53 themes/default/templates/layouts/default.html.ep:78 +msgid "Logout" +msgstr "الخروج" + +#: themes/default/templates/about.html.ep:4 +msgid "Lufi is a free (as in free speech) file hosting software." +msgstr "" +"لوفي أو Lufi برنامج حر (كما هو الحال في حرية التعبير) لاستضافة الملفات." + +#: themes/default/templates/files.html.ep:33 +msgid "Mail" +msgstr "البريد" + +#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:62 +msgid "My files" +msgstr "ملفاتي" + +#. (format_bytes($json->{size}) +#: lib/Lufi/Controller/Files.pm:79 +msgid "No enough space available on the server for this file (size: %1)." +msgstr "لا توجد مساحة كافية متوفرة على السيرفر لاستضافة الملف (الحجم: %1)." + +#: themes/default/templates/partial/files.js.ep:10 themes/default/templates/partial/index.js.ep:27 +msgid "No expiration delay" +msgstr "دون تاريخ لنهاية الصلاحية" + +#: themes/default/templates/files.html.ep:8 +msgid "" +"Only the files sent with this browser will be listed here. This list is " +"stored in localStorage: if you delete your localStorage data, you'll lose " +"this list." +msgstr "" + +#: themes/default/templates/index.html.ep:87 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 +msgid "Password" +msgstr "الكلمة السرية" + +#. (config('contact') +#: themes/default/templates/about.html.ep:13 +msgid "Please contact the administrator: %1" +msgstr "يرجى الاتصال بالمدير: %1" + +#: themes/default/templates/render.html.ep:33 +msgid "" +"Please wait while we are getting your file. We first need to download and " +"decrypt all parts before you can get it." +msgstr "" + +#: lib/Lufi/Controller/Auth.pm:28 +msgid "" +"Please, check your credentials or your right to access this service: unable " +"to authenticate." +msgstr "" + +#: themes/default/templates/about.html.ep:5 +msgid "Privacy" +msgstr "الخصوصية" + +#: themes/default/templates/files.html.ep:13 +msgid "Purge expired files from localStorage" +msgstr "تطهير الملفات منتهية الصلاحية من مساحة التخزين المحلية" + +#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:59 +msgid "Report file" +msgstr "الإبلاغ عن ملف" + +#: themes/default/templates/files.html.ep:9 +msgid "" +"Rows in red mean that the files have expired and are no longer available." +msgstr "تعني الأعمدة باللون الأحمر انتهاء صلاحية الملفات وأنها لم تعد متوفرة." + +#: themes/default/templates/partial/index.js.ep:25 +msgid "Send all links by email" +msgstr "إرسال كافة الروابط عبر البريد الإلكتروني" + +#: themes/default/templates/mail.html.ep:46 +msgid "Send with this server" +msgstr "إرسال عبر هذا الخادوم" + +#: themes/default/templates/mail.html.ep:47 +msgid "Send with your own mail software" +msgstr "إرسال باستخدام برنامج البريد الخاص بك" + +#: themes/default/templates/partial/index.js.ep:28 +msgid "" +"Sending part XX1 of XX2. Please, be patient, the progress bar can take a " +"while to move." +msgstr "" + +#. (url_for('/') +#: themes/default/templates/partial/mail.js.ep:48 +msgid "Share your files in total privacy on %1" +msgstr "شارك ملفاتك بخصوصية تامة على %1" + +#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:64 themes/default/templates/login.html.ep:27 themes/default/templates/logout.html.ep:17 +msgid "Signin" +msgstr "تسجيل الدخول" + +#: themes/default/templates/index.html.ep:37 +msgid "Sorry, the uploading is currently disabled. Please try again later." +msgstr "عذراً، التحميل معطل حاليا. يرجى إعادة المحاولة لاحقًا." + +#: lib/Lufi/Controller/Files.pm:53 +msgid "Sorry, uploading is disabled." +msgstr "عذرًا ، التحميل معطل." + +#: themes/default/templates/about.html.ep:7 +msgid "" +"The administrator can only see the file's name, its size and its mimetype " +"(what kind of file it is: video, text, etc.)." +msgstr "" + +#: lib/Lufi/Controller/Mail.pm:53 +msgid "" +"The body of the mail must contain at least one URL pointing to a file hosted " +"on this instance." +msgstr "" + +#: themes/default/templates/partial/files.js.ep:11 +msgid "The data has been successfully imported." +msgstr "تم استيراد البيانات بنجاح." + +#: lib/Lufi/Controller/Mail.pm:73 +msgid "The email body can't be empty." +msgstr "لا يمكن أن يُترك مضمون الرسالة فارغًا." + +#: lib/Lufi/Controller/Mail.pm:72 +msgid "The email subject can't be empty." +msgstr "لا يمكن أن يُترك موضوع الرسالة فارغًا." + +#: lib/Lufi/Controller/Files.pm:421 +msgid "The file has already been deleted" +msgstr "لقد تم حذف الملف مِن قبلُ" + +#: themes/default/templates/about.html.ep:6 +msgid "" +"The files uploaded on a Lufi instance are encrypted before the upload to the " +"server: the administrator of the server can not see the file's content." +msgstr "" +"يتم تشفير الملفات التي يتم تحميلها على خادوم لوفي قبل تحميلها على الخادم: لا " +"يمكن لمدير الخادم الإطلاع على محتوى الملف." + +#. (join(', ', @bad) +#: lib/Lufi/Controller/Mail.pm:68 +msgid "The following email addresses are not valid: %1" +msgstr "عناوين البريد الإلكترونية التالية غير صحيحة: %1" + +#: themes/default/templates/partial/index.js.ep:15 +msgid "The link(s) has been copied to your clipboard" +msgstr "لقد تم نسخ الرابط أو الروابط إلى الحافظة" + +#: lib/Lufi/Controller/Mail.pm:97 +msgid "The mail has been sent." +msgstr "لقد تم إرسال الرسالة الإلكترونية." + +#: themes/default/templates/about.html.ep:15 +msgid "" +"The original (and only for now) author is Luc Didry. If you want to support him, you can do it " +"via Tipeee " +"or via Liberapay." +msgstr "" + +#: lib/Lufi/Controller/Files.pm:189 +msgid "" +"The server was unable to find the file record to add your file part to. " +"Please, contact the administrator." +msgstr "" + +#: lib/Lufi/Controller/Files.pm:248 +msgid "" +"This file has been deactivated by the admins. Contact them to know why." +msgstr "لقد تم تعطيل الملف من طرف المشرفين. الرجاء الإتصال بهم لمعرفة السبب." + +#: themes/default/templates/delays.html.ep:10 +msgid "" +"This server sets limitations according to the file size. The expiration " +"delay of your file will be the minimum between what you choose and the " +"following limitations:" +msgstr "" + +#: themes/default/templates/partial/index.js.ep:16 +msgid "Unable to copy the link(s) to your clipboard" +msgstr "تعذر نسخ كافة الروابط إلى الحافظة" + +#. ($short) +#: lib/Lufi/Controller/Files.pm:392 +msgid "" +"Unable to get counter for %1. The file does not exists. It will be removed " +"from your localStorage." +msgstr "" + +#. ($short) +#: lib/Lufi/Controller/Files.pm:382 +msgid "Unable to get counter for %1. The token is invalid." +msgstr "لا يمكن جلب عداد %1. إن الرمز غير صالح." + +#. ($short) +#: lib/Lufi/Controller/Files.pm:402 +msgid "Unable to get counter for %1. You are not authenticated." +msgstr "لا يمكن جلب عداد %1. إنك لم تقم بتسجيل الدخول." + +#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:61 +msgid "Upload files" +msgstr "إرسال ملفات" + +#: themes/default/templates/files.html.ep:30 +msgid "Uploaded at" +msgstr "أرسِل بتاريخ" + +#: themes/default/templates/index.html.ep:103 +msgid "Uploaded files" +msgstr "الملفات المُرسَلة" + +#: themes/default/templates/partial/index.js.ep:29 +msgid "Websocket communication error" +msgstr "خطأ في اتصال ويب سوكيت" + +#: themes/default/templates/about.html.ep:3 +msgid "What is Lufi?" +msgstr "ماذا نعني بـ لوفي Lufi؟" + +#: themes/default/templates/about.html.ep:14 +msgid "Who wrote this software?" +msgstr "من قام بتطوير هذا البرنامج؟" + +#: themes/default/templates/about.html.ep:11 +msgid "" +"You can see the list of your files by clicking on the \"My files\" link at " +"the top right of this page." +msgstr "" +"يمكنك عرض قائمة ملفاتك عن طريق النقر على وصلة \"ملفاتي\" في الجزء العلوي " +"الأيمن من هذه الصفحة." + +#: lib/Lufi/Controller/Mail.pm:42 +msgid "You can't add URLs that are not related to this instance." +msgstr "" + +#: themes/default/templates/about.html.ep:8 +msgid "" +"You don't need to register yourself to upload files but be aware that, for " +"legal reasons, your IP address will be stored when you send a file. Don't " +"panic, this is normally the case for all sites on which you send files." +msgstr "" +"لا تحتاج إلى تسجيل نفسك لإرسال ملفات ولكن انتبه إلى أنه، لأسباب قانونية، " +"سيتم تخزين عنوان IP الخاص بك عندما تقوم بإرسال ملف. لا داعي للقلق فهذا شيء " +"عادي ينطبق على جميع المواقع التي توفر خدمة إرسال الملفات." + +#: themes/default/templates/partial/render.js.ep:10 +msgid "" +"You don't seem to have a key in your URL. You won't be able to decrypt the " +"file. Download canceled." +msgstr "" + +#: themes/default/templates/partial/render.js.ep:7 +msgid "" +"You have attempted to leave this page. The download will be canceled. Are " +"you sure?" +msgstr "" +"لقد حاولتَ ترك هذه الصفحة. سيتم إلغاء تنزيل الملف الذي أنت بصدد تنزيله. هل " +"أنت متأكد؟" + +#: themes/default/templates/partial/index.js.ep:13 +msgid "" +"You have attempted to leave this page. The upload will be canceled. Are you " +"sure?" +msgstr "" +"لقد حاولتَ ترك هذه الصفحة. سيتم إلغاء إرسال لملف الذي أنت بصدد تحميله. هل " +"أنت متأكد؟" + +#: themes/default/templates/logout.html.ep:14 +msgid "You have been successfully logged out." +msgstr "لقد تم تسجيل خروجك بنجاح." + +#: lib/Lufi/Controller/Mail.pm:71 +msgid "You must give email addresses." +msgstr "يجب إدخال عناوين للبريد الإلكتروني." + +#: themes/default/templates/index.html.ep:29 +#, fuzzy +msgid "" +"Your browser has not enough entropy to generate a strong encryption key. " +"Please wait (it's better if you do things on your computer while waiting)." +msgstr "لا يحتوي متصفحك على قدر كافٍ من الإنتروبيا لإنشاء مفتاح تشفير قوي." + +#. (format_bytes($json->{size}) +#: lib/Lufi/Controller/Files.pm:66 +msgid "Your file is too big: %1 (maximum size allowed: %2)" +msgstr "الملف كبير جدًا: %1 (الحد الأقصى المسموح به للحجم هو: %2)" + +#: lib/Lufi/Controller/Files.pm:304 +msgid "Your password is not valid. Please refresh the page to retry." +msgstr "الكلمة السرية غير صالحة. يرجى تحديث الصفحة لإعادة المحاولة." + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:20 +msgid "between %1 and %2, the file will be kept %3 day(s)." +msgstr "" + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:22 +msgid "between %1 and %2, the file will be kept forever." +msgstr "" + +#: themes/default/templates/partial/mail.js.ep:42 +msgid "deadline: " +msgstr "آخر أجل: " + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:26 +msgid "for %1 and more, the file will be kept %2 day(s)" +msgstr "" + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:28 +msgid "for %1 and more, the file will be kept forever." +msgstr "" + +#: themes/default/templates/index.html.ep:3 +msgid "no time limit" +msgstr "بلا حدود" + +#: themes/default/templates/index.html.ep:96 +msgid "or" +msgstr "أو" diff --git a/themes/default/lib/Lufi/I18N/ca.po b/themes/default/lib/Lufi/I18N/ca.po index 85ff22c..4aee29b 100644 --- a/themes/default/lib/Lufi/I18N/ca.po +++ b/themes/default/lib/Lufi/I18N/ca.po @@ -3,61 +3,89 @@ # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # xd , 2017. -# +# Luc Didry , 2018. #zanata +# Quentí , 2018. #zanata msgid "" msgstr "" -"Project-Id-Version: Lufi 0.01\n" +"Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" -"PO-Revision-Date: 2017-05-26 06:23-0000\n" -"Last-Translator: xd \n" -"Language-Team: català; valencià <>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2018-10-28 06:24+0000\n" +"Last-Translator: Quentí \n" +"Language-Team: català; valencià <>\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.6.10\n" +"X-Generator: Zanata 4.6.2\n" "Language: ca\n" #. ($delay) #. (max_delay) -#: themes/default/templates/index.html.ep:40 themes/default/templates/index.html.ep:49 themes/default/templates/index.html.ep:50 +#: themes/default/templates/index.html.ep:47 themes/default/templates/index.html.ep:56 themes/default/templates/index.html.ep:57 msgid "%1 days" msgstr "%1 dies" +#: themes/default/templates/partial/index.js.ep:26 +msgid "(max size: XXX)" +msgstr "(mida max: XXX)" + #: themes/default/templates/index.html.ep:5 msgid "1 year" msgstr "1 any" -#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:49 +#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:56 msgid "24 hours" msgstr "24 hores" -#: themes/default/templates/mail.html.ep:83 +#: themes/default/templates/partial/mail.js.ep:40 msgid ":" msgstr ":" #: themes/default/templates/about.html.ep:16 -msgid "A thank you with a photo of kitten on Diaspora* or Mastodon is cool too ;-)" -msgstr "Un agraïment amb la foto d'un gatet a Diaspora* o a Mastodon també fa goig ;-)" +msgid "" +"A thank you with a photo of kitten on Diaspora* or " +"Mastodon " +"is cool too ;-)" +msgstr "" +"Un agraïment amb la foto d'un gatet a Diaspora* o " +"a Mastodon " +"també fa goig ;-)" #: themes/default/templates/render.html.ep:42 msgid "Abort" msgstr "Avorta" -#: themes/default/templates/layouts/default.html.ep:65 themes/default/templates/layouts/default.html.ep:77 +#: themes/default/templates/layouts/default.html.ep:48 themes/default/templates/layouts/default.html.ep:76 msgid "About" msgstr "Quant a" -#: themes/default/templates/index.html.ep:71 +#: themes/default/templates/index.html.ep:88 msgid "Add a password to file(s)" +msgstr "Afegir una contrasenya al(s) fitxer(s)" + +#: themes/default/templates/mail.html.ep:16 +msgid "" +"Adding URLs not related to this Lufi instance to the mail body or subject is " +"prohibited." msgstr "" #: themes/default/templates/about.html.ep:18 -msgid "As Lufi is a free software licensed under of the terms of the AGPLv3, you can install it on you own server. Have a look on the Wiki for the procedure." -msgstr "Com que Lufi és programari lliure, autoritzat sota els termes de l'AGPLv3, el podeu instal·lar al vostre propi servidor. Pel que fa a com fer-ho, feu un cop d'ull al Wiki." - -#. (stash('f') -#: themes/default/templates/render.html.ep:52 +msgid "" +"As Lufi is a free software licensed under of the terms of the AGPLv3, you can " +"install it on you own server. Have a look on the Wiki for the procedure." +msgstr "" +"Com que Lufi és programari lliure, autoritzat sota els termes de l'AGPLv3, el " +"podeu instal·lar al vostre propi servidor. Pel que fa a com fer-ho, feu un " +"cop d'ull al Wiki." + +#. (stash('nbslices') +#: themes/default/templates/partial/render.js.ep:9 msgid "Asking for file part XX1 of %1" msgstr "Demanem la part XX1 de %1 del fitxer" @@ -65,15 +93,19 @@ msgstr "Demanem la part XX1 de %1 del fitxer" msgid "Back to homepage" msgstr "Retorna a la pàgina d'inici" -#: lib/Lufi/Controller/Mail.pm:21 +#: lib/Lufi/Controller/Mail.pm:25 msgid "Bad CSRF token!" msgstr "Mal testimoni CSRF!" -#: themes/default/templates/render.html.ep:48 +#: lib/Lufi/Controller/Auth.pm:22 lib/Lufi/Controller/Auth.pm:39 +msgid "Bad CSRF token." +msgstr "Token CSRF incorrect." + +#: themes/default/templates/partial/render.js.ep:5 msgid "Click here to refresh the page and restart the download." msgstr "Premeu aquí per tal de refrescar la pàgina i reiniciar la descàrrega" -#: themes/default/templates/index.html.ep:80 +#: themes/default/templates/index.html.ep:98 msgid "Click to open the file browser" msgstr "Premeu per obrir la selecció de fitxer." @@ -81,27 +113,27 @@ msgstr "Premeu per obrir la selecció de fitxer." msgid "Close" msgstr "Tanca" -#: themes/default/templates/mail.html.ep:22 +#: themes/default/templates/mail.html.ep:23 msgid "Comma-separated email addresses" msgstr "Adreces de correu electrònic separades per comes" -#: themes/default/templates/index.html.ep:100 +#: themes/default/templates/partial/index.js.ep:14 msgid "Copy all links to clipboard" msgstr "Copia tots els enllaços al porta-retalls" -#: themes/default/templates/index.html.ep:103 +#: themes/default/templates/partial/index.js.ep:17 msgid "Copy to clipboard" msgstr "Copia al porta-retalls" -#: lib/Lufi/Controller/Files.pm:429 +#: lib/Lufi/Controller/Files.pm:460 msgid "Could not delete the file. You are not authenticated." msgstr "No es pot esborrar el fitxer. No esteu autenticat." -#: lib/Lufi/Controller/Files.pm:411 +#: lib/Lufi/Controller/Files.pm:442 msgid "Could not find the file. Are you sure of the URL and the token?" msgstr "No es troba el fitxer. Esteu segur de la URL i el testimoni?" -#: lib/Lufi/Controller/Files.pm:322 +#: lib/Lufi/Controller/Files.pm:353 msgid "Could not find the file. Are you sure of the URL?" msgstr "No trobo el fitxer. Esteu segurs de la URL?" @@ -109,71 +141,87 @@ msgstr "No trobo el fitxer. Esteu segurs de la URL?" msgid "Counter" msgstr "Comptador" -#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:64 +#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:81 msgid "Delete at first download?" msgstr "Eliminar-lo a la primera descàrrega?" #: themes/default/templates/files.html.ep:18 msgid "Delete selected files" -msgstr "" +msgstr "Suprimir els fitxers seleccionats" -#: themes/default/templates/files.html.ep:32 themes/default/templates/index.html.ep:104 +#: themes/default/templates/files.html.ep:32 themes/default/templates/partial/index.js.ep:18 msgid "Deletion link" msgstr "Enllaç per a eliminació" #: themes/default/templates/delays.html.ep:8 -msgid "Don't worry: if a user begins to download the file before the expiration and the download ends after the expiration, he will be able to get the file." -msgstr "No patiu per si un usuari comença a descarregar el fitxer abans de l'expiració i la descàrrega acaba després de l'expiració, encara podrà obtenir el fitxer." +msgid "" +"Don't worry: if a user begins to download the file before the expiration and " +"the download ends after the expiration, he will be able to get the file." +msgstr "" +"No patiu per si un usuari comença a descarregar el fitxer abans de " +"l'expiració i la descàrrega acaba després de l'expiració, encara podrà " +"obtenir el fitxer." -#: themes/default/templates/index.html.ep:106 themes/default/templates/render.html.ep:28 +#: themes/default/templates/partial/index.js.ep:20 themes/default/templates/render.html.ep:28 msgid "Download" msgstr "Descàrrega" -#: themes/default/templates/render.html.ep:47 +#: themes/default/templates/partial/render.js.ep:4 msgid "Download aborted." msgstr "Descàrrega avortada." -#: themes/default/templates/files.html.ep:27 themes/default/templates/index.html.ep:105 +#: themes/default/templates/files.html.ep:27 themes/default/templates/partial/index.js.ep:19 msgid "Download link" msgstr "Enllaç per a descàrrega" #: themes/default/templates/about.html.ep:10 -msgid "Drag and drop files in the appropriate area or use the traditional way to send files and the files will be chunked, encrypted and sent to the server. You will get two links per file: a download link, that you give to the people you want to share the file with and a deletion link, allowing you to delete the file whenever you want." -msgstr "Arrossegueu i deixeu anar fitxers a l'àrea apropiada o useu el sistema tradicional per enviar fitxers, i seran trossejats, xifrats i enviats al servidor. Obtindreu dos enllaços per a cada fitxer: un enllaç per a la descàrrega, que doneu a la gent amb qui voleu compartir el fitxer, i un enllaç per a l'eliminació, que us permet eliminar el fitxer del servidor quan vulgueu. " - -#: themes/default/templates/index.html.ep:77 +msgid "" +"Drag and drop files in the appropriate area or use the traditional way to " +"send files and the files will be chunked, encrypted and sent to the server. " +"You will get two links per file: a download link, that you give to the " +"people you want to share the file with and a deletion link, allowing you to " +"delete the file whenever you want." +msgstr "" +"Arrossegueu i deixeu anar fitxers a l'àrea apropiada o useu el sistema " +"tradicional per enviar fitxers, i seran trossejats, xifrats i enviats al " +"servidor. Obtindreu dos enllaços per a cada fitxer: un enllaç per a la " +"descàrrega, que doneu a la gent amb qui voleu compartir el fitxer, i un " +"enllaç per a l'eliminació, que us permet eliminar el fitxer del servidor " +"quan vulgueu. " + +#: themes/default/templates/index.html.ep:94 msgid "Drop files here" msgstr "Deixeu anar aquí fitxers." -#: themes/default/templates/mail.html.ep:38 +#: themes/default/templates/mail.html.ep:39 msgid "Email body" msgstr "Cos del correu electrònic" -#: themes/default/templates/mail.html.ep:30 +#: themes/default/templates/mail.html.ep:31 msgid "Email subject" msgstr "Assumpte del correu electrònic" -#: themes/default/templates/mail.html.ep:24 themes/default/templates/mail.html.ep:26 +#: themes/default/templates/mail.html.ep:25 themes/default/templates/mail.html.ep:27 msgid "Emails" msgstr "correus electrònics" -#: themes/default/templates/index.html.ep:107 +#: themes/default/templates/partial/index.js.ep:21 msgid "Encrypting part XX1 of XX2" msgstr "S'està xifrant la part XX1 de XX2" -#: lib/Lufi/Controller/Files.pm:225 +#: lib/Lufi/Controller/Files.pm:242 msgid "Error: the file existed but was deleted." msgstr "Error: el fitxer existia però va ser eliminat." -#: lib/Lufi/Controller/Files.pm:291 +#: lib/Lufi/Controller/Files.pm:322 msgid "Error: the file has not been sent entirely." msgstr "Error: el fitxer no s'ha enviat del tot." -#: lib/Lufi/Controller/Files.pm:301 +#: lib/Lufi/Controller/Files.pm:332 msgid "Error: unable to find the file. Are you sure of your URL?" msgstr "Error: no trobo el fitxer. Esteu segur de la URL ?" -#: themes/default/templates/index.html.ep:108 +#: themes/default/templates/partial/index.js.ep:22 msgid "Expiration:" msgstr "Expiració:" @@ -185,7 +233,7 @@ msgstr "Expira el" msgid "Export localStorage data" msgstr "Exporta dades a l'emmagatzematge local" -#: lib/Lufi/Controller/Files.pm:393 +#: lib/Lufi/Controller/Files.pm:424 msgid "File deleted" msgstr "Fitxer eliminat" @@ -193,27 +241,38 @@ msgstr "Fitxer eliminat" msgid "File name" msgstr "Nom de fitxer" -#: themes/default/templates/render.html.ep:51 +#: themes/default/templates/index.html.ep:71 +msgid "Files deleted at first download" +msgstr "Fitxers suprimits a la primera descàrrega" + +#: themes/default/templates/partial/render.js.ep:8 msgid "Get the file" msgstr "Obté el fitxer" #: themes/default/templates/about.html.ep:19 -msgid "Get the source code on the official repository or on its Github mirror" -msgstr "Obteniu el codi font al repositori oficial o a la seva rèplica a Github" +msgid "" +"Get the source code on the official repository or on its Github mirror" +msgstr "" +"Obteniu el codi font al repositori oficial o a la seva rèplica a Github" -#: themes/default/templates/mail.html.ep:78 +#: themes/default/templates/partial/mail.js.ep:35 msgid "Hello,\\n\\nHere's some files I want to share with you:\\n" msgstr "Hola,\\n\\nVe't aquí uns fitxers que vull compartir amb tu:" -#: themes/default/templates/mail.html.ep:34 +#: themes/default/templates/mail.html.ep:35 msgid "Here's some files" msgstr "Ve't aquí uns fitxers" -#: themes/default/templates/index.html.ep:110 +#: themes/default/templates/partial/index.js.ep:24 msgid "Hit Enter, then Ctrl+C to copy all the download links" -msgstr "Prem Retorn, i després Ctrl+C per copiar tots els enllaços de descàrrega" +msgstr "" +"Prem Retorn, i després Ctrl+C per copiar tots els enllaços de descàrrega" -#: themes/default/templates/index.html.ep:109 +#: themes/default/templates/partial/index.js.ep:23 msgid "Hit Enter, then Ctrl+C to copy the download link" msgstr "Prem Retorn, i després Ctrl+C per copiar l'enllaç de descàrrega" @@ -229,20 +288,24 @@ msgstr "Com instal·lo el programari al meu servidor?" msgid "How to report an illegal file?" msgstr "Com informo d'un fitxer iŀlegal?" -# delay=temps/retard/dilació/demora/moratòria ? #: themes/default/templates/delays.html.ep:7 msgid "If you choose a delay, the file will be deleted after that delay." -msgstr "Si seleccioneu una moratòria, el fitxer s'eliminarà passada la moratòria." +msgstr "" +"Si seleccioneu una moratòria, el fitxer s'eliminarà passada la moratòria." #: themes/default/templates/mail.html.ep:15 -msgid "If you send the mail from this server, the links will be sent to the server, which may lower your privacy protection." -msgstr "Si envieu el correu des d'aquest servidor, els enllaços s'enviaran al servidor, i això pot minvar la protecció de la vostra privacitat." +msgid "" +"If you send the mail from this server, the links will be sent to the server, " +"which may lower your privacy protection." +msgstr "" +"Si envieu el correu des d'aquest servidor, els enllaços s'enviaran al " +"servidor, i això pot minvar la protecció de la vostra privacitat." #: themes/default/templates/files.html.ep:14 msgid "Import localStorage data" msgstr "Importar dades de l'emmagatzematge local" -#: themes/default/templates/index.html.ep:37 +#: themes/default/templates/index.html.ep:44 msgid "Important: more information on delays" msgstr "Importat: més informació sobre moratòries" @@ -250,19 +313,25 @@ msgstr "Importat: més informació sobre moratòries" msgid "Information about delays" msgstr "Informació sobre moratòries" -#: themes/default/templates/render.html.ep:49 -msgid "It seems that the key in your URL is incorrect. Please, verify your URL." -msgstr "Sembla que la clau a l'URL és incorrecta. Si us plau, verifiqueu l'URL." +#: themes/default/templates/partial/render.js.ep:6 +msgid "" +"It seems that the key in your URL is incorrect. Please, verify your URL." +msgstr "" +"Sembla que la clau a l'URL és incorrecta. Si us plau, verifiqueu l'URL." #: themes/default/templates/index.html.ep:12 msgid "Javascript is disabled. You won't be able to use Lufi." msgstr "Teniu el javascript deactivat. No podreu usar Lufi." +#: themes/default/templates/layouts/default.html.ep:40 themes/default/templates/layouts/default.html.ep:68 +msgid "Language" +msgstr "Llengua" + #: themes/default/templates/login.html.ep:15 msgid "Login" msgstr "Entrada" -#: themes/default/templates/layouts/default.html.ep:67 themes/default/templates/layouts/default.html.ep:79 +#: themes/default/templates/layouts/default.html.ep:53 themes/default/templates/layouts/default.html.ep:78 msgid "Logout" msgstr "Sortida" @@ -272,26 +341,32 @@ msgstr "Lufi és programari lliure d'allotjament de fitxers." #: themes/default/templates/files.html.ep:33 msgid "Mail" -msgstr "" +msgstr "Mail" -#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:61 themes/default/templates/layouts/default.html.ep:73 +#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:62 msgid "My files" msgstr "Els meus fitxers" #. (format_bytes($json->{size}) -#: lib/Lufi/Controller/Files.pm:69 +#: lib/Lufi/Controller/Files.pm:79 msgid "No enough space available on the server for this file (size: %1)." msgstr "No hi ha prou espai al servidor per a aquest fitxer (mida: %1)" -#: themes/default/templates/files.html.ep:45 themes/default/templates/index.html.ep:112 +#: themes/default/templates/partial/files.js.ep:10 themes/default/templates/partial/index.js.ep:27 msgid "No expiration delay" msgstr "Sense moratòria d'expiració" #: themes/default/templates/files.html.ep:8 -msgid "Only the files sent with this browser will be listed here. This list is stored in localStorage: if you delete your localStorage data, you'll lose this list." -msgstr "Aquí només apareixen els fitxers enviats amb aquest navegador. La llista es desa en emmagatzematge local: si netegeu l'emmagatzematge local perdreu aquesta llista." +msgid "" +"Only the files sent with this browser will be listed here. This list is " +"stored in localStorage: if you delete your localStorage data, you'll lose " +"this list." +msgstr "" +"Aquí només apareixen els fitxers enviats amb aquest navegador. La llista es " +"desa en emmagatzematge local: si netegeu l'emmagatzematge local perdreu " +"aquesta llista." -#: themes/default/templates/index.html.ep:70 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 +#: themes/default/templates/index.html.ep:87 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 msgid "Password" msgstr "Contrasenya" @@ -301,11 +376,17 @@ msgid "Please contact the administrator: %1" msgstr "Si us plau contacteu amb l'administrador: %1" #: themes/default/templates/render.html.ep:33 -msgid "Please wait while we are getting your file. We first need to download and decrypt all parts before you can get it." -msgstr "Si us plau, espereu mentre obtenim el fitxer. Abans que el tingueu disponible primer cal descarregar i desxifrar tots els trossos." +msgid "" +"Please wait while we are getting your file. We first need to download and " +"decrypt all parts before you can get it." +msgstr "" +"Si us plau, espereu mentre obtenim el fitxer. Abans que el tingueu " +"disponible primer cal descarregar i desxifrar tots els trossos." -#: lib/Lufi.pm:191 -msgid "Please, check your credentials: unable to authenticate." +#: lib/Lufi/Controller/Auth.pm:28 +msgid "" +"Please, check your credentials or your right to access this service: unable " +"to authenticate." msgstr "" #: themes/default/templates/about.html.ep:5 @@ -316,118 +397,172 @@ msgstr "Privacitat" msgid "Purge expired files from localStorage" msgstr "Netegeu els fitxers expirats de l'emmagatzematge local." +#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:59 +msgid "Report file" +msgstr "Senyalar un fitxer" + #: themes/default/templates/files.html.ep:9 -msgid "Rows in red mean that the files have expired and are no longer available." -msgstr "Les files en vermell indiquen que els fitxers han expirat i ja no són disponibles." +msgid "" +"Rows in red mean that the files have expired and are no longer available." +msgstr "" +"Les files en vermell indiquen que els fitxers han expirat i ja no són " +"disponibles." -#: themes/default/templates/index.html.ep:111 +#: themes/default/templates/partial/index.js.ep:25 msgid "Send all links by email" msgstr "Envia tots els enllaços per correu electrònic" -#: themes/default/templates/mail.html.ep:45 +#: themes/default/templates/mail.html.ep:46 msgid "Send with this server" msgstr "Envia amb aquest servidor" -#: themes/default/templates/mail.html.ep:46 +#: themes/default/templates/mail.html.ep:47 msgid "Send with your own mail software" msgstr "Envia amb el vostre propi programa de correu" -#: themes/default/templates/index.html.ep:113 -msgid "Sending part XX1 of XX2. Please, be patient, the progress bar can take a while to move." -msgstr "S'està enviant el tros XX1 de XX2. Si us plau, paciència; la barra de progrés pot trigar una mica a bellugar-se. " +#: themes/default/templates/partial/index.js.ep:28 +msgid "" +"Sending part XX1 of XX2. Please, be patient, the progress bar can take a " +"while to move." +msgstr "" +"S'està enviant el tros XX1 de XX2. Si us plau, paciència; la barra de " +"progrés pot trigar una mica a bellugar-se. " #. (url_for('/') -#: themes/default/templates/mail.html.ep:91 +#: themes/default/templates/partial/mail.js.ep:48 msgid "Share your files in total privacy on %1" msgstr "Compartiu fitxers amb total privacitat a %1" -#: themes/default/templates/layouts/default.html.ep:63 themes/default/templates/layouts/default.html.ep:75 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8 +#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:64 themes/default/templates/login.html.ep:27 themes/default/templates/logout.html.ep:17 msgid "Signin" msgstr "Autenticació" -#: lib/Lufi.pm:194 -msgid "Sorry mate, you are not authorised to use that service. Contact your sysadmin if you think there's a glitch in the matrix." -msgstr "" - -#: themes/default/templates/index.html.ep:30 +#: themes/default/templates/index.html.ep:37 msgid "Sorry, the uploading is currently disabled. Please try again later." -msgstr "Disculpeu, les pujades estan actualment desactivades. Si us plau proveu-ho més tard." +msgstr "" +"Disculpeu, les pujades estan actualment desactivades. Si us plau proveu-ho " +"més tard." -#: lib/Lufi/Controller/Files.pm:43 +#: lib/Lufi/Controller/Files.pm:53 msgid "Sorry, uploading is disabled." msgstr "Disculpeu, les pujades estan deshabilitades" #: themes/default/templates/about.html.ep:7 -msgid "The administrator can only see the file's name, its size and its mimetype (what kind of file it is: video, text, etc.)." +msgid "" +"The administrator can only see the file's name, its size and its mimetype " +"(what kind of file it is: video, text, etc.)." msgstr "" "L'administrador només pot veure el nom del fitxer, la seva mida i el seu\n" "mimetype (quina mena de fitxer és: vídeo, text, etc.)" -#: themes/default/templates/files.html.ep:46 +#: lib/Lufi/Controller/Mail.pm:53 +msgid "" +"The body of the mail must contain at least one URL pointing to a file hosted " +"on this instance." +msgstr "" +"El cor del mail deu contenir almens una URL menant al fitxer albergat a " +"aquesta instància." + +#: themes/default/templates/partial/files.js.ep:11 msgid "The data has been successfully imported." msgstr "La importació de les dades ha reeixit." -#: lib/Lufi/Controller/Mail.pm:43 +#: lib/Lufi/Controller/Mail.pm:73 msgid "The email body can't be empty." msgstr "El cos del correu no pot estar buit." -#: lib/Lufi/Controller/Mail.pm:42 +#: lib/Lufi/Controller/Mail.pm:72 msgid "The email subject can't be empty." msgstr "L'assumpte dle correu no pot estar buit." -#: lib/Lufi/Controller/Files.pm:390 +#: lib/Lufi/Controller/Files.pm:421 msgid "The file has already been deleted" msgstr "El fitxer ja ha estat esborrat" #: themes/default/templates/about.html.ep:6 -msgid "The files uploaded on a Lufi instance are encrypted before the upload to the server: the administrator of the server can not see the file's content." -msgstr "Els fitxers que es pugen a una instaŀlació de Lufi són xifrats abans de pujar-los al servidor i l'administrador del servidor no pot veure el contingut del fitxer." +msgid "" +"The files uploaded on a Lufi instance are encrypted before the upload to the " +"server: the administrator of the server can not see the file's content." +msgstr "" +"Els fitxers que es pugen a una instaŀlació de Lufi són xifrats abans de " +"pujar-los al servidor i l'administrador del servidor no pot veure el " +"contingut del fitxer." #. (join(', ', @bad) -#: lib/Lufi/Controller/Mail.pm:38 +#: lib/Lufi/Controller/Mail.pm:68 msgid "The following email addresses are not valid: %1" msgstr "Les següents adreces de correu electrònic no són vàlides: %1" -#: themes/default/templates/index.html.ep:101 +#: themes/default/templates/partial/index.js.ep:15 msgid "The link(s) has been copied to your clipboard" msgstr "L'enllaç/ els enllaços ja estan copiats al portaretalls" -#: lib/Lufi/Controller/Mail.pm:66 +#: lib/Lufi/Controller/Mail.pm:97 msgid "The mail has been sent." msgstr "El correu ja està enviat." #: themes/default/templates/about.html.ep:15 -msgid "The original (and only for now) author is Luc Didry. If you want to support him, you can do it via Tipeee or via Liberapay." -msgstr "L'autor original (i per ara l'únic) és Luc Didry. Si voleu fer una contribució podeu fer-ho via Tipeee o via Liberapay." +msgid "" +"The original (and only for now) author is Luc Didry. If you want to support him, you can do it " +"via Tipeee " +"or via Liberapay." +msgstr "" +"L'autor original (i per ara l'únic) és Luc Didry. Si voleu fer una contribució podeu fer-ho via Tipeee o via " +"Liberapay." -#: lib/Lufi/Controller/Files.pm:179 -msgid "The server was unable to find the file record to add your file part to. Please, contact the administrator." -msgstr "El servidor no ha pogut trobar el registre del fitxer per afegir-hi el tros del fitxer. Si us plau, contacteu l'administrador." +#: lib/Lufi/Controller/Files.pm:189 +msgid "" +"The server was unable to find the file record to add your file part to. " +"Please, contact the administrator." +msgstr "" +"El servidor no ha pogut trobar el registre del fitxer per afegir-hi el tros " +"del fitxer. Si us plau, contacteu l'administrador." + +#: lib/Lufi/Controller/Files.pm:248 +msgid "" +"This file has been deactivated by the admins. Contact them to know why." +msgstr "" +"Aquest fitxer es estat desactivat pels administrators. Contacteu-los per " +"saber perque." #: themes/default/templates/delays.html.ep:10 -msgid "This server sets limitations according to the file size. The expiration delay of your file will be the minimum between what you choose and the following limitations:" -msgstr "Aquest servidor estableix limitacions segons la mida del fitxer. La moratòria d'expiració del fitxer serà el mínim de l'escollida i aquestes limitacions:" +msgid "" +"This server sets limitations according to the file size. The expiration " +"delay of your file will be the minimum between what you choose and the " +"following limitations:" +msgstr "" +"Aquest servidor estableix limitacions segons la mida del fitxer. La " +"moratòria d'expiració del fitxer serà el mínim de l'escollida i aquestes " +"limitacions:" -#: themes/default/templates/index.html.ep:102 +#: themes/default/templates/partial/index.js.ep:16 msgid "Unable to copy the link(s) to your clipboard" msgstr "No s'han pogut copiar l'enllaç o els enllaços al porta-retalls." #. ($short) -#: lib/Lufi/Controller/Files.pm:361 -msgid "Unable to get counter for %1. The file does not exists. It will be removed from your localStorage." -msgstr "No he pogut obtenir el comptador de %1. El fitxer no existeix. Serà eliminat del teu emmagatzematge local." +#: lib/Lufi/Controller/Files.pm:392 +msgid "" +"Unable to get counter for %1. The file does not exists. It will be removed " +"from your localStorage." +msgstr "" +"No he pogut obtenir el comptador de %1. El fitxer no existeix. Serà eliminat " +"del teu emmagatzematge local." #. ($short) -#: lib/Lufi/Controller/Files.pm:351 +#: lib/Lufi/Controller/Files.pm:382 msgid "Unable to get counter for %1. The token is invalid." msgstr "No he pogut obtenir el comptador de %1. El testimoni no és vàlid." #. ($short) -#: lib/Lufi/Controller/Files.pm:371 +#: lib/Lufi/Controller/Files.pm:402 msgid "Unable to get counter for %1. You are not authenticated." msgstr "No he pogut obtenir el comptador de %1. No esteu autenticat." -#: themes/default/templates/layouts/default.html.ep:60 themes/default/templates/layouts/default.html.ep:72 +#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:61 msgid "Upload files" msgstr "Pujar fitxers" @@ -435,11 +570,11 @@ msgstr "Pujar fitxers" msgid "Uploaded at" msgstr "Pujat a les" -#: themes/default/templates/index.html.ep:85 +#: themes/default/templates/index.html.ep:103 msgid "Uploaded files" msgstr "Fitxers pujats" -#: themes/default/templates/index.html.ep:114 +#: themes/default/templates/partial/index.js.ep:29 msgid "Websocket communication error" msgstr "Error de comunicacions del websocket" @@ -452,41 +587,75 @@ msgid "Who wrote this software?" msgstr "Qui va escriure aquest programa?" #: themes/default/templates/about.html.ep:11 -msgid "You can see the list of your files by clicking on the \"My files\" link at the top right of this page." -msgstr "Podeu veure la llista dels vostres fitxers amb a l'enllaç \"Els meus fitxers\" a dalt a la dreta d'aquesta pàgina." +msgid "" +"You can see the list of your files by clicking on the \"My files\" link at " +"the top right of this page." +msgstr "" +"Podeu veure la llista dels vostres fitxers amb a l'enllaç \"Els meus " +"fitxers\" a dalt a la dreta d'aquesta pàgina." + +#: lib/Lufi/Controller/Mail.pm:42 +msgid "You can't add URLs that are not related to this instance." +msgstr "No podeu pas afegir una URL qu'es pas ligada a aquesta instància." #: themes/default/templates/about.html.ep:8 -msgid "You don't need to register yourself to upload files but be aware that, for legal reasons, your IP address will be stored when you send a file. Don't panic, this is normally the case for all sites on which you send files." -msgstr "No cal que us inscriviu per a pujar fitxers però tingueu en compte, que per raons legals, s'enregistrarà la vostra adreça IP quan envieu un fitxer. No us espanteu, això és el que normalment passa a tots els webs on pugeu fitxers." +msgid "" +"You don't need to register yourself to upload files but be aware that, for " +"legal reasons, your IP address will be stored when you send a file. Don't " +"panic, this is normally the case for all sites on which you send files." +msgstr "" +"No cal que us inscriviu per a pujar fitxers però tingueu en compte, que per " +"raons legals, s'enregistrarà la vostra adreça IP quan envieu un fitxer. No " +"us espanteu, això és el que normalment passa a tots els webs on pugeu " +"fitxers." -#: themes/default/templates/render.html.ep:53 -msgid "You don't seem to have a key in your URL. You won't be able to decrypt the file. Download canceled." -msgstr "No sembla que hi hagi una clau a la URL. No podreu desxifrar el fitxer. Descàrrega canceŀlada." +#: themes/default/templates/partial/render.js.ep:10 +msgid "" +"You don't seem to have a key in your URL. You won't be able to decrypt the " +"file. Download canceled." +msgstr "" +"No sembla que hi hagi una clau a la URL. No podreu desxifrar el fitxer. " +"Descàrrega canceŀlada." -#: themes/default/templates/render.html.ep:50 -msgid "You have attempted to leave this page. The download will be canceled. Are you sure?" -msgstr "Heu intentat deixar aquesta pàgina. Es canceŀlarà la descàrrega. N'esteu segur?" +#: themes/default/templates/partial/render.js.ep:7 +msgid "" +"You have attempted to leave this page. The download will be canceled. Are " +"you sure?" +msgstr "" +"Heu intentat deixar aquesta pàgina. Es canceŀlarà la descàrrega. N'esteu " +"segur?" -#: themes/default/templates/index.html.ep:99 -msgid "You have attempted to leave this page. The upload will be canceled. Are you sure?" -msgstr "Heu intentat deixar aquesta pàgina. Es canceŀlarà la pujada. N'esteu segur?" +#: themes/default/templates/partial/index.js.ep:13 +msgid "" +"You have attempted to leave this page. The upload will be canceled. Are you " +"sure?" +msgstr "" +"Heu intentat deixar aquesta pàgina. Es canceŀlarà la pujada. N'esteu segur?" -#: themes/default/templates/logout.html.ep:5 +#: themes/default/templates/logout.html.ep:14 msgid "You have been successfully logged out." msgstr "Heu sortit correctament." -#: lib/Lufi/Controller/Mail.pm:41 +#: lib/Lufi/Controller/Mail.pm:71 msgid "You must give email addresses." msgstr "Heu de donar l'adreça de correu electrònic." +#: themes/default/templates/index.html.ep:29 +msgid "" +"Your browser has not enough entropy to generate a strong encryption key. " +"Please wait (it's better if you do things on your computer while waiting)." +msgstr "" + #. (format_bytes($json->{size}) -#: lib/Lufi/Controller/Files.pm:56 +#: lib/Lufi/Controller/Files.pm:66 msgid "Your file is too big: %1 (maximum size allowed: %2)" msgstr "El fitxer és massa gran: %1 (mida màxima admesa: %2)" -#: lib/Lufi/Controller/Files.pm:273 +#: lib/Lufi/Controller/Files.pm:304 msgid "Your password is not valid. Please refresh the page to retry." msgstr "" +"La vostra contrasenya es incorrecta. Torneu cargar la pàgina per provar de " +"nou." #. (format_bytes($keys[$i]) #: themes/default/templates/delays.html.ep:20 @@ -498,7 +667,7 @@ msgstr "entre %1 i %2, el fitxer es mantindrà %3 dia/es al servidor." msgid "between %1 and %2, the file will be kept forever." msgstr "entre %1 i %2, el fitxer es mantindrà per sempre al servidor." -#: themes/default/templates/mail.html.ep:85 +#: themes/default/templates/partial/mail.js.ep:42 msgid "deadline: " msgstr "termini:" @@ -516,6 +685,6 @@ msgstr "a partir de %1, el fitxer es mantindrà per sempre al servidor." msgid "no time limit" msgstr "no hi ha límit de temps" -#: themes/default/templates/index.html.ep:78 +#: themes/default/templates/index.html.ep:96 msgid "or" msgstr "o" diff --git a/themes/default/lib/Lufi/I18N/de.po b/themes/default/lib/Lufi/I18N/de.po new file mode 100644 index 0000000..f7c11e9 --- /dev/null +++ b/themes/default/lib/Lufi/I18N/de.po @@ -0,0 +1,706 @@ +# frju365 , 2018. #zanata +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2018-10-28 07:34+0000\n" +"Last-Translator: frju365 \n" +"Language-Team: German\n" +"Language: de\n" +"X-Generator: Zanata 4.6.2\n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" + +#. ($delay) +#. (max_delay) +#: themes/default/templates/index.html.ep:47 themes/default/templates/index.html.ep:56 themes/default/templates/index.html.ep:57 +msgid "%1 days" +msgstr "%1 Tag" + +#: themes/default/templates/partial/index.js.ep:26 +msgid "(max size: XXX)" +msgstr "(maximale Größe: XXX)" + +#: themes/default/templates/index.html.ep:5 +msgid "1 year" +msgstr "1 Jahre" + +#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:56 +msgid "24 hours" +msgstr "24 Stunden" + +#: themes/default/templates/partial/mail.js.ep:40 +msgid ":" +msgstr ":" + +#: themes/default/templates/about.html.ep:16 +msgid "" +"A thank you with a photo of kitten on Diaspora* or " +"Mastodon " +"is cool too ;-)" +msgstr "" +"Ein Dankeschön mit einem Foto von Kätzchen von Diaspora* oder von Mastodon ist auch cool ;)" + +#: themes/default/templates/render.html.ep:42 +msgid "Abort" +msgstr "Abbrechen" + +#: themes/default/templates/layouts/default.html.ep:48 themes/default/templates/layouts/default.html.ep:76 +msgid "About" +msgstr "Über" + +#: themes/default/templates/index.html.ep:88 +msgid "Add a password to file(s)" +msgstr "Ein Passwort zu den Dateien hinzufügen" + +#: themes/default/templates/mail.html.ep:16 +msgid "" +"Adding URLs not related to this Lufi instance to the mail body or subject is " +"prohibited." +msgstr "" +"Das Hinzufügen von URLs, die nicht mit dieser Lufi-Instanz in Verbindung " +"stehen, zum Mailtext oder Betreff ist verboten." + +#: themes/default/templates/about.html.ep:18 +msgid "" +"As Lufi is a free software licensed under of the terms of the AGPLv3, you can " +"install it on you own server. Have a look on the Wiki for the procedure." +msgstr "" +"Da es sich bei Lufi um eine kostenlose Software handelt, die unter den " +"Bedingungen der AGPLv3 lizenziert ist, können Sie sie auf Ihrem eigenen " +"Server installieren. Werfen Sie einen Blick auf die Wiki für das " +"Verfahren." + +#. (stash('nbslices') +#: themes/default/templates/partial/render.js.ep:9 +msgid "Asking for file part XX1 of %1" +msgstr "Abfrage des Dateiteils XX1 von %1" + +#: themes/default/templates/about.html.ep:21 +msgid "Back to homepage" +msgstr "Zurück zur Hauptseite" + +#: lib/Lufi/Controller/Mail.pm:25 +msgid "Bad CSRF token!" +msgstr "Schlechtes CSRF-Token!" + +#: lib/Lufi/Controller/Auth.pm:22 lib/Lufi/Controller/Auth.pm:39 +msgid "Bad CSRF token." +msgstr "Schlechtes CSRF-Token." + +#: themes/default/templates/partial/render.js.ep:5 +msgid "Click here to refresh the page and restart the download." +msgstr "" +"Klicken Sie hier, um die Seite zu aktualisieren und den Download neu zu " +"starten." + +#: themes/default/templates/index.html.ep:98 +msgid "Click to open the file browser" +msgstr "Klicken um den Dateibrowser zu öffnen" + +#: themes/default/templates/delays.html.ep:38 +msgid "Close" +msgstr "Schließen" + +#: themes/default/templates/mail.html.ep:23 +msgid "Comma-separated email addresses" +msgstr "Kommagetrennte E-Mail-Adressen" + +#: themes/default/templates/partial/index.js.ep:14 +msgid "Copy all links to clipboard" +msgstr "Alle Links in die Zwischenablage kopieren" + +#: themes/default/templates/partial/index.js.ep:17 +msgid "Copy to clipboard" +msgstr "In die Zwischenablage kopieren" + +#: lib/Lufi/Controller/Files.pm:460 +msgid "Could not delete the file. You are not authenticated." +msgstr "" +"Die Datei konnte nicht gelöscht werden. Du bist nicht authentifiziert." + +#: lib/Lufi/Controller/Files.pm:442 +msgid "Could not find the file. Are you sure of the URL and the token?" +msgstr "" +"Die Datei konnte nicht gefunden werden. Sind Sie sich der URL und des Token " +"sicher?" + +#: lib/Lufi/Controller/Files.pm:353 +msgid "Could not find the file. Are you sure of the URL?" +msgstr "Die Datei konnte nicht gefunden werden. Sind Sie sich der URL sicher?" + +#: themes/default/templates/files.html.ep:28 +msgid "Counter" +msgstr "Zähler" + +#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:81 +msgid "Delete at first download?" +msgstr "Beim ersten Download löschen?" + +#: themes/default/templates/files.html.ep:18 +msgid "Delete selected files" +msgstr "Die ausgewählte Dateien löschen" + +#: themes/default/templates/files.html.ep:32 themes/default/templates/partial/index.js.ep:18 +msgid "Deletion link" +msgstr "Link zum Löschen" + +#: themes/default/templates/delays.html.ep:8 +msgid "" +"Don't worry: if a user begins to download the file before the expiration and " +"the download ends after the expiration, he will be able to get the file." +msgstr "" +"Keine Sorge: Wenn ein Benutzer vor Ablauf der Frist mit dem Herunterladen " +"der Datei beginnt und der Download nach Ablauf der Frist endet, kann er die " +"Datei herunterladen." + +#: themes/default/templates/partial/index.js.ep:20 themes/default/templates/render.html.ep:28 +msgid "Download" +msgstr "Herunterladen" + +#: themes/default/templates/partial/render.js.ep:4 +msgid "Download aborted." +msgstr "Herunterladen abgebrochen" + +#: themes/default/templates/files.html.ep:27 themes/default/templates/partial/index.js.ep:19 +msgid "Download link" +msgstr "Link zum Herunterladen" + +#: themes/default/templates/about.html.ep:10 +msgid "" +"Drag and drop files in the appropriate area or use the traditional way to " +"send files and the files will be chunked, encrypted and sent to the server. " +"You will get two links per file: a download link, that you give to the " +"people you want to share the file with and a deletion link, allowing you to " +"delete the file whenever you want." +msgstr "" +"Ziehen Sie Dateien per Drag-and-Drop in den entsprechenden Bereich oder " +"verwenden Sie die traditionelle Methode zum Senden von Dateien und die " +"Dateien werden verchromt, verschlüsselt und an den Server gesendet. Sie " +"erhalten zwei Links pro Datei: einen Download-Link, den Sie den Personen " +"geben, mit denen Sie die Datei teilen möchten, und einen Lösch-Link, mit dem " +"Sie die Datei jederzeit löschen können." + +#: themes/default/templates/index.html.ep:94 +msgid "Drop files here" +msgstr "Ablegen Sie Dateien hier" + +#: themes/default/templates/mail.html.ep:39 +msgid "Email body" +msgstr "E-Mail-Body" + +#: themes/default/templates/mail.html.ep:31 +msgid "Email subject" +msgstr "E-Mail-Betreff" + +#: themes/default/templates/mail.html.ep:25 themes/default/templates/mail.html.ep:27 +msgid "Emails" +msgstr "E-Mails" + +#: themes/default/templates/partial/index.js.ep:21 +msgid "Encrypting part XX1 of XX2" +msgstr "Verschlüsselung von Teil XX1 von XX2" + +#: lib/Lufi/Controller/Files.pm:242 +msgid "Error: the file existed but was deleted." +msgstr "Error: Die Datei existierte, aber es wurde gelöscht." + +#: lib/Lufi/Controller/Files.pm:322 +msgid "Error: the file has not been sent entirely." +msgstr "Error: Die Datei wurde nicht vollständig gesendet." + +#: lib/Lufi/Controller/Files.pm:332 +msgid "Error: unable to find the file. Are you sure of your URL?" +msgstr "Error: Datei nicht gefunden. Sind Sie sich Ihrer URL sicher?" + +#: themes/default/templates/partial/index.js.ep:22 +msgid "Expiration:" +msgstr "Ablaufdatum:" + +#: themes/default/templates/files.html.ep:31 +msgid "Expires at" +msgstr "Verfallt bei" + +#: themes/default/templates/files.html.ep:12 +msgid "Export localStorage data" +msgstr "Exportieren von localStorage-Daten" + +#: lib/Lufi/Controller/Files.pm:424 +msgid "File deleted" +msgstr "Datei gelöscht" + +#: themes/default/templates/files.html.ep:26 +msgid "File name" +msgstr "Dateiname" + +#: themes/default/templates/index.html.ep:71 +msgid "Files deleted at first download" +msgstr "Dateien wurde beim ersten Download gelöcht" + +#: themes/default/templates/partial/render.js.ep:8 +msgid "Get the file" +msgstr "Die Datei herunterladen" + +#: themes/default/templates/about.html.ep:19 +msgid "" +"Get the source code on the official repository or on its Github mirror" +msgstr "" +"Holen Sie sich den Quellcode auf das offizielle Repository oder auf dessen Github mirror." + +#: themes/default/templates/partial/mail.js.ep:35 +msgid "Hello,\\n\\nHere's some files I want to share with you:\\n" +msgstr "Hallo!!\\n\\nHier sind einige Dateien, die ich mit dir teilen möchte:\\n" + +#: themes/default/templates/mail.html.ep:35 +msgid "Here's some files" +msgstr "Hier sind einige Dateien" + +#: themes/default/templates/partial/index.js.ep:24 +msgid "Hit Enter, then Ctrl+C to copy all the download links" +msgstr "" +"Drücken Sie Enter und dann Ctrl+C, um alle Download-Links zu kopieren." + +#: themes/default/templates/partial/index.js.ep:23 +msgid "Hit Enter, then Ctrl+C to copy the download link" +msgstr "Drücken Sie Enter und dann Ctrl+C, um die Download-Links zu kopieren." + +#: themes/default/templates/about.html.ep:9 +msgid "How does it work?" +msgstr "Wie fonktionniert es?" + +#: themes/default/templates/about.html.ep:17 +msgid "How to install the software on my server?" +msgstr "Wie kann ich diesen Software auf meine Instanz installieren ?" + +#: themes/default/templates/about.html.ep:12 +msgid "How to report an illegal file?" +msgstr "Wie kann man eine illegale Datei melden?" + +#: themes/default/templates/delays.html.ep:7 +msgid "If you choose a delay, the file will be deleted after that delay." +msgstr "" +"Wenn Sie eine Verzögerung wählen, wird die Datei nach dieser Verzögerung " +"gelöscht." + +#: themes/default/templates/mail.html.ep:15 +msgid "" +"If you send the mail from this server, the links will be sent to the server, " +"which may lower your privacy protection." +msgstr "" +"When Sie der E-Mail von diesem Server schicken, der Links wurde an einen " +"Server geschickt, der eine niedrigen Schutz der Privatsphäre haben kann." + +#: themes/default/templates/files.html.ep:14 +msgid "Import localStorage data" +msgstr "Importieren von localStorage-Daten" + +#: themes/default/templates/index.html.ep:44 +msgid "Important: more information on delays" +msgstr "Wichtig: weitere Informationen zu den Verzögerungen" + +#: themes/default/templates/delays.html.ep:5 +msgid "Information about delays" +msgstr "Informationen über den Verzörgerungen" + +#: themes/default/templates/partial/render.js.ep:6 +msgid "" +"It seems that the key in your URL is incorrect. Please, verify your URL." +msgstr "" +"Es scheint, dass der Schlüssel in Ihrer URL inkorrekt ist. Bitte überprüfen " +"Sie Ihre URL." + +#: themes/default/templates/index.html.ep:12 +msgid "Javascript is disabled. You won't be able to use Lufi." +msgstr "Javascript ist desaktiviert. Du wirst Lufi nicht benutzen können." + +#: themes/default/templates/layouts/default.html.ep:40 themes/default/templates/layouts/default.html.ep:68 +msgid "Language" +msgstr "Sprache" + +#: themes/default/templates/login.html.ep:15 +msgid "Login" +msgstr "Login" + +#: themes/default/templates/layouts/default.html.ep:53 themes/default/templates/layouts/default.html.ep:78 +msgid "Logout" +msgstr "Abmelden" + +#: themes/default/templates/about.html.ep:4 +msgid "Lufi is a free (as in free speech) file hosting software." +msgstr "Lufi is ein freier (wie in der Redefreiheit) Datei-Hosting-Software." + +#: themes/default/templates/files.html.ep:33 +msgid "Mail" +msgstr "E-Mail" + +#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:62 +msgid "My files" +msgstr "Meine Dateien" + +#. (format_bytes($json->{size}) +#: lib/Lufi/Controller/Files.pm:79 +msgid "No enough space available on the server for this file (size: %1)." +msgstr "" +"Auf dem Server ist nicht genügend Platz für diese Datei vorhanden (Größe: " +"%1)." + +#: themes/default/templates/partial/files.js.ep:10 themes/default/templates/partial/index.js.ep:27 +msgid "No expiration delay" +msgstr "Keine Ablaufverzögerung" + +#: themes/default/templates/files.html.ep:8 +msgid "" +"Only the files sent with this browser will be listed here. This list is " +"stored in localStorage: if you delete your localStorage data, you'll lose " +"this list." +msgstr "" +"Nur die mit diesem Browser geschickten Dateien werden hier aufgelistet. " +"Diese Liste wird in localStorage gespeichert: Wenn Sie Ihre localStorage-" +"Daten löschen, verlieren Sie diese Liste. " + +#: themes/default/templates/index.html.ep:87 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 +msgid "Password" +msgstr "Passwort" + +#. (config('contact') +#: themes/default/templates/about.html.ep:13 +msgid "Please contact the administrator: %1" +msgstr "Bitte kontaktieren sie den Administrator: %1" + +#: themes/default/templates/render.html.ep:33 +msgid "" +"Please wait while we are getting your file. We first need to download and " +"decrypt all parts before you can get it." +msgstr "" +"Bitte warten Sie, bis wir Ihre Datei erhalten. Wir müssen zuerst alle Teile " +"herunterladen und entschlüsseln, bevor Sie sie bekommen können." + +#: lib/Lufi/Controller/Auth.pm:28 +msgid "" +"Please, check your credentials or your right to access this service: unable " +"to authenticate." +msgstr "" +"Bitte überprüffen sie Ihre Zugangsdaten oder Ihr Recht, auf diesen Dienst " +"zuzugreifen: keine Authentifizierung möglich." + +#: themes/default/templates/about.html.ep:5 +msgid "Privacy" +msgstr "Privatsphäre" + +#: themes/default/templates/files.html.ep:13 +msgid "Purge expired files from localStorage" +msgstr "Abgelaufener Dateien aus localStorage bereinigen" + +#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:59 +msgid "Report file" +msgstr "Datei melden" + +#: themes/default/templates/files.html.ep:9 +msgid "" +"Rows in red mean that the files have expired and are no longer available." +msgstr "" +"Rot markierte Zeilen bedeuten, dass die Dateien abgelaufen sind und nicht " +"mehr verfügbar sind." + +#: themes/default/templates/partial/index.js.ep:25 +msgid "Send all links by email" +msgstr "Alle Links bei E-Mail schicken" + +#: themes/default/templates/mail.html.ep:46 +msgid "Send with this server" +msgstr "Mit diesem Server schicken" + +#: themes/default/templates/mail.html.ep:47 +msgid "Send with your own mail software" +msgstr "Schicken mit Ihrer eigenen Mail-Software" + +#: themes/default/templates/partial/index.js.ep:28 +msgid "" +"Sending part XX1 of XX2. Please, be patient, the progress bar can take a " +"while to move." +msgstr "" +"Senden von Teil XX1 von XX2. Bitte haben Sie Geduld, der Fortschrittsbalken " +"kann eine Weile dauern, bis er sich bewegt." + +#. (url_for('/') +#: themes/default/templates/partial/mail.js.ep:48 +msgid "Share your files in total privacy on %1" +msgstr "Teilen Sie Ihre Dateien in der absoluten Vertraulichkeit auf %1" + +#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:64 themes/default/templates/login.html.ep:27 themes/default/templates/logout.html.ep:17 +msgid "Signin" +msgstr "Einloggen" + +#: themes/default/templates/index.html.ep:37 +msgid "Sorry, the uploading is currently disabled. Please try again later." +msgstr "Es tut uns leid, aber das Hochladen ist im Moment deaktiviert" + +#: lib/Lufi/Controller/Files.pm:53 +msgid "Sorry, uploading is disabled." +msgstr "Leider ist das Hochladen deaktiviert." + +#: themes/default/templates/about.html.ep:7 +msgid "" +"The administrator can only see the file's name, its size and its mimetype " +"(what kind of file it is: video, text, etc.)." +msgstr "" +"Der Administrator kann nur den Namen der Datei, ihre Größe und ihren Mimetyp " +"(welche Art von Datei es ist: Video, Text, etc.) sehen." + +#: lib/Lufi/Controller/Mail.pm:53 +msgid "" +"The body of the mail must contain at least one URL pointing to a file hosted " +"on this instance." +msgstr "" +"Der E-Mail-Body muss zu mindestens eine URL enhalten, die auf eine Datei " +"verweist, die auf dieser Instanz gehosted wird." + +#: themes/default/templates/partial/files.js.ep:11 +msgid "The data has been successfully imported." +msgstr "DIe Daten wurden erfolgreich importiert." + +#: lib/Lufi/Controller/Mail.pm:73 +msgid "The email body can't be empty." +msgstr "Der E-Mail-Body darf nicht leer sein." + +#: lib/Lufi/Controller/Mail.pm:72 +msgid "The email subject can't be empty." +msgstr "Der E-Mail-Betreff kann nicht leer sein." + +#: lib/Lufi/Controller/Files.pm:421 +msgid "The file has already been deleted" +msgstr "Die Datei wurde schon gelöscht." + +#: themes/default/templates/about.html.ep:6 +msgid "" +"The files uploaded on a Lufi instance are encrypted before the upload to the " +"server: the administrator of the server can not see the file's content." +msgstr "" +"Die auf einer Lufi-Instanz hochgeladenen Dateien werden vor dem Hochladen " +"auf den Server verschlüsselt: Der Administrator des Servers kann den Inhalt " +"der Datei nicht sehen." + +#. (join(', ', @bad) +#: lib/Lufi/Controller/Mail.pm:68 +msgid "The following email addresses are not valid: %1" +msgstr "Die folgenden E-Mail-Adressen sind nicht gültig: %1" + +#: themes/default/templates/partial/index.js.ep:15 +msgid "The link(s) has been copied to your clipboard" +msgstr "Die Links wurde(n) in die Zwischenablage kopiert." + +#: lib/Lufi/Controller/Mail.pm:97 +msgid "The mail has been sent." +msgstr "Der E-Mail wurde geschickt." + +#: themes/default/templates/about.html.ep:15 +msgid "" +"The original (and only for now) author is Luc Didry. If you want to support him, you can do it " +"via Tipeee " +"or via Liberapay." +msgstr "" +"Die Originalautor (und vorerst einzige) ist Luc Didry. Wenn Sie ihn unterschützen wollen, können " +"Sie dies über Tipeee oder über Liberapay tun." + +#: lib/Lufi/Controller/Files.pm:189 +msgid "" +"The server was unable to find the file record to add your file part to. " +"Please, contact the administrator." +msgstr "" +"Der Server konnte den Datensatz nicht finden, zu dem Sie Ihr Dateiteil " +"hinzufügen können. Bitte kontaktieren Sie den Administrator." + +#: lib/Lufi/Controller/Files.pm:248 +msgid "" +"This file has been deactivated by the admins. Contact them to know why." +msgstr "" +"Diese Datei wurde von Admins deacktiviert. Kontaktieren SIe sie, um die " +"Gründe zu kennen." + +#: themes/default/templates/delays.html.ep:10 +msgid "" +"This server sets limitations according to the file size. The expiration " +"delay of your file will be the minimum between what you choose and the " +"following limitations:" +msgstr "" +"Dieser Server setzt Einschränkungen entsprechend der Dateigröße. Die " +"Ablaufverzögerung Ihrer Datei ist das Minimum zwischen dem, was Sie wählen, " +"und den folgenden Einschränkungen:" + +#: themes/default/templates/partial/index.js.ep:16 +msgid "Unable to copy the link(s) to your clipboard" +msgstr "Es ist nicht möglich, die Links in die Zwischenablage zu kopieren." + +#. ($short) +#: lib/Lufi/Controller/Files.pm:392 +msgid "" +"Unable to get counter for %1. The file does not exists. It will be removed " +"from your localStorage." +msgstr "" +"Der Zähler für %1 konnte nicht ermittelt werden. Die Datei existiert nicht. " +"Es wird aus deinem localStorage gelöscht." + +#. ($short) +#: lib/Lufi/Controller/Files.pm:382 +msgid "Unable to get counter for %1. The token is invalid." +msgstr "" +"Der Zähler für %1 konnte nicht gefunden werden. Das Token ist ungültig." + +#. ($short) +#: lib/Lufi/Controller/Files.pm:402 +msgid "Unable to get counter for %1. You are not authenticated." +msgstr "" +"Der Zähler für %1 konnte nicht gefunden werden. Sie sind nicht " +"authentifiziert." + +#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:61 +msgid "Upload files" +msgstr "Dateien hochladen" + +#: themes/default/templates/files.html.ep:30 +msgid "Uploaded at" +msgstr "Hochgeladen unter" + +#: themes/default/templates/index.html.ep:103 +msgid "Uploaded files" +msgstr "Hochgeladene Dateien" + +#: themes/default/templates/partial/index.js.ep:29 +msgid "Websocket communication error" +msgstr "Websocket-Kommunikationsfehler" + +#: themes/default/templates/about.html.ep:3 +msgid "What is Lufi?" +msgstr "Was ist Lufi?" + +#: themes/default/templates/about.html.ep:14 +msgid "Who wrote this software?" +msgstr "Wer hat diese Software geschrieben?" + +#: themes/default/templates/about.html.ep:11 +msgid "" +"You can see the list of your files by clicking on the \"My files\" link at " +"the top right of this page." +msgstr "" +"Sie können die Liste Ihrer Dateien einsehen, indem Sie auf den Link \"Meine " +"Dateien\" oben rechts auf dieser Seite klicken." + +#: lib/Lufi/Controller/Mail.pm:42 +msgid "You can't add URLs that are not related to this instance." +msgstr "" +"Sie können keine URLs hinzufügen, die nicht mit dieser Instanz verknüpft " +"sind." + +#: themes/default/templates/about.html.ep:8 +msgid "" +"You don't need to register yourself to upload files but be aware that, for " +"legal reasons, your IP address will be stored when you send a file. Don't " +"panic, this is normally the case for all sites on which you send files." +msgstr "" +"Sie müssen sich nicht registrieren, um Dateien hochzuladen, aber beachten " +"Sie, dass Ihre IP-Adresse aus rechtlichen Gründen beim Senden einer Datei " +"gespeichert wird. Keine Panik, dies ist normalerweise der Fall für alle " +"Websites, auf denen Sie Dateien senden." + +#: themes/default/templates/partial/render.js.ep:10 +msgid "" +"You don't seem to have a key in your URL. You won't be able to decrypt the " +"file. Download canceled." +msgstr "" +"Sie scheinen keinen Schlüssel in Ihrer URL zu besitzen. Du wirst die Datei " +"nicht entschlüsseln können. Der Download wurde abgebrochen." + +#: themes/default/templates/partial/render.js.ep:7 +msgid "" +"You have attempted to leave this page. The download will be canceled. Are " +"you sure?" +msgstr "" +"Du hast versucht, diese Seite zu verlassen. Der Download wird abgebrochen. " +"Bist du sicher?" + +#: themes/default/templates/partial/index.js.ep:13 +msgid "" +"You have attempted to leave this page. The upload will be canceled. Are you " +"sure?" +msgstr "" +"Du hast versucht, diese Seite zu verlassen. Der Hockladen wird abgebrochen. " +"Bist du sicher?" + +#: themes/default/templates/logout.html.ep:14 +msgid "You have been successfully logged out." +msgstr "Sie wurden erfolgreich ausgeloggt." + +#: lib/Lufi/Controller/Mail.pm:71 +msgid "You must give email addresses." +msgstr "Sie müssen E-Mail-Adressen geben." + +#: themes/default/templates/index.html.ep:29 +msgid "" +"Your browser has not enough entropy to generate a strong encryption key. " +"Please wait (it's better if you do things on your computer while waiting)." +msgstr "" +"Ihr Browser hat nicht genug Entropie, um einen starken Verschlüsselungscode " +"zu erzeugen. Bitte warten Sie einen Moment (es ist besser, wenn Sie Dinge " +"auf Ihrem Computer tun, während Sie warten)." + +#. (format_bytes($json->{size}) +#: lib/Lufi/Controller/Files.pm:66 +msgid "Your file is too big: %1 (maximum size allowed: %2)" +msgstr "Ihre Datei ist zu groß: %1 (maximal erlaubte Größe: %2)" + +#: lib/Lufi/Controller/Files.pm:304 +msgid "Your password is not valid. Please refresh the page to retry." +msgstr "" +"Ihr Passwort ist ungültig. Bitte aktualisieren Sie die Seite, um es " +"wiederzuversuchen." + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:20 +msgid "between %1 and %2, the file will be kept %3 day(s)." +msgstr "zwischen %1 und %2, wird die Datei %3 Tag(e) behalten." + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:22 +msgid "between %1 and %2, the file will be kept forever." +msgstr "zwischen %1 und %2, wird die Datei für immer aufbewahrt." + +#: themes/default/templates/partial/mail.js.ep:42 +msgid "deadline: " +msgstr "Abgabetermin:" + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:26 +msgid "for %1 and more, the file will be kept %2 day(s)" +msgstr "für %1 und mehr wird die Datei aufbewahrt %2 Tag(e)" + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:28 +msgid "for %1 and more, the file will be kept forever." +msgstr "für %1 und mehr, wird die Datei für immer aufbewahrt." + +#: themes/default/templates/index.html.ep:3 +msgid "no time limit" +msgstr "kein Zeitlimit" + +#: themes/default/templates/index.html.ep:96 +msgid "or" +msgstr "oder" diff --git a/themes/default/lib/Lufi/I18N/en.po b/themes/default/lib/Lufi/I18N/en.po index f1f284c..e8ddebb 100644 --- a/themes/default/lib/Lufi/I18N/en.po +++ b/themes/default/lib/Lufi/I18N/en.po @@ -1,515 +1,679 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy +# Luc Didry , 2018. #zanata msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2018-10-28 01:53+0000\n" +"Last-Translator: Luc Didry \n" +"Language-Team: English\n" +"Language: en\n" +"X-Generator: Zanata 4.6.2\n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" #. ($delay) #. (max_delay) -#: themes/default/templates/index.html.ep:40 themes/default/templates/index.html.ep:49 themes/default/templates/index.html.ep:50 +#: themes/default/templates/index.html.ep:47 themes/default/templates/index.html.ep:56 themes/default/templates/index.html.ep:57 msgid "%1 days" msgstr "%1 days" +#: themes/default/templates/partial/index.js.ep:26 +msgid "(max size: XXX)" +msgstr "(max size: XXX)" + #: themes/default/templates/index.html.ep:5 msgid "1 year" -msgstr "" +msgstr "1 year" -#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:49 +#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:56 msgid "24 hours" -msgstr "" +msgstr "24 hours" -#: themes/default/templates/mail.html.ep:83 +#: themes/default/templates/partial/mail.js.ep:40 msgid ":" -msgstr "" +msgstr ":" #: themes/default/templates/about.html.ep:16 -msgid "A thank you with a photo of kitten on Diaspora* or Mastodon is cool too ;-)" +msgid "" +"A thank you with a photo of kitten on Diaspora* or " +"Mastodon " +"is cool too ;-)" msgstr "" +"A thank you with a photo of kitten on Diaspora* or " +"Mastodon " +"is cool too ;-)" #: themes/default/templates/render.html.ep:42 msgid "Abort" -msgstr "" +msgstr "Abort" -#: themes/default/templates/layouts/default.html.ep:65 themes/default/templates/layouts/default.html.ep:77 +#: themes/default/templates/layouts/default.html.ep:48 themes/default/templates/layouts/default.html.ep:76 msgid "About" -msgstr "" +msgstr "About" -#: themes/default/templates/index.html.ep:71 +#: themes/default/templates/index.html.ep:88 msgid "Add a password to file(s)" -msgstr "" +msgstr "Add a password to file(s)" -#: themes/default/templates/about.html.ep:18 -msgid "As Lufi is a free software licensed under of the terms of the AGPLv3, you can install it on you own server. Have a look on the Wiki for the procedure." +#: themes/default/templates/mail.html.ep:16 +msgid "" +"Adding URLs not related to this Lufi instance to the mail body or subject is " +"prohibited." msgstr "" +"Adding URLs not related to this Lufi instance to the mail body or subject is " +"prohibited." -#. (stash('f') -#: themes/default/templates/render.html.ep:52 +#: themes/default/templates/about.html.ep:18 +msgid "" +"As Lufi is a free software licensed under of the terms of the AGPLv3, you can " +"install it on you own server. Have a look on the Wiki for the procedure." +msgstr "" +"As Lufi is a free software licensed under of the terms of the AGPLv3, you can " +"install it on you own server. Have a look on the Wiki for the procedure." + +#. (stash('nbslices') +#: themes/default/templates/partial/render.js.ep:9 msgid "Asking for file part XX1 of %1" -msgstr "" +msgstr "Asking for file part XX1 of %1" #: themes/default/templates/about.html.ep:21 msgid "Back to homepage" -msgstr "" +msgstr "Back to homepage" -#: lib/Lufi/Controller/Mail.pm:21 +#: lib/Lufi/Controller/Mail.pm:25 msgid "Bad CSRF token!" -msgstr "" +msgstr "Bad CSRF token!" + +#: lib/Lufi/Controller/Auth.pm:22 lib/Lufi/Controller/Auth.pm:39 +msgid "Bad CSRF token." +msgstr "Bad CSRF token." -#: themes/default/templates/render.html.ep:48 +#: themes/default/templates/partial/render.js.ep:5 msgid "Click here to refresh the page and restart the download." -msgstr "" +msgstr "Click here to refresh the page and restart the download." -#: themes/default/templates/index.html.ep:80 +#: themes/default/templates/index.html.ep:98 msgid "Click to open the file browser" -msgstr "" +msgstr "Click to open the file browser" #: themes/default/templates/delays.html.ep:38 msgid "Close" -msgstr "" +msgstr "Close" -#: themes/default/templates/mail.html.ep:22 +#: themes/default/templates/mail.html.ep:23 msgid "Comma-separated email addresses" -msgstr "" +msgstr "Comma-separated email addresses" -#: themes/default/templates/index.html.ep:100 +#: themes/default/templates/partial/index.js.ep:14 msgid "Copy all links to clipboard" -msgstr "" +msgstr "Copy all links to clipboard" -#: themes/default/templates/index.html.ep:103 +#: themes/default/templates/partial/index.js.ep:17 msgid "Copy to clipboard" -msgstr "" +msgstr "Copy to clipboard" -#: lib/Lufi/Controller/Files.pm:429 +#: lib/Lufi/Controller/Files.pm:460 msgid "Could not delete the file. You are not authenticated." -msgstr "" +msgstr "Could not delete the file. You are not authenticated." -#: lib/Lufi/Controller/Files.pm:411 +#: lib/Lufi/Controller/Files.pm:442 msgid "Could not find the file. Are you sure of the URL and the token?" -msgstr "" +msgstr "Could not find the file. Are you sure of the URL and the token?" -#: lib/Lufi/Controller/Files.pm:322 +#: lib/Lufi/Controller/Files.pm:353 msgid "Could not find the file. Are you sure of the URL?" -msgstr "" +msgstr "Could not find the file. Are you sure of the URL?" #: themes/default/templates/files.html.ep:28 msgid "Counter" -msgstr "" +msgstr "Counter" -#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:64 +#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:81 msgid "Delete at first download?" -msgstr "" +msgstr "Delete at first download?" #: themes/default/templates/files.html.ep:18 msgid "Delete selected files" -msgstr "" +msgstr "Delete selected files" -#: themes/default/templates/files.html.ep:32 themes/default/templates/index.html.ep:104 +#: themes/default/templates/files.html.ep:32 themes/default/templates/partial/index.js.ep:18 msgid "Deletion link" -msgstr "" +msgstr "Deletion link" #: themes/default/templates/delays.html.ep:8 -msgid "Don't worry: if a user begins to download the file before the expiration and the download ends after the expiration, he will be able to get the file." +msgid "" +"Don't worry: if a user begins to download the file before the expiration and " +"the download ends after the expiration, he will be able to get the file." msgstr "" +"Don't worry: if a user begins to download the file before the expiration and " +"the download ends after the expiration, he will be able to get the file." -#: themes/default/templates/index.html.ep:106 themes/default/templates/render.html.ep:28 +#: themes/default/templates/partial/index.js.ep:20 themes/default/templates/render.html.ep:28 msgid "Download" -msgstr "" +msgstr "Download" -#: themes/default/templates/render.html.ep:47 +#: themes/default/templates/partial/render.js.ep:4 msgid "Download aborted." -msgstr "" +msgstr "Download aborted." -#: themes/default/templates/files.html.ep:27 themes/default/templates/index.html.ep:105 +#: themes/default/templates/files.html.ep:27 themes/default/templates/partial/index.js.ep:19 msgid "Download link" -msgstr "" +msgstr "Download link" #: themes/default/templates/about.html.ep:10 -msgid "Drag and drop files in the appropriate area or use the traditional way to send files and the files will be chunked, encrypted and sent to the server. You will get two links per file: a download link, that you give to the people you want to share the file with and a deletion link, allowing you to delete the file whenever you want." -msgstr "" - -#: themes/default/templates/index.html.ep:77 +msgid "" +"Drag and drop files in the appropriate area or use the traditional way to " +"send files and the files will be chunked, encrypted and sent to the server. " +"You will get two links per file: a download link, that you give to the " +"people you want to share the file with and a deletion link, allowing you to " +"delete the file whenever you want." +msgstr "" +"Drag and drop files in the appropriate area or use the traditional way to " +"send files and the files will be chunked, encrypted and sent to the server. " +"You will get two links per file: a download link, that you give to the " +"people you want to share the file with and a deletion link, allowing you to " +"delete the file whenever you want." + +#: themes/default/templates/index.html.ep:94 msgid "Drop files here" -msgstr "" +msgstr "Drop files here" -#: themes/default/templates/mail.html.ep:38 +#: themes/default/templates/mail.html.ep:39 msgid "Email body" -msgstr "" +msgstr "Email body" -#: themes/default/templates/mail.html.ep:30 +#: themes/default/templates/mail.html.ep:31 msgid "Email subject" -msgstr "" +msgstr "Email subject" -#: themes/default/templates/mail.html.ep:24 themes/default/templates/mail.html.ep:26 +#: themes/default/templates/mail.html.ep:25 themes/default/templates/mail.html.ep:27 msgid "Emails" -msgstr "" +msgstr "Emails" -#: themes/default/templates/index.html.ep:107 +#: themes/default/templates/partial/index.js.ep:21 msgid "Encrypting part XX1 of XX2" -msgstr "" +msgstr "Encrypting part XX1 of XX2" -#: lib/Lufi/Controller/Files.pm:225 +#: lib/Lufi/Controller/Files.pm:242 msgid "Error: the file existed but was deleted." -msgstr "" +msgstr "Error: the file existed but was deleted." -#: lib/Lufi/Controller/Files.pm:291 +#: lib/Lufi/Controller/Files.pm:322 msgid "Error: the file has not been sent entirely." -msgstr "" +msgstr "Error: the file has not been sent entirely." -#: lib/Lufi/Controller/Files.pm:301 +#: lib/Lufi/Controller/Files.pm:332 msgid "Error: unable to find the file. Are you sure of your URL?" -msgstr "" +msgstr "Error: unable to find the file. Are you sure of your URL?" -#: themes/default/templates/index.html.ep:108 +#: themes/default/templates/partial/index.js.ep:22 msgid "Expiration:" -msgstr "" +msgstr "Expiration:" #: themes/default/templates/files.html.ep:31 msgid "Expires at" -msgstr "" +msgstr "Expires at" #: themes/default/templates/files.html.ep:12 msgid "Export localStorage data" -msgstr "" +msgstr "Export localStorage data" -#: lib/Lufi/Controller/Files.pm:393 +#: lib/Lufi/Controller/Files.pm:424 msgid "File deleted" -msgstr "" +msgstr "File deleted" #: themes/default/templates/files.html.ep:26 msgid "File name" -msgstr "" +msgstr "File name" -#: themes/default/templates/render.html.ep:51 +#: themes/default/templates/index.html.ep:71 +msgid "Files deleted at first download" +msgstr "Files deleted at first download" + +#: themes/default/templates/partial/render.js.ep:8 msgid "Get the file" -msgstr "" +msgstr "Get the file" #: themes/default/templates/about.html.ep:19 -msgid "Get the source code on the official repository or on its Github mirror" +msgid "" +"Get the source code on the official repository or on its Github mirror" msgstr "" +"Get the source code on the official repository or on its Github mirror" -#: themes/default/templates/mail.html.ep:78 +#: themes/default/templates/partial/mail.js.ep:35 msgid "Hello,\\n\\nHere's some files I want to share with you:\\n" -msgstr "" +msgstr "Hello,\\n\\nHere's some files I want to share with you:\\n" -#: themes/default/templates/mail.html.ep:34 +#: themes/default/templates/mail.html.ep:35 msgid "Here's some files" -msgstr "" +msgstr "Here's some files" -#: themes/default/templates/index.html.ep:110 +#: themes/default/templates/partial/index.js.ep:24 msgid "Hit Enter, then Ctrl+C to copy all the download links" -msgstr "" +msgstr "Hit Enter, then Ctrl+C to copy all the download links" -#: themes/default/templates/index.html.ep:109 +#: themes/default/templates/partial/index.js.ep:23 msgid "Hit Enter, then Ctrl+C to copy the download link" -msgstr "" +msgstr "Hit Enter, then Ctrl+C to copy the download link" #: themes/default/templates/about.html.ep:9 msgid "How does it work?" -msgstr "" +msgstr "How does it work?" #: themes/default/templates/about.html.ep:17 msgid "How to install the software on my server?" -msgstr "" +msgstr "How to install the software on my server?" #: themes/default/templates/about.html.ep:12 msgid "How to report an illegal file?" -msgstr "" +msgstr "How to report an illegal file?" #: themes/default/templates/delays.html.ep:7 msgid "If you choose a delay, the file will be deleted after that delay." -msgstr "" +msgstr "If you choose a delay, the file will be deleted after that delay." #: themes/default/templates/mail.html.ep:15 -msgid "If you send the mail from this server, the links will be sent to the server, which may lower your privacy protection." +msgid "" +"If you send the mail from this server, the links will be sent to the server, " +"which may lower your privacy protection." msgstr "" +"If you send the mail from this server, the links will be sent to the server, " +"which may lower your privacy protection." #: themes/default/templates/files.html.ep:14 msgid "Import localStorage data" -msgstr "" +msgstr "Import localStorage data" -#: themes/default/templates/index.html.ep:37 +#: themes/default/templates/index.html.ep:44 msgid "Important: more information on delays" -msgstr "" +msgstr "Important: more information on delays" #: themes/default/templates/delays.html.ep:5 msgid "Information about delays" -msgstr "" +msgstr "Information about delays" -#: themes/default/templates/render.html.ep:49 -msgid "It seems that the key in your URL is incorrect. Please, verify your URL." +#: themes/default/templates/partial/render.js.ep:6 +msgid "" +"It seems that the key in your URL is incorrect. Please, verify your URL." msgstr "" +"It seems that the key in your URL is incorrect. Please, verify your URL." #: themes/default/templates/index.html.ep:12 msgid "Javascript is disabled. You won't be able to use Lufi." -msgstr "" +msgstr "Javascript is disabled. You won't be able to use Lufi." + +#: themes/default/templates/layouts/default.html.ep:40 themes/default/templates/layouts/default.html.ep:68 +msgid "Language" +msgstr "Language" #: themes/default/templates/login.html.ep:15 msgid "Login" -msgstr "" +msgstr "Login" -#: themes/default/templates/layouts/default.html.ep:67 themes/default/templates/layouts/default.html.ep:79 +#: themes/default/templates/layouts/default.html.ep:53 themes/default/templates/layouts/default.html.ep:78 msgid "Logout" -msgstr "" +msgstr "Logout" #: themes/default/templates/about.html.ep:4 msgid "Lufi is a free (as in free speech) file hosting software." -msgstr "" +msgstr "Lufi is a free (as in free speech) file hosting software." #: themes/default/templates/files.html.ep:33 msgid "Mail" -msgstr "" +msgstr "Mail" -#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:61 themes/default/templates/layouts/default.html.ep:73 +#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:62 msgid "My files" -msgstr "" +msgstr "My files" #. (format_bytes($json->{size}) -#: lib/Lufi/Controller/Files.pm:69 +#: lib/Lufi/Controller/Files.pm:79 msgid "No enough space available on the server for this file (size: %1)." -msgstr "" +msgstr "No enough space available on the server for this file (size: %1)." -#: themes/default/templates/files.html.ep:45 themes/default/templates/index.html.ep:112 +#: themes/default/templates/partial/files.js.ep:10 themes/default/templates/partial/index.js.ep:27 msgid "No expiration delay" -msgstr "" +msgstr "No expiration delay" #: themes/default/templates/files.html.ep:8 -msgid "Only the files sent with this browser will be listed here. This list is stored in localStorage: if you delete your localStorage data, you'll lose this list." +msgid "" +"Only the files sent with this browser will be listed here. This list is " +"stored in localStorage: if you delete your localStorage data, you'll lose " +"this list." msgstr "" +"Only the files sent with this browser will be listed here. This list is " +"stored in localStorage: if you delete your localStorage data, you'll lose " +"this list." -#: themes/default/templates/index.html.ep:70 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 +#: themes/default/templates/index.html.ep:87 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 msgid "Password" -msgstr "" +msgstr "Password" #. (config('contact') #: themes/default/templates/about.html.ep:13 msgid "Please contact the administrator: %1" -msgstr "" +msgstr "Please contact the administrator: %1" #: themes/default/templates/render.html.ep:33 -msgid "Please wait while we are getting your file. We first need to download and decrypt all parts before you can get it." +msgid "" +"Please wait while we are getting your file. We first need to download and " +"decrypt all parts before you can get it." msgstr "" +"Please wait while we are getting your file. We first need to download and " +"decrypt all parts before you can get it." -#: lib/Lufi.pm:191 -msgid "Please, check your credentials: unable to authenticate." +#: lib/Lufi/Controller/Auth.pm:28 +msgid "" +"Please, check your credentials or your right to access this service: unable " +"to authenticate." msgstr "" +"Please, check your credentials or your right to access this service: unable " +"to authenticate." #: themes/default/templates/about.html.ep:5 msgid "Privacy" -msgstr "" +msgstr "Privacy" #: themes/default/templates/files.html.ep:13 msgid "Purge expired files from localStorage" -msgstr "" +msgstr "Purge expired files from localStorage" + +#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:59 +msgid "Report file" +msgstr "Report file" #: themes/default/templates/files.html.ep:9 -msgid "Rows in red mean that the files have expired and are no longer available." +msgid "" +"Rows in red mean that the files have expired and are no longer available." msgstr "" +"Rows in red mean that the files have expired and are no longer available." -#: themes/default/templates/index.html.ep:111 +#: themes/default/templates/partial/index.js.ep:25 msgid "Send all links by email" -msgstr "" +msgstr "Send all links by email" -#: themes/default/templates/mail.html.ep:45 +#: themes/default/templates/mail.html.ep:46 msgid "Send with this server" -msgstr "" +msgstr "Send with this server" -#: themes/default/templates/mail.html.ep:46 +#: themes/default/templates/mail.html.ep:47 msgid "Send with your own mail software" -msgstr "" +msgstr "Send with your own mail software" -#: themes/default/templates/index.html.ep:113 -msgid "Sending part XX1 of XX2. Please, be patient, the progress bar can take a while to move." +#: themes/default/templates/partial/index.js.ep:28 +msgid "" +"Sending part XX1 of XX2. Please, be patient, the progress bar can take a " +"while to move." msgstr "" +"Sending part XX1 of XX2. Please, be patient, the progress bar can take a " +"while to move." #. (url_for('/') -#: themes/default/templates/mail.html.ep:91 +#: themes/default/templates/partial/mail.js.ep:48 msgid "Share your files in total privacy on %1" -msgstr "" +msgstr "Share your files in total privacy on %1" -#: themes/default/templates/layouts/default.html.ep:63 themes/default/templates/layouts/default.html.ep:75 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8 +#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:64 themes/default/templates/login.html.ep:27 themes/default/templates/logout.html.ep:17 msgid "Signin" -msgstr "" - -#: lib/Lufi.pm:194 -msgid "Sorry mate, you are not authorised to use that service. Contact your sysadmin if you think there's a glitch in the matrix." -msgstr "" +msgstr "Signin" -#: themes/default/templates/index.html.ep:30 +#: themes/default/templates/index.html.ep:37 msgid "Sorry, the uploading is currently disabled. Please try again later." -msgstr "" +msgstr "Sorry, the uploading is currently disabled. Please try again later." -#: lib/Lufi/Controller/Files.pm:43 +#: lib/Lufi/Controller/Files.pm:53 msgid "Sorry, uploading is disabled." -msgstr "" +msgstr "Sorry, uploading is disabled." #: themes/default/templates/about.html.ep:7 -msgid "The administrator can only see the file's name, its size and its mimetype (what kind of file it is: video, text, etc.)." +msgid "" +"The administrator can only see the file's name, its size and its mimetype " +"(what kind of file it is: video, text, etc.)." msgstr "" +"The administrator can only see the file's name, its size and its mimetype " +"(what kind of file it is: video, text, etc.)." -#: themes/default/templates/files.html.ep:46 -msgid "The data has been successfully imported." +#: lib/Lufi/Controller/Mail.pm:53 +msgid "" +"The body of the mail must contain at least one URL pointing to a file hosted " +"on this instance." msgstr "" +"The body of the mail must contain at least one URL pointing to a file hosted " +"on this instance." -#: lib/Lufi/Controller/Mail.pm:43 +#: themes/default/templates/partial/files.js.ep:11 +msgid "The data has been successfully imported." +msgstr "The data has been successfully imported." + +#: lib/Lufi/Controller/Mail.pm:73 msgid "The email body can't be empty." -msgstr "" +msgstr "The email body can't be empty." -#: lib/Lufi/Controller/Mail.pm:42 +#: lib/Lufi/Controller/Mail.pm:72 msgid "The email subject can't be empty." -msgstr "" +msgstr "The email subject can't be empty." -#: lib/Lufi/Controller/Files.pm:390 +#: lib/Lufi/Controller/Files.pm:421 msgid "The file has already been deleted" -msgstr "" +msgstr "The file has already been deleted" #: themes/default/templates/about.html.ep:6 -msgid "The files uploaded on a Lufi instance are encrypted before the upload to the server: the administrator of the server can not see the file's content." +msgid "" +"The files uploaded on a Lufi instance are encrypted before the upload to the " +"server: the administrator of the server can not see the file's content." msgstr "" +"The files uploaded on a Lufi instance are encrypted before the upload to the " +"server: the administrator of the server can not see the file's content." #. (join(', ', @bad) -#: lib/Lufi/Controller/Mail.pm:38 +#: lib/Lufi/Controller/Mail.pm:68 msgid "The following email addresses are not valid: %1" -msgstr "" +msgstr "The following email addresses are not valid: %1" -#: themes/default/templates/index.html.ep:101 +#: themes/default/templates/partial/index.js.ep:15 msgid "The link(s) has been copied to your clipboard" -msgstr "" +msgstr "The link(s) has been copied to your clipboard" -#: lib/Lufi/Controller/Mail.pm:66 +#: lib/Lufi/Controller/Mail.pm:97 msgid "The mail has been sent." -msgstr "" +msgstr "The mail has been sent." #: themes/default/templates/about.html.ep:15 -msgid "The original (and only for now) author is Luc Didry. If you want to support him, you can do it via Tipeee or via Liberapay." +msgid "" +"The original (and only for now) author is Luc Didry. If you want to support him, you can do it " +"via Tipeee " +"or via Liberapay." +msgstr "" +"The original (and only for now) author is Luc Didry. If you want to support him, you can do it " +"via Tipeee " +"or via Liberapay." + +#: lib/Lufi/Controller/Files.pm:189 +msgid "" +"The server was unable to find the file record to add your file part to. " +"Please, contact the administrator." msgstr "" +"The server was unable to find the file record to add your file part to. " +"Please, contact the administrator." -#: lib/Lufi/Controller/Files.pm:179 -msgid "The server was unable to find the file record to add your file part to. Please, contact the administrator." +#: lib/Lufi/Controller/Files.pm:248 +msgid "" +"This file has been deactivated by the admins. Contact them to know why." msgstr "" +"This file has been deactivated by the admins. Contact them to know why." #: themes/default/templates/delays.html.ep:10 -msgid "This server sets limitations according to the file size. The expiration delay of your file will be the minimum between what you choose and the following limitations:" +msgid "" +"This server sets limitations according to the file size. The expiration " +"delay of your file will be the minimum between what you choose and the " +"following limitations:" msgstr "" +"This server sets limitations according to the file size. The expiration " +"delay of your file will be the minimum between what you choose and the " +"following limitations:" -#: themes/default/templates/index.html.ep:102 +#: themes/default/templates/partial/index.js.ep:16 msgid "Unable to copy the link(s) to your clipboard" -msgstr "" +msgstr "Unable to copy the link(s) to your clipboard" #. ($short) -#: lib/Lufi/Controller/Files.pm:361 -msgid "Unable to get counter for %1. The file does not exists. It will be removed from your localStorage." +#: lib/Lufi/Controller/Files.pm:392 +msgid "" +"Unable to get counter for %1. The file does not exists. It will be removed " +"from your localStorage." msgstr "" +"Unable to get counter for %1. The file does not exists. It will be removed " +"from your localStorage." #. ($short) -#: lib/Lufi/Controller/Files.pm:351 +#: lib/Lufi/Controller/Files.pm:382 msgid "Unable to get counter for %1. The token is invalid." -msgstr "" +msgstr "Unable to get counter for %1. The token is invalid." #. ($short) -#: lib/Lufi/Controller/Files.pm:371 +#: lib/Lufi/Controller/Files.pm:402 msgid "Unable to get counter for %1. You are not authenticated." -msgstr "" +msgstr "Unable to get counter for %1. You are not authenticated." -#: themes/default/templates/layouts/default.html.ep:60 themes/default/templates/layouts/default.html.ep:72 +#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:61 msgid "Upload files" -msgstr "" +msgstr "Upload files" #: themes/default/templates/files.html.ep:30 msgid "Uploaded at" -msgstr "" +msgstr "Uploaded at" -#: themes/default/templates/index.html.ep:85 +#: themes/default/templates/index.html.ep:103 msgid "Uploaded files" -msgstr "" +msgstr "Uploaded files" -#: themes/default/templates/index.html.ep:114 +#: themes/default/templates/partial/index.js.ep:29 msgid "Websocket communication error" -msgstr "" +msgstr "Websocket communication error" #: themes/default/templates/about.html.ep:3 msgid "What is Lufi?" -msgstr "" +msgstr "What is Lufi?" #: themes/default/templates/about.html.ep:14 msgid "Who wrote this software?" -msgstr "" +msgstr "Who wrote this software?" #: themes/default/templates/about.html.ep:11 -msgid "You can see the list of your files by clicking on the \"My files\" link at the top right of this page." +msgid "" +"You can see the list of your files by clicking on the \"My files\" link at " +"the top right of this page." msgstr "" +"You can see the list of your files by clicking on the \"My files\" link at " +"the top right of this page." + +#: lib/Lufi/Controller/Mail.pm:42 +msgid "You can't add URLs that are not related to this instance." +msgstr "You can't add URLs that are not related to this instance." #: themes/default/templates/about.html.ep:8 -msgid "You don't need to register yourself to upload files but be aware that, for legal reasons, your IP address will be stored when you send a file. Don't panic, this is normally the case for all sites on which you send files." +msgid "" +"You don't need to register yourself to upload files but be aware that, for " +"legal reasons, your IP address will be stored when you send a file. Don't " +"panic, this is normally the case for all sites on which you send files." msgstr "" +"You don't need to register yourself to upload files but be aware that, for " +"legal reasons, your IP address will be stored when you send a file. Don't " +"panic, this is normally the case for all sites on which you send files." -#: themes/default/templates/render.html.ep:53 -msgid "You don't seem to have a key in your URL. You won't be able to decrypt the file. Download canceled." +#: themes/default/templates/partial/render.js.ep:10 +msgid "" +"You don't seem to have a key in your URL. You won't be able to decrypt the " +"file. Download canceled." msgstr "" +"You don't seem to have a key in your URL. You won't be able to decrypt the " +"file. Download canceled." -#: themes/default/templates/render.html.ep:50 -msgid "You have attempted to leave this page. The download will be canceled. Are you sure?" +#: themes/default/templates/partial/render.js.ep:7 +msgid "" +"You have attempted to leave this page. The download will be canceled. Are " +"you sure?" msgstr "" +"You have attempted to leave this page. The download will be canceled. Are " +"you sure?" -#: themes/default/templates/index.html.ep:99 -msgid "You have attempted to leave this page. The upload will be canceled. Are you sure?" +#: themes/default/templates/partial/index.js.ep:13 +msgid "" +"You have attempted to leave this page. The upload will be canceled. Are you " +"sure?" msgstr "" +"You have attempted to leave this page. The upload will be canceled. Are you " +"sure?" -#: themes/default/templates/logout.html.ep:5 +#: themes/default/templates/logout.html.ep:14 msgid "You have been successfully logged out." -msgstr "" +msgstr "You have been successfully logged out." -#: lib/Lufi/Controller/Mail.pm:41 +#: lib/Lufi/Controller/Mail.pm:71 msgid "You must give email addresses." +msgstr "You must give email addresses." + +#: themes/default/templates/index.html.ep:29 +msgid "" +"Your browser has not enough entropy to generate a strong encryption key. " +"Please wait (it's better if you do things on your computer while waiting)." msgstr "" +"Your browser has not enough entropy to generate a strong encryption key. " +"Please wait (it's better if you do things on your computer while waiting)." #. (format_bytes($json->{size}) -#: lib/Lufi/Controller/Files.pm:56 +#: lib/Lufi/Controller/Files.pm:66 msgid "Your file is too big: %1 (maximum size allowed: %2)" -msgstr "" +msgstr "Your file is too big: %1 (maximum size allowed: %2)" -#: lib/Lufi/Controller/Files.pm:273 +#: lib/Lufi/Controller/Files.pm:304 msgid "Your password is not valid. Please refresh the page to retry." -msgstr "" +msgstr "Your password is not valid. Please refresh the page to retry." #. (format_bytes($keys[$i]) #: themes/default/templates/delays.html.ep:20 msgid "between %1 and %2, the file will be kept %3 day(s)." -msgstr "" +msgstr "between %1 and %2, the file will be kept %3 day(s)." #. (format_bytes($keys[$i]) #: themes/default/templates/delays.html.ep:22 msgid "between %1 and %2, the file will be kept forever." -msgstr "" +msgstr "between %1 and %2, the file will be kept forever." -#: themes/default/templates/mail.html.ep:85 +#: themes/default/templates/partial/mail.js.ep:42 msgid "deadline: " -msgstr "" +msgstr "deadline: " #. (format_bytes($keys[$i]) #: themes/default/templates/delays.html.ep:26 msgid "for %1 and more, the file will be kept %2 day(s)" -msgstr "" +msgstr "for %1 and more, the file will be kept %2 day(s)" #. (format_bytes($keys[$i]) #: themes/default/templates/delays.html.ep:28 msgid "for %1 and more, the file will be kept forever." -msgstr "" +msgstr "for %1 and more, the file will be kept forever." #: themes/default/templates/index.html.ep:3 msgid "no time limit" -msgstr "" +msgstr "no time limit" -#: themes/default/templates/index.html.ep:78 +#: themes/default/templates/index.html.ep:96 msgid "or" -msgstr "" +msgstr "or" diff --git a/themes/default/lib/Lufi/I18N/fr.po b/themes/default/lib/Lufi/I18N/fr.po index 4efb92c..d9218af 100644 --- a/themes/default/lib/Lufi/I18N/fr.po +++ b/themes/default/lib/Lufi/I18N/fr.po @@ -2,61 +2,90 @@ # Copyright (C) 2015 Luc Didry # This file is distributed under the same license as the Lufi package. # Luc Didry , 2015. -# +# Luc Didry , 2018. #zanata msgid "" msgstr "" -"Project-Id-Version: \n" +"Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" -"PO-Revision-Date: 2015-10-15 14:00-0400\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2018-10-28 01:59+0000\n" "Language-Team: \n" -"X-Generator: Poedit 1.8.5\n" -"Last-Translator: Luc Didry \n" +"X-Generator: Zanata 4.6.2\n" +"Last-Translator: Copied by Zanata \n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "Language: fr\n" #. ($delay) #. (max_delay) -#: themes/default/templates/index.html.ep:40 themes/default/templates/index.html.ep:49 themes/default/templates/index.html.ep:50 +#: themes/default/templates/index.html.ep:47 themes/default/templates/index.html.ep:56 themes/default/templates/index.html.ep:57 msgid "%1 days" msgstr "%1 jours" +#: themes/default/templates/partial/index.js.ep:26 +msgid "(max size: XXX)" +msgstr "(taille max: XXX)" + #: themes/default/templates/index.html.ep:5 msgid "1 year" msgstr "1 an" -#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:49 +#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:56 msgid "24 hours" msgstr "24 heures" -#: themes/default/templates/mail.html.ep:83 +#: themes/default/templates/partial/mail.js.ep:40 msgid ":" msgstr " :" #: themes/default/templates/about.html.ep:16 -msgid "A thank you with a photo of kitten on Diaspora* or Mastodon is cool too ;-)" -msgstr "Un merci avec une photo de chaton sur Diaspora* ou Mastodon fait aussi l’affaire ;-)" +msgid "" +"A thank you with a photo of kitten on Diaspora* or " +"Mastodon " +"is cool too ;-)" +msgstr "" +"Un merci avec une photo de chaton sur Diaspora* ou " +"Mastodon " +"fait aussi l’affaire ;-)" #: themes/default/templates/render.html.ep:42 msgid "Abort" msgstr "Abandonner" -#: themes/default/templates/layouts/default.html.ep:65 themes/default/templates/layouts/default.html.ep:77 +#: themes/default/templates/layouts/default.html.ep:48 themes/default/templates/layouts/default.html.ep:76 msgid "About" msgstr "À propos" -#: themes/default/templates/index.html.ep:71 +#: themes/default/templates/index.html.ep:88 msgid "Add a password to file(s)" msgstr "Ajouter un mot de passe au(x) fichier(s)" -#: themes/default/templates/about.html.ep:18 -msgid "As Lufi is a free software licensed under of the terms of the AGPLv3, you can install it on you own server. Have a look on the Wiki for the procedure." -msgstr "Comme Lufi est un logiciel libre soumis aux termes de la license AGPLv3, vous pouvez l’installer sur votre propre serveur. Veuillez consulter le Wiki pour voir la procédure." +#: themes/default/templates/mail.html.ep:16 +msgid "" +"Adding URLs not related to this Lufi instance to the mail body or subject is " +"prohibited." +msgstr "" +"L’ajout d’URL non liées à cette instance Lufi au corps ou au sujet du mail " +"est interdit." -#. (stash('f') -#: themes/default/templates/render.html.ep:52 +#: themes/default/templates/about.html.ep:18 +msgid "" +"As Lufi is a free software licensed under of the terms of the AGPLv3, you can " +"install it on you own server. Have a look on the Wiki for the procedure." +msgstr "" +"Comme Lufi est un logiciel libre soumis aux termes de la license AGPLv3, vous " +"pouvez l’installer sur votre propre serveur. Veuillez consulter le Wiki pour " +"voir la procédure." + +#. (stash('nbslices') +#: themes/default/templates/partial/render.js.ep:9 msgid "Asking for file part XX1 of %1" msgstr "Demande de récupération du fragment de fichier XX1 sur %1" @@ -64,15 +93,19 @@ msgstr "Demande de récupération du fragment de fichier XX1 sur %1" msgid "Back to homepage" msgstr "Retour à la page d’accueil" -#: lib/Lufi/Controller/Mail.pm:21 +#: lib/Lufi/Controller/Mail.pm:25 msgid "Bad CSRF token!" msgstr "Mauvais jeton CSRF !" -#: themes/default/templates/render.html.ep:48 +#: lib/Lufi/Controller/Auth.pm:22 lib/Lufi/Controller/Auth.pm:39 +msgid "Bad CSRF token." +msgstr "Jeton CSRF invalide." + +#: themes/default/templates/partial/render.js.ep:5 msgid "Click here to refresh the page and restart the download." msgstr "Cliquez ici pour rafraîchir la page et redémarrer le téléchargement." -#: themes/default/templates/index.html.ep:80 +#: themes/default/templates/index.html.ep:98 msgid "Click to open the file browser" msgstr "Cliquez pour ouvrir le navigateur de fichiers" @@ -80,35 +113,39 @@ msgstr "Cliquez pour ouvrir le navigateur de fichiers" msgid "Close" msgstr "Fermer" -#: themes/default/templates/mail.html.ep:22 +#: themes/default/templates/mail.html.ep:23 msgid "Comma-separated email addresses" msgstr "Adresses mails séparées par des virgules" -#: themes/default/templates/index.html.ep:100 +#: themes/default/templates/partial/index.js.ep:14 msgid "Copy all links to clipboard" msgstr "Copier tous les liens dans le presse-papier" -#: themes/default/templates/index.html.ep:103 +#: themes/default/templates/partial/index.js.ep:17 msgid "Copy to clipboard" msgstr "Copier dans le presse-papier" -#: lib/Lufi/Controller/Files.pm:429 +#: lib/Lufi/Controller/Files.pm:460 msgid "Could not delete the file. You are not authenticated." msgstr "Impossible de supprimer le fichier. Vous n’êtes pas connecté·e." -#: lib/Lufi/Controller/Files.pm:411 +#: lib/Lufi/Controller/Files.pm:442 msgid "Could not find the file. Are you sure of the URL and the token?" -msgstr "Impossible de retrouver le fichier. Êtes-vous sûr(e) que l’URL et le jeton sont les bons ?" +msgstr "" +"Impossible de retrouver le fichier. Êtes-vous sûr(e) que l’URL et le jeton " +"sont les bons ?" -#: lib/Lufi/Controller/Files.pm:322 +#: lib/Lufi/Controller/Files.pm:353 msgid "Could not find the file. Are you sure of the URL?" -msgstr "Impossible de retrouver le fichier. Êtes-vous sûr(e) que l’URL est la bonne ?" +msgstr "" +"Impossible de retrouver le fichier. Êtes-vous sûr(e) que l’URL est la " +"bonne ?" #: themes/default/templates/files.html.ep:28 msgid "Counter" msgstr "Compteur" -#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:64 +#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:81 msgid "Delete at first download?" msgstr "Supprimer après le premier téléchargement ?" @@ -116,63 +153,79 @@ msgstr "Supprimer après le premier téléchargement ?" msgid "Delete selected files" msgstr "Supprimer les fichiers sélectionnés" -#: themes/default/templates/files.html.ep:32 themes/default/templates/index.html.ep:104 +#: themes/default/templates/files.html.ep:32 themes/default/templates/partial/index.js.ep:18 msgid "Deletion link" msgstr "Lien de suppression" #: themes/default/templates/delays.html.ep:8 -msgid "Don't worry: if a user begins to download the file before the expiration and the download ends after the expiration, he will be able to get the file." -msgstr "Ne vous inquiétez pas : si un utilisateur commence à télécharger le fichier avant son expiration et que le téléchargement se termine après l’expiration, l’utilisateur pourra quand même récupérer le fichier." +msgid "" +"Don't worry: if a user begins to download the file before the expiration and " +"the download ends after the expiration, he will be able to get the file." +msgstr "" +"Ne vous inquiétez pas : si un utilisateur commence à télécharger le fichier " +"avant son expiration et que le téléchargement se termine après l’expiration, " +"l’utilisateur pourra quand même récupérer le fichier." -#: themes/default/templates/index.html.ep:106 themes/default/templates/render.html.ep:28 +#: themes/default/templates/partial/index.js.ep:20 themes/default/templates/render.html.ep:28 msgid "Download" msgstr "Télécharger" -#: themes/default/templates/render.html.ep:47 +#: themes/default/templates/partial/render.js.ep:4 msgid "Download aborted." msgstr "Téléchargement abandonné." -#: themes/default/templates/files.html.ep:27 themes/default/templates/index.html.ep:105 +#: themes/default/templates/files.html.ep:27 themes/default/templates/partial/index.js.ep:19 msgid "Download link" msgstr "Lien de téléchargement" #: themes/default/templates/about.html.ep:10 -msgid "Drag and drop files in the appropriate area or use the traditional way to send files and the files will be chunked, encrypted and sent to the server. You will get two links per file: a download link, that you give to the people you want to share the file with and a deletion link, allowing you to delete the file whenever you want." -msgstr "Faites glisser des fichiers dans la zone prévue à cet effet ou sélectionnez un fichier de façon classique et les fichiers seront découpés en morceaux, chiffrés et envoyés au serveur. Vous récupérerez deux liens par fichier : un lien de téléchargement et un lien pour supprimer le fichier quand vous le souhaitez." +msgid "" +"Drag and drop files in the appropriate area or use the traditional way to " +"send files and the files will be chunked, encrypted and sent to the server. " +"You will get two links per file: a download link, that you give to the " +"people you want to share the file with and a deletion link, allowing you to " +"delete the file whenever you want." +msgstr "" +"Faites glisser des fichiers dans la zone prévue à cet effet ou sélectionnez " +"un fichier de façon classique et les fichiers seront découpés en morceaux, " +"chiffrés et envoyés au serveur. Vous récupérerez deux liens par fichier : un " +"lien de téléchargement et un lien pour supprimer le fichier quand vous le " +"souhaitez." -#: themes/default/templates/index.html.ep:77 +#: themes/default/templates/index.html.ep:94 msgid "Drop files here" msgstr "Glissez vos fichiers ici" -#: themes/default/templates/mail.html.ep:38 +#: themes/default/templates/mail.html.ep:39 msgid "Email body" msgstr "Corps du mail" -#: themes/default/templates/mail.html.ep:30 +#: themes/default/templates/mail.html.ep:31 msgid "Email subject" msgstr "Sujet du mail" -#: themes/default/templates/mail.html.ep:24 themes/default/templates/mail.html.ep:26 +#: themes/default/templates/mail.html.ep:25 themes/default/templates/mail.html.ep:27 msgid "Emails" msgstr "Mails" -#: themes/default/templates/index.html.ep:107 +#: themes/default/templates/partial/index.js.ep:21 msgid "Encrypting part XX1 of XX2" msgstr "Chiffrement du fragment XX1 sur XX2" -#: lib/Lufi/Controller/Files.pm:225 +#: lib/Lufi/Controller/Files.pm:242 msgid "Error: the file existed but was deleted." msgstr "Erreur : le fichier existait mais a été supprimé" -#: lib/Lufi/Controller/Files.pm:291 +#: lib/Lufi/Controller/Files.pm:322 msgid "Error: the file has not been sent entirely." msgstr "Erreur : le fichier n’a pas été envoyé dans son intégralité" -#: lib/Lufi/Controller/Files.pm:301 +#: lib/Lufi/Controller/Files.pm:332 msgid "Error: unable to find the file. Are you sure of your URL?" -msgstr "Erreur : impossible de retrouver le fichier. Êtes-vous sûr(e) de l’URL ?" +msgstr "" +"Erreur : impossible de retrouver le fichier. Êtes-vous sûr(e) de l’URL ?" -#: themes/default/templates/index.html.ep:108 +#: themes/default/templates/partial/index.js.ep:22 msgid "Expiration:" msgstr "Expiration :" @@ -184,7 +237,7 @@ msgstr "Expire le" msgid "Export localStorage data" msgstr "Exporter les données localStorage" -#: lib/Lufi/Controller/Files.pm:393 +#: lib/Lufi/Controller/Files.pm:424 msgid "File deleted" msgstr "Fichier supprimé" @@ -192,29 +245,44 @@ msgstr "Fichier supprimé" msgid "File name" msgstr "Nom du fichier" -#: themes/default/templates/render.html.ep:51 +#: themes/default/templates/index.html.ep:71 +msgid "Files deleted at first download" +msgstr "Fichiers supprimés au premier téléchargement" + +#: themes/default/templates/partial/render.js.ep:8 msgid "Get the file" msgstr "Récupérer le fichier" #: themes/default/templates/about.html.ep:19 -msgid "Get the source code on the official repository or on its Github mirror" -msgstr "Récupérez le code source sur le dépôt officiel ou sur son miroir Github." +msgid "" +"Get the source code on the official repository or on its Github mirror" +msgstr "" +"Récupérez le code source sur le dépôt officiel ou sur son miroir Github." -#: themes/default/templates/mail.html.ep:78 +#: themes/default/templates/partial/mail.js.ep:35 msgid "Hello,\\n\\nHere's some files I want to share with you:\\n" -msgstr "Bonjour,\\n\\nVoici quelques fichiers que je souhaite partager avec toi :\\n" +msgstr "" +"Bonjour,\\n\\nVoici quelques fichiers que je souhaite partager avec toi :\\n" -#: themes/default/templates/mail.html.ep:34 +#: themes/default/templates/mail.html.ep:35 msgid "Here's some files" msgstr "Voici quelques fichiers" -#: themes/default/templates/index.html.ep:110 +#: themes/default/templates/partial/index.js.ep:24 msgid "Hit Enter, then Ctrl+C to copy all the download links" -msgstr "Appuyez sur la touche Entrée puis faites Ctrl+C pour copier tous les liens de téléchargement" +msgstr "" +"Appuyez sur la touche Entrée puis faites Ctrl+C pour copier tous les liens " +"de téléchargement" -#: themes/default/templates/index.html.ep:109 +#: themes/default/templates/partial/index.js.ep:23 msgid "Hit Enter, then Ctrl+C to copy the download link" -msgstr "Appuyez sur la touche Entrée puis faites Ctrl+C pour copier le lien de téléchargement" +msgstr "" +"Appuyez sur la touche Entrée puis faites Ctrl+C pour copier le lien de " +"téléchargement" #: themes/default/templates/about.html.ep:9 msgid "How does it work?" @@ -233,14 +301,18 @@ msgid "If you choose a delay, the file will be deleted after that delay." msgstr "Si vous choisissez un délai, le fichier sera supprimé après ce délai." #: themes/default/templates/mail.html.ep:15 -msgid "If you send the mail from this server, the links will be sent to the server, which may lower your privacy protection." -msgstr "Si vous envoyez le mail depuis ce serveur, les liens seront envoyés au serveur, ce qui peut diminuer la protection de la confidentialité." +msgid "" +"If you send the mail from this server, the links will be sent to the server, " +"which may lower your privacy protection." +msgstr "" +"Si vous envoyez le mail depuis ce serveur, les liens seront envoyés au " +"serveur, ce qui peut diminuer la protection de la confidentialité." #: themes/default/templates/files.html.ep:14 msgid "Import localStorage data" msgstr "Importer des données localStorage" -#: themes/default/templates/index.html.ep:37 +#: themes/default/templates/index.html.ep:44 msgid "Important: more information on delays" msgstr "Important : plus d’informations sur les délais" @@ -248,19 +320,26 @@ msgstr "Important : plus d’informations sur les délais" msgid "Information about delays" msgstr "Information sur les délais" -#: themes/default/templates/render.html.ep:49 -msgid "It seems that the key in your URL is incorrect. Please, verify your URL." -msgstr "Il semble que la clé dans votre URL soit incorrecte. Veuillez vérifier votre URL." +#: themes/default/templates/partial/render.js.ep:6 +msgid "" +"It seems that the key in your URL is incorrect. Please, verify your URL." +msgstr "" +"Il semble que la clé dans votre URL soit incorrecte. Veuillez vérifier votre " +"URL." #: themes/default/templates/index.html.ep:12 msgid "Javascript is disabled. You won't be able to use Lufi." msgstr "Javascript est désactivé. Lufi ne fonctionnera pas." +#: themes/default/templates/layouts/default.html.ep:40 themes/default/templates/layouts/default.html.ep:68 +msgid "Language" +msgstr "Langue" + #: themes/default/templates/login.html.ep:15 msgid "Login" msgstr "Identifiant" -#: themes/default/templates/layouts/default.html.ep:67 themes/default/templates/layouts/default.html.ep:79 +#: themes/default/templates/layouts/default.html.ep:53 themes/default/templates/layouts/default.html.ep:78 msgid "Logout" msgstr "Déconnexion" @@ -270,26 +349,34 @@ msgstr "Lufi est un logiciel libre d’hébergement de fichiers." #: themes/default/templates/files.html.ep:33 msgid "Mail" -msgstr "" +msgstr "Mail" -#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:61 themes/default/templates/layouts/default.html.ep:73 +#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:62 msgid "My files" msgstr "Mes fichiers" #. (format_bytes($json->{size}) -#: lib/Lufi/Controller/Files.pm:69 +#: lib/Lufi/Controller/Files.pm:79 msgid "No enough space available on the server for this file (size: %1)." -msgstr "Espace disque insuffisant sur le serveur pour ce fichier (taille du fichier : %1)." +msgstr "" +"Espace disque insuffisant sur le serveur pour ce fichier (taille du fichier :" +" %1)." -#: themes/default/templates/files.html.ep:45 themes/default/templates/index.html.ep:112 +#: themes/default/templates/partial/files.js.ep:10 themes/default/templates/partial/index.js.ep:27 msgid "No expiration delay" msgstr "Pas de délai d’expiration" #: themes/default/templates/files.html.ep:8 -msgid "Only the files sent with this browser will be listed here. This list is stored in localStorage: if you delete your localStorage data, you'll lose this list." -msgstr "Seuls les fichiers envoyés avec ce navigateur web sont listés ici. Les informations sont stockées en localStorage : si vous supprimez vos données localStorage, vous perdrez ces informations." +msgid "" +"Only the files sent with this browser will be listed here. This list is " +"stored in localStorage: if you delete your localStorage data, you'll lose " +"this list." +msgstr "" +"Seuls les fichiers envoyés avec ce navigateur web sont listés ici. Les " +"informations sont stockées en localStorage : si vous supprimez vos données " +"localStorage, vous perdrez ces informations." -#: themes/default/templates/index.html.ep:70 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 +#: themes/default/templates/index.html.ep:87 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 msgid "Password" msgstr "Mot de passe" @@ -299,12 +386,21 @@ msgid "Please contact the administrator: %1" msgstr "Veuillez contacter l’administrateur : %1" #: themes/default/templates/render.html.ep:33 -msgid "Please wait while we are getting your file. We first need to download and decrypt all parts before you can get it." -msgstr "Veuillez patientez pendant la récupération de votre fichier. Nous devons d’abord récupérer et déchiffrer tous les fragments avant que vous puissiez le télécharger." +msgid "" +"Please wait while we are getting your file. We first need to download and " +"decrypt all parts before you can get it." +msgstr "" +"Veuillez patientez pendant la récupération de votre fichier. Nous devons " +"d’abord récupérer et déchiffrer tous les fragments avant que vous puissiez " +"le télécharger." -#: lib/Lufi.pm:191 -msgid "Please, check your credentials: unable to authenticate." -msgstr "Veuillez vérifier vos identifiants : impossible de vous authentifier." +#: lib/Lufi/Controller/Auth.pm:28 +msgid "" +"Please, check your credentials or your right to access this service: unable " +"to authenticate." +msgstr "" +"Veuillez vérifier vos identifiants ou votre droit d’accès à ce service : " +"impossible de vous authentifier." #: themes/default/templates/about.html.ep:5 msgid "Privacy" @@ -314,116 +410,174 @@ msgstr "Confidentialité" msgid "Purge expired files from localStorage" msgstr "Supprimer du localStorage les fichiers expirés" +#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:59 +msgid "Report file" +msgstr "Signaler un fichier" + #: themes/default/templates/files.html.ep:9 -msgid "Rows in red mean that the files have expired and are no longer available." -msgstr "Les lignes en rouge indiquent que le fichier a expiré et n’est plus disponible." +msgid "" +"Rows in red mean that the files have expired and are no longer available." +msgstr "" +"Les lignes en rouge indiquent que le fichier a expiré et n’est plus " +"disponible." -#: themes/default/templates/index.html.ep:111 +#: themes/default/templates/partial/index.js.ep:25 msgid "Send all links by email" msgstr "Envoyer tous les liens par mail" -#: themes/default/templates/mail.html.ep:45 +#: themes/default/templates/mail.html.ep:46 msgid "Send with this server" msgstr "Envoyer avec ce serveur" -#: themes/default/templates/mail.html.ep:46 +#: themes/default/templates/mail.html.ep:47 msgid "Send with your own mail software" msgstr "Envoyer avec votre propre logiciel de mail" -#: themes/default/templates/index.html.ep:113 -msgid "Sending part XX1 of XX2. Please, be patient, the progress bar can take a while to move." -msgstr "Envoi du fragment XX1 sur XX2. Veuillez patienter, la barre de progression peut mettre du temps avant d’avancer." +#: themes/default/templates/partial/index.js.ep:28 +msgid "" +"Sending part XX1 of XX2. Please, be patient, the progress bar can take a " +"while to move." +msgstr "" +"Envoi du fragment XX1 sur XX2. Veuillez patienter, la barre de progression " +"peut mettre du temps avant d’avancer." #. (url_for('/') -#: themes/default/templates/mail.html.ep:91 +#: themes/default/templates/partial/mail.js.ep:48 msgid "Share your files in total privacy on %1" msgstr "Partagez vos fichiers en toute confidentialité sur %1" -#: themes/default/templates/layouts/default.html.ep:63 themes/default/templates/layouts/default.html.ep:75 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8 +#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:64 themes/default/templates/login.html.ep:27 themes/default/templates/logout.html.ep:17 msgid "Signin" msgstr "Connexion" -#: lib/Lufi.pm:194 -msgid "Sorry mate, you are not authorised to use that service. Contact your sysadmin if you think there's a glitch in the matrix." -msgstr "Désolé, vous n’êtes pas autorisé à utiliser ce service. Contactez votre administrateur si vous pensez qu’il s’agit d’une erreur." - -#: themes/default/templates/index.html.ep:30 +#: themes/default/templates/index.html.ep:37 msgid "Sorry, the uploading is currently disabled. Please try again later." -msgstr "Désolé, l’envoi de fichier est actuellement désactivé. Veuillez réessayer plus tard." +msgstr "" +"Désolé, l’envoi de fichier est actuellement désactivé. Veuillez réessayer " +"plus tard." -#: lib/Lufi/Controller/Files.pm:43 +#: lib/Lufi/Controller/Files.pm:53 msgid "Sorry, uploading is disabled." msgstr "Désolé, l’envoi de fichier est désactivé." #: themes/default/templates/about.html.ep:7 -msgid "The administrator can only see the file's name, its size and its mimetype (what kind of file it is: video, text, etc.)." -msgstr "L’administrateur ne peut voir que le nom du fichier, sa taille et son type mime (son type de fichier : vidéo, texte, etc.)." +msgid "" +"The administrator can only see the file's name, its size and its mimetype " +"(what kind of file it is: video, text, etc.)." +msgstr "" +"L’administrateur ne peut voir que le nom du fichier, sa taille et son type " +"mime (son type de fichier : vidéo, texte, etc.)." + +#: lib/Lufi/Controller/Mail.pm:53 +msgid "" +"The body of the mail must contain at least one URL pointing to a file hosted " +"on this instance." +msgstr "" +"Le corps du mail doit contenir au moins une URL pointant vers un fichier " +"hébergé sur cette instance." -#: themes/default/templates/files.html.ep:46 +#: themes/default/templates/partial/files.js.ep:11 msgid "The data has been successfully imported." msgstr "Les données ont été importées avec succès." -#: lib/Lufi/Controller/Mail.pm:43 +#: lib/Lufi/Controller/Mail.pm:73 msgid "The email body can't be empty." msgstr "Le corps du mail ne peut être vide." -#: lib/Lufi/Controller/Mail.pm:42 +#: lib/Lufi/Controller/Mail.pm:72 msgid "The email subject can't be empty." msgstr "Le sujet du mail ne peut être vide." -#: lib/Lufi/Controller/Files.pm:390 +#: lib/Lufi/Controller/Files.pm:421 msgid "The file has already been deleted" msgstr "Le fichier a déjà été supprimé" #: themes/default/templates/about.html.ep:6 -msgid "The files uploaded on a Lufi instance are encrypted before the upload to the server: the administrator of the server can not see the file's content." -msgstr "Les fichiers envoyés sur une instance de Lufi sont chiffrés avant l’envoi au serveur : l’administrateur du serveur ne peut pas voir le contenu de vos fichiers." +msgid "" +"The files uploaded on a Lufi instance are encrypted before the upload to the " +"server: the administrator of the server can not see the file's content." +msgstr "" +"Les fichiers envoyés sur une instance de Lufi sont chiffrés avant l’envoi au " +"serveur : l’administrateur du serveur ne peut pas voir le contenu de vos " +"fichiers." #. (join(', ', @bad) -#: lib/Lufi/Controller/Mail.pm:38 +#: lib/Lufi/Controller/Mail.pm:68 msgid "The following email addresses are not valid: %1" msgstr "Les adresses mail suivantes ne sont pas valides : %1" -#: themes/default/templates/index.html.ep:101 +#: themes/default/templates/partial/index.js.ep:15 msgid "The link(s) has been copied to your clipboard" msgstr "Le(s) lien(s) a/ont été copié dans votre presse-papier" -#: lib/Lufi/Controller/Mail.pm:66 +#: lib/Lufi/Controller/Mail.pm:97 msgid "The mail has been sent." msgstr "Le mail a été envoyé." #: themes/default/templates/about.html.ep:15 -msgid "The original (and only for now) author is Luc Didry. If you want to support him, you can do it via Tipeee or via Liberapay." -msgstr "L’auteur originel (et pour l’instant, le seul) est Luc Didry. Si vous avez envie de le supporter, vous pouvez le faire via Tipeee ou via Liberapay." +msgid "" +"The original (and only for now) author is Luc Didry. If you want to support him, you can do it " +"via Tipeee " +"or via Liberapay." +msgstr "" +"L’auteur originel (et pour l’instant, le seul) est Luc Didry. Si vous avez envie de le " +"supporter, vous pouvez le faire via Tipeee ou via Liberapay." -#: lib/Lufi/Controller/Files.pm:179 -msgid "The server was unable to find the file record to add your file part to. Please, contact the administrator." -msgstr "Le serveur a été incapable de retrouver l’enregistrement du fichier auquel ajouter votre fragment de fichier. Veuillez contacter l’administrateur." +#: lib/Lufi/Controller/Files.pm:189 +msgid "" +"The server was unable to find the file record to add your file part to. " +"Please, contact the administrator." +msgstr "" +"Le serveur a été incapable de retrouver l’enregistrement du fichier auquel " +"ajouter votre fragment de fichier. Veuillez contacter l’administrateur." + +#: lib/Lufi/Controller/Files.pm:248 +msgid "" +"This file has been deactivated by the admins. Contact them to know why." +msgstr "" +"The fichier a été désactivé par les administrateurs ou administratrices. " +"Veuillez les contacter pour savoir pourquoi." #: themes/default/templates/delays.html.ep:10 -msgid "This server sets limitations according to the file size. The expiration delay of your file will be the minimum between what you choose and the following limitations:" -msgstr "Ce serveur impose des limitations selon la taille des fichiers. Le délai d’expiration de votre fichier sera le minimum entre ce que vous avez choisi et les limites suivantes :" +msgid "" +"This server sets limitations according to the file size. The expiration " +"delay of your file will be the minimum between what you choose and the " +"following limitations:" +msgstr "" +"Ce serveur impose des limitations selon la taille des fichiers. Le délai " +"d’expiration de votre fichier sera le minimum entre ce que vous avez choisi " +"et les limites suivantes :" -#: themes/default/templates/index.html.ep:102 +#: themes/default/templates/partial/index.js.ep:16 msgid "Unable to copy the link(s) to your clipboard" msgstr "Impossible de copier le(s) lien(s) dans votre presse-papier" #. ($short) -#: lib/Lufi/Controller/Files.pm:361 -msgid "Unable to get counter for %1. The file does not exists. It will be removed from your localStorage." -msgstr "Impossible de récupérer le compteur pour %1. Le fichier n’existe pas. Il va être supprimé de votre localStorage." +#: lib/Lufi/Controller/Files.pm:392 +msgid "" +"Unable to get counter for %1. The file does not exists. It will be removed " +"from your localStorage." +msgstr "" +"Impossible de récupérer le compteur pour %1. Le fichier n’existe pas. Il va " +"être supprimé de votre localStorage." #. ($short) -#: lib/Lufi/Controller/Files.pm:351 +#: lib/Lufi/Controller/Files.pm:382 msgid "Unable to get counter for %1. The token is invalid." msgstr "Impossible de récupérer le compteur pour %1. Le jeton est invalide." #. ($short) -#: lib/Lufi/Controller/Files.pm:371 +#: lib/Lufi/Controller/Files.pm:402 msgid "Unable to get counter for %1. You are not authenticated." -msgstr "Impossible de récupérer le compteur pour %1. Vous n’êtes pas connecté·e." +msgstr "" +"Impossible de récupérer le compteur pour %1. Vous n’êtes pas connecté·e." -#: themes/default/templates/layouts/default.html.ep:60 themes/default/templates/layouts/default.html.ep:72 +#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:61 msgid "Upload files" msgstr "Envoyer des fichiers" @@ -431,11 +585,11 @@ msgstr "Envoyer des fichiers" msgid "Uploaded at" msgstr "Envoyé le" -#: themes/default/templates/index.html.ep:85 +#: themes/default/templates/index.html.ep:103 msgid "Uploaded files" msgstr "Fichiers envoyés" -#: themes/default/templates/index.html.ep:114 +#: themes/default/templates/partial/index.js.ep:29 msgid "Websocket communication error" msgstr "Erreur de communication WebSocket" @@ -448,41 +602,78 @@ msgid "Who wrote this software?" msgstr "Qui a écrit ce logiciel ?" #: themes/default/templates/about.html.ep:11 -msgid "You can see the list of your files by clicking on the \"My files\" link at the top right of this page." -msgstr "Vous pouvez voir la liste de vos fichiers en cliquant sur le lien « Mes fichiers » en haut à droite de cette page." +msgid "" +"You can see the list of your files by clicking on the \"My files\" link at " +"the top right of this page." +msgstr "" +"Vous pouvez voir la liste de vos fichiers en cliquant sur le lien « Mes " +"fichiers » en haut à droite de cette page." + +#: lib/Lufi/Controller/Mail.pm:42 +msgid "You can't add URLs that are not related to this instance." +msgstr "Vous ne pouvez pas ajouter d’URL non relatives à cette instance." #: themes/default/templates/about.html.ep:8 -msgid "You don't need to register yourself to upload files but be aware that, for legal reasons, your IP address will be stored when you send a file. Don't panic, this is normally the case for all sites on which you send files." -msgstr "Vous n’avez pas besoin de vous enregistrer pour envoyer des fichiers mais notez que, pour des raisons légales, votre adresse IP sera enregistrée quand vous envoyez un fichier. Ne paniquez pas, c’est normalement le cas pour tous les sites où vous envoyez des fichiers." +msgid "" +"You don't need to register yourself to upload files but be aware that, for " +"legal reasons, your IP address will be stored when you send a file. Don't " +"panic, this is normally the case for all sites on which you send files." +msgstr "" +"Vous n’avez pas besoin de vous enregistrer pour envoyer des fichiers mais " +"notez que, pour des raisons légales, votre adresse IP sera enregistrée quand " +"vous envoyez un fichier. Ne paniquez pas, c’est normalement le cas pour tous " +"les sites où vous envoyez des fichiers." -#: themes/default/templates/render.html.ep:53 -msgid "You don't seem to have a key in your URL. You won't be able to decrypt the file. Download canceled." -msgstr "Il semble que vous n’ayez pas de clé dans votre URL. Vous ne serez pas capable de déchiffrer le fichier. Téléchargement annulé." +#: themes/default/templates/partial/render.js.ep:10 +msgid "" +"You don't seem to have a key in your URL. You won't be able to decrypt the " +"file. Download canceled." +msgstr "" +"Il semble que vous n’ayez pas de clé dans votre URL. Vous ne serez pas " +"capable de déchiffrer le fichier. Téléchargement annulé." -#: themes/default/templates/render.html.ep:50 -msgid "You have attempted to leave this page. The download will be canceled. Are you sure?" -msgstr "Vous essayez de quitter la page. Le téléchargement sera annulé. Êtes-vous sûr(e) ?" +#: themes/default/templates/partial/render.js.ep:7 +msgid "" +"You have attempted to leave this page. The download will be canceled. Are " +"you sure?" +msgstr "" +"Vous essayez de quitter la page. Le téléchargement sera annulé. Êtes-vous " +"sûr(e) ?" -#: themes/default/templates/index.html.ep:99 -msgid "You have attempted to leave this page. The upload will be canceled. Are you sure?" -msgstr "Vous essayez de quitter la page. L’envoi sera annulé. Êtes-vous sûr(e) ?" +#: themes/default/templates/partial/index.js.ep:13 +msgid "" +"You have attempted to leave this page. The upload will be canceled. Are you " +"sure?" +msgstr "" +"Vous essayez de quitter la page. L’envoi sera annulé. Êtes-vous sûr(e) ?" -#: themes/default/templates/logout.html.ep:5 +#: themes/default/templates/logout.html.ep:14 msgid "You have been successfully logged out." msgstr "Vous avez été déconnecté·e avec succès." -#: lib/Lufi/Controller/Mail.pm:41 +#: lib/Lufi/Controller/Mail.pm:71 msgid "You must give email addresses." msgstr "Vous devez envoyer des adresses mail." +#: themes/default/templates/index.html.ep:29 +msgid "" +"Your browser has not enough entropy to generate a strong encryption key. " +"Please wait (it's better if you do things on your computer while waiting)." +msgstr "" +"Votre navigateur n’a pas assez d’entropie pour générer une clé de " +"chiffrement forte. Veuillez attendre (il est préférable que vous fassiez " +"quelque chose sur votre ordinateur en attendant)." + #. (format_bytes($json->{size}) -#: lib/Lufi/Controller/Files.pm:56 +#: lib/Lufi/Controller/Files.pm:66 msgid "Your file is too big: %1 (maximum size allowed: %2)" -msgstr "Votre fichier est trop volumineux : %1 (la taille maximum autorisée est %2)" +msgstr "" +"Votre fichier est trop volumineux : %1 (la taille maximum autorisée est %2)" -#: lib/Lufi/Controller/Files.pm:273 +#: lib/Lufi/Controller/Files.pm:304 msgid "Your password is not valid. Please refresh the page to retry." -msgstr "Votre mot de passe est invalide. Veuillez rafraîchir la page pour réessayer." +msgstr "" +"Votre mot de passe est invalide. Veuillez rafraîchir la page pour réessayer." #. (format_bytes($keys[$i]) #: themes/default/templates/delays.html.ep:20 @@ -494,7 +685,7 @@ msgstr "entre %1 et %2, le fichier sera conservé %3 jour(s) ;" msgid "between %1 and %2, the file will be kept forever." msgstr "entre %1 et %2, le fichier sera conservé indéfiniment ;" -#: themes/default/templates/mail.html.ep:85 +#: themes/default/templates/partial/mail.js.ep:42 msgid "deadline: " msgstr "dernier délai pour télécharger : " @@ -510,8 +701,8 @@ msgstr "pour %1 et plus, le fichier sera conservé indéfiniment." #: themes/default/templates/index.html.ep:3 msgid "no time limit" -msgstr "Pas de délai d'expiration" +msgstr "Pas de délai d’expiration" -#: themes/default/templates/index.html.ep:78 +#: themes/default/templates/index.html.ep:96 msgid "or" msgstr "ou" diff --git a/themes/default/lib/Lufi/I18N/fr_FR.po b/themes/default/lib/Lufi/I18N/fr_FR.po new file mode 100644 index 0000000..256490d --- /dev/null +++ b/themes/default/lib/Lufi/I18N/fr_FR.po @@ -0,0 +1,708 @@ +# Lufi FR translation +# Copyright (C) 2015 Luc Didry +# This file is distributed under the same license as the Lufi package. +# Luc Didry , 2015. +# Luc Didry , 2018. #zanata +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2018-10-28 01:58+0000\n" +"Language-Team: \n" +"X-Generator: Zanata 4.6.2\n" +"Last-Translator: Copied by Zanata \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"Language: fr_FR\n" + +#. ($delay) +#. (max_delay) +#: themes/default/templates/index.html.ep:47 themes/default/templates/index.html.ep:56 themes/default/templates/index.html.ep:57 +msgid "%1 days" +msgstr "%1 jours" + +#: themes/default/templates/partial/index.js.ep:26 +msgid "(max size: XXX)" +msgstr "(taille max: XXX)" + +#: themes/default/templates/index.html.ep:5 +msgid "1 year" +msgstr "1 an" + +#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:56 +msgid "24 hours" +msgstr "24 heures" + +#: themes/default/templates/partial/mail.js.ep:40 +msgid ":" +msgstr " :" + +#: themes/default/templates/about.html.ep:16 +msgid "" +"A thank you with a photo of kitten on Diaspora* or " +"Mastodon " +"is cool too ;-)" +msgstr "" +"Un merci avec une photo de chaton sur Diaspora* ou " +"Mastodon " +"fait aussi l’affaire ;-)" + +#: themes/default/templates/render.html.ep:42 +msgid "Abort" +msgstr "Abandonner" + +#: themes/default/templates/layouts/default.html.ep:48 themes/default/templates/layouts/default.html.ep:76 +msgid "About" +msgstr "À propos" + +#: themes/default/templates/index.html.ep:88 +msgid "Add a password to file(s)" +msgstr "Ajouter un mot de passe au(x) fichier(s)" + +#: themes/default/templates/mail.html.ep:16 +msgid "" +"Adding URLs not related to this Lufi instance to the mail body or subject is " +"prohibited." +msgstr "" +"L’ajout d’URL non liées à cette instance Lufi au corps ou au sujet du mail " +"est interdit." + +#: themes/default/templates/about.html.ep:18 +msgid "" +"As Lufi is a free software licensed under of the terms of the AGPLv3, you can " +"install it on you own server. Have a look on the Wiki for the procedure." +msgstr "" +"Comme Lufi est un logiciel libre soumis aux termes de la license AGPLv3, vous " +"pouvez l’installer sur votre propre serveur. Veuillez consulter le Wiki pour " +"voir la procédure." + +#. (stash('nbslices') +#: themes/default/templates/partial/render.js.ep:9 +msgid "Asking for file part XX1 of %1" +msgstr "Demande de récupération du fragment de fichier XX1 sur %1" + +#: themes/default/templates/about.html.ep:21 +msgid "Back to homepage" +msgstr "Retour à la page d’accueil" + +#: lib/Lufi/Controller/Mail.pm:25 +msgid "Bad CSRF token!" +msgstr "Mauvais jeton CSRF !" + +#: lib/Lufi/Controller/Auth.pm:22 lib/Lufi/Controller/Auth.pm:39 +msgid "Bad CSRF token." +msgstr "Jeton CSRF invalide." + +#: themes/default/templates/partial/render.js.ep:5 +msgid "Click here to refresh the page and restart the download." +msgstr "Cliquez ici pour rafraîchir la page et redémarrer le téléchargement." + +#: themes/default/templates/index.html.ep:98 +msgid "Click to open the file browser" +msgstr "Cliquez pour ouvrir le navigateur de fichiers" + +#: themes/default/templates/delays.html.ep:38 +msgid "Close" +msgstr "Fermer" + +#: themes/default/templates/mail.html.ep:23 +msgid "Comma-separated email addresses" +msgstr "Adresses mails séparées par des virgules" + +#: themes/default/templates/partial/index.js.ep:14 +msgid "Copy all links to clipboard" +msgstr "Copier tous les liens dans le presse-papier" + +#: themes/default/templates/partial/index.js.ep:17 +msgid "Copy to clipboard" +msgstr "Copier dans le presse-papier" + +#: lib/Lufi/Controller/Files.pm:460 +msgid "Could not delete the file. You are not authenticated." +msgstr "Impossible de supprimer le fichier. Vous n’êtes pas connecté·e." + +#: lib/Lufi/Controller/Files.pm:442 +msgid "Could not find the file. Are you sure of the URL and the token?" +msgstr "" +"Impossible de retrouver le fichier. Êtes-vous sûr(e) que l’URL et le jeton " +"sont les bons ?" + +#: lib/Lufi/Controller/Files.pm:353 +msgid "Could not find the file. Are you sure of the URL?" +msgstr "" +"Impossible de retrouver le fichier. Êtes-vous sûr(e) que l’URL est la " +"bonne ?" + +#: themes/default/templates/files.html.ep:28 +msgid "Counter" +msgstr "Compteur" + +#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:81 +msgid "Delete at first download?" +msgstr "Supprimer après le premier téléchargement ?" + +#: themes/default/templates/files.html.ep:18 +msgid "Delete selected files" +msgstr "Supprimer les fichiers sélectionnés" + +#: themes/default/templates/files.html.ep:32 themes/default/templates/partial/index.js.ep:18 +msgid "Deletion link" +msgstr "Lien de suppression" + +#: themes/default/templates/delays.html.ep:8 +msgid "" +"Don't worry: if a user begins to download the file before the expiration and " +"the download ends after the expiration, he will be able to get the file." +msgstr "" +"Ne vous inquiétez pas : si un utilisateur commence à télécharger le fichier " +"avant son expiration et que le téléchargement se termine après l’expiration, " +"l’utilisateur pourra quand même récupérer le fichier." + +#: themes/default/templates/partial/index.js.ep:20 themes/default/templates/render.html.ep:28 +msgid "Download" +msgstr "Télécharger" + +#: themes/default/templates/partial/render.js.ep:4 +msgid "Download aborted." +msgstr "Téléchargement abandonné." + +#: themes/default/templates/files.html.ep:27 themes/default/templates/partial/index.js.ep:19 +msgid "Download link" +msgstr "Lien de téléchargement" + +#: themes/default/templates/about.html.ep:10 +msgid "" +"Drag and drop files in the appropriate area or use the traditional way to " +"send files and the files will be chunked, encrypted and sent to the server. " +"You will get two links per file: a download link, that you give to the " +"people you want to share the file with and a deletion link, allowing you to " +"delete the file whenever you want." +msgstr "" +"Faites glisser des fichiers dans la zone prévue à cet effet ou sélectionnez " +"un fichier de façon classique et les fichiers seront découpés en morceaux, " +"chiffrés et envoyés au serveur. Vous récupérerez deux liens par fichier : un " +"lien de téléchargement et un lien pour supprimer le fichier quand vous le " +"souhaitez." + +#: themes/default/templates/index.html.ep:94 +msgid "Drop files here" +msgstr "Glissez vos fichiers ici" + +#: themes/default/templates/mail.html.ep:39 +msgid "Email body" +msgstr "Corps du mail" + +#: themes/default/templates/mail.html.ep:31 +msgid "Email subject" +msgstr "Sujet du mail" + +#: themes/default/templates/mail.html.ep:25 themes/default/templates/mail.html.ep:27 +msgid "Emails" +msgstr "Mails" + +#: themes/default/templates/partial/index.js.ep:21 +msgid "Encrypting part XX1 of XX2" +msgstr "Chiffrement du fragment XX1 sur XX2" + +#: lib/Lufi/Controller/Files.pm:242 +msgid "Error: the file existed but was deleted." +msgstr "Erreur : le fichier existait mais a été supprimé" + +#: lib/Lufi/Controller/Files.pm:322 +msgid "Error: the file has not been sent entirely." +msgstr "Erreur : le fichier n’a pas été envoyé dans son intégralité" + +#: lib/Lufi/Controller/Files.pm:332 +msgid "Error: unable to find the file. Are you sure of your URL?" +msgstr "" +"Erreur : impossible de retrouver le fichier. Êtes-vous sûr(e) de l’URL ?" + +#: themes/default/templates/partial/index.js.ep:22 +msgid "Expiration:" +msgstr "Expiration :" + +#: themes/default/templates/files.html.ep:31 +msgid "Expires at" +msgstr "Expire le" + +#: themes/default/templates/files.html.ep:12 +msgid "Export localStorage data" +msgstr "Exporter les données localStorage" + +#: lib/Lufi/Controller/Files.pm:424 +msgid "File deleted" +msgstr "Fichier supprimé" + +#: themes/default/templates/files.html.ep:26 +msgid "File name" +msgstr "Nom du fichier" + +#: themes/default/templates/index.html.ep:71 +msgid "Files deleted at first download" +msgstr "Fichiers supprimés au premier téléchargement" + +#: themes/default/templates/partial/render.js.ep:8 +msgid "Get the file" +msgstr "Récupérer le fichier" + +#: themes/default/templates/about.html.ep:19 +msgid "" +"Get the source code on the official repository or on its Github mirror" +msgstr "" +"Récupérez le code source sur le dépôt officiel ou sur son miroir Github." + +#: themes/default/templates/partial/mail.js.ep:35 +msgid "Hello,\\n\\nHere's some files I want to share with you:\\n" +msgstr "" +"Bonjour,\\n\\nVoici quelques fichiers que je souhaite partager avec toi :\\n" + +#: themes/default/templates/mail.html.ep:35 +msgid "Here's some files" +msgstr "Voici quelques fichiers" + +#: themes/default/templates/partial/index.js.ep:24 +msgid "Hit Enter, then Ctrl+C to copy all the download links" +msgstr "" +"Appuyez sur la touche Entrée puis faites Ctrl+C pour copier tous les liens " +"de téléchargement" + +#: themes/default/templates/partial/index.js.ep:23 +msgid "Hit Enter, then Ctrl+C to copy the download link" +msgstr "" +"Appuyez sur la touche Entrée puis faites Ctrl+C pour copier le lien de " +"téléchargement" + +#: themes/default/templates/about.html.ep:9 +msgid "How does it work?" +msgstr "Comment ça marche ?" + +#: themes/default/templates/about.html.ep:17 +msgid "How to install the software on my server?" +msgstr "Comment installer le logiciel sur mon serveur ?" + +#: themes/default/templates/about.html.ep:12 +msgid "How to report an illegal file?" +msgstr "Comment signaler un fichier illégal ?" + +#: themes/default/templates/delays.html.ep:7 +msgid "If you choose a delay, the file will be deleted after that delay." +msgstr "Si vous choisissez un délai, le fichier sera supprimé après ce délai." + +#: themes/default/templates/mail.html.ep:15 +msgid "" +"If you send the mail from this server, the links will be sent to the server, " +"which may lower your privacy protection." +msgstr "" +"Si vous envoyez le mail depuis ce serveur, les liens seront envoyés au " +"serveur, ce qui peut diminuer la protection de la confidentialité." + +#: themes/default/templates/files.html.ep:14 +msgid "Import localStorage data" +msgstr "Importer des données localStorage" + +#: themes/default/templates/index.html.ep:44 +msgid "Important: more information on delays" +msgstr "Important : plus d’informations sur les délais" + +#: themes/default/templates/delays.html.ep:5 +msgid "Information about delays" +msgstr "Information sur les délais" + +#: themes/default/templates/partial/render.js.ep:6 +msgid "" +"It seems that the key in your URL is incorrect. Please, verify your URL." +msgstr "" +"Il semble que la clé dans votre URL soit incorrecte. Veuillez vérifier votre " +"URL." + +#: themes/default/templates/index.html.ep:12 +msgid "Javascript is disabled. You won't be able to use Lufi." +msgstr "Javascript est désactivé. Lufi ne fonctionnera pas." + +#: themes/default/templates/layouts/default.html.ep:40 themes/default/templates/layouts/default.html.ep:68 +msgid "Language" +msgstr "Langue" + +#: themes/default/templates/login.html.ep:15 +msgid "Login" +msgstr "Identifiant" + +#: themes/default/templates/layouts/default.html.ep:53 themes/default/templates/layouts/default.html.ep:78 +msgid "Logout" +msgstr "Déconnexion" + +#: themes/default/templates/about.html.ep:4 +msgid "Lufi is a free (as in free speech) file hosting software." +msgstr "Lufi est un logiciel libre d’hébergement de fichiers." + +#: themes/default/templates/files.html.ep:33 +msgid "Mail" +msgstr "Mail" + +#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:62 +msgid "My files" +msgstr "Mes fichiers" + +#. (format_bytes($json->{size}) +#: lib/Lufi/Controller/Files.pm:79 +msgid "No enough space available on the server for this file (size: %1)." +msgstr "" +"Espace disque insuffisant sur le serveur pour ce fichier (taille du fichier :" +" %1)." + +#: themes/default/templates/partial/files.js.ep:10 themes/default/templates/partial/index.js.ep:27 +msgid "No expiration delay" +msgstr "Pas de délai d’expiration" + +#: themes/default/templates/files.html.ep:8 +msgid "" +"Only the files sent with this browser will be listed here. This list is " +"stored in localStorage: if you delete your localStorage data, you'll lose " +"this list." +msgstr "" +"Seuls les fichiers envoyés avec ce navigateur web sont listés ici. Les " +"informations sont stockées en localStorage : si vous supprimez vos données " +"localStorage, vous perdrez ces informations." + +#: themes/default/templates/index.html.ep:87 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 +msgid "Password" +msgstr "Mot de passe" + +#. (config('contact') +#: themes/default/templates/about.html.ep:13 +msgid "Please contact the administrator: %1" +msgstr "Veuillez contacter l’administrateur : %1" + +#: themes/default/templates/render.html.ep:33 +msgid "" +"Please wait while we are getting your file. We first need to download and " +"decrypt all parts before you can get it." +msgstr "" +"Veuillez patientez pendant la récupération de votre fichier. Nous devons " +"d’abord récupérer et déchiffrer tous les fragments avant que vous puissiez " +"le télécharger." + +#: lib/Lufi/Controller/Auth.pm:28 +msgid "" +"Please, check your credentials or your right to access this service: unable " +"to authenticate." +msgstr "" +"Veuillez vérifier vos identifiants ou votre droit d’accès à ce service : " +"impossible de vous authentifier." + +#: themes/default/templates/about.html.ep:5 +msgid "Privacy" +msgstr "Confidentialité" + +#: themes/default/templates/files.html.ep:13 +msgid "Purge expired files from localStorage" +msgstr "Supprimer du localStorage les fichiers expirés" + +#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:59 +msgid "Report file" +msgstr "Signaler un fichier" + +#: themes/default/templates/files.html.ep:9 +msgid "" +"Rows in red mean that the files have expired and are no longer available." +msgstr "" +"Les lignes en rouge indiquent que le fichier a expiré et n’est plus " +"disponible." + +#: themes/default/templates/partial/index.js.ep:25 +msgid "Send all links by email" +msgstr "Envoyer tous les liens par mail" + +#: themes/default/templates/mail.html.ep:46 +msgid "Send with this server" +msgstr "Envoyer avec ce serveur" + +#: themes/default/templates/mail.html.ep:47 +msgid "Send with your own mail software" +msgstr "Envoyer avec votre propre logiciel de mail" + +#: themes/default/templates/partial/index.js.ep:28 +msgid "" +"Sending part XX1 of XX2. Please, be patient, the progress bar can take a " +"while to move." +msgstr "" +"Envoi du fragment XX1 sur XX2. Veuillez patienter, la barre de progression " +"peut mettre du temps avant d’avancer." + +#. (url_for('/') +#: themes/default/templates/partial/mail.js.ep:48 +msgid "Share your files in total privacy on %1" +msgstr "Partagez vos fichiers en toute confidentialité sur %1" + +#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:64 themes/default/templates/login.html.ep:27 themes/default/templates/logout.html.ep:17 +msgid "Signin" +msgstr "Connexion" + +#: themes/default/templates/index.html.ep:37 +msgid "Sorry, the uploading is currently disabled. Please try again later." +msgstr "" +"Désolé, l’envoi de fichier est actuellement désactivé. Veuillez réessayer " +"plus tard." + +#: lib/Lufi/Controller/Files.pm:53 +msgid "Sorry, uploading is disabled." +msgstr "Désolé, l’envoi de fichier est désactivé." + +#: themes/default/templates/about.html.ep:7 +msgid "" +"The administrator can only see the file's name, its size and its mimetype " +"(what kind of file it is: video, text, etc.)." +msgstr "" +"L’administrateur ne peut voir que le nom du fichier, sa taille et son type " +"mime (son type de fichier : vidéo, texte, etc.)." + +#: lib/Lufi/Controller/Mail.pm:53 +msgid "" +"The body of the mail must contain at least one URL pointing to a file hosted " +"on this instance." +msgstr "" +"Le corps du mail doit contenir au moins une URL pointant vers un fichier " +"hébergé sur cette instance." + +#: themes/default/templates/partial/files.js.ep:11 +msgid "The data has been successfully imported." +msgstr "Les données ont été importées avec succès." + +#: lib/Lufi/Controller/Mail.pm:73 +msgid "The email body can't be empty." +msgstr "Le corps du mail ne peut être vide." + +#: lib/Lufi/Controller/Mail.pm:72 +msgid "The email subject can't be empty." +msgstr "Le sujet du mail ne peut être vide." + +#: lib/Lufi/Controller/Files.pm:421 +msgid "The file has already been deleted" +msgstr "Le fichier a déjà été supprimé" + +#: themes/default/templates/about.html.ep:6 +msgid "" +"The files uploaded on a Lufi instance are encrypted before the upload to the " +"server: the administrator of the server can not see the file's content." +msgstr "" +"Les fichiers envoyés sur une instance de Lufi sont chiffrés avant l’envoi au " +"serveur : l’administrateur du serveur ne peut pas voir le contenu de vos " +"fichiers." + +#. (join(', ', @bad) +#: lib/Lufi/Controller/Mail.pm:68 +msgid "The following email addresses are not valid: %1" +msgstr "Les adresses mail suivantes ne sont pas valides : %1" + +#: themes/default/templates/partial/index.js.ep:15 +msgid "The link(s) has been copied to your clipboard" +msgstr "Le(s) lien(s) a/ont été copié dans votre presse-papier" + +#: lib/Lufi/Controller/Mail.pm:97 +msgid "The mail has been sent." +msgstr "Le mail a été envoyé." + +#: themes/default/templates/about.html.ep:15 +msgid "" +"The original (and only for now) author is Luc Didry. If you want to support him, you can do it " +"via Tipeee " +"or via Liberapay." +msgstr "" +"L’auteur originel (et pour l’instant, le seul) est Luc Didry. Si vous avez envie de le " +"supporter, vous pouvez le faire via Tipeee ou via Liberapay." + +#: lib/Lufi/Controller/Files.pm:189 +msgid "" +"The server was unable to find the file record to add your file part to. " +"Please, contact the administrator." +msgstr "" +"Le serveur a été incapable de retrouver l’enregistrement du fichier auquel " +"ajouter votre fragment de fichier. Veuillez contacter l’administrateur." + +#: lib/Lufi/Controller/Files.pm:248 +msgid "" +"This file has been deactivated by the admins. Contact them to know why." +msgstr "" +"The fichier a été désactivé par les administrateurs ou administratrices. " +"Veuillez les contacter pour savoir pourquoi." + +#: themes/default/templates/delays.html.ep:10 +msgid "" +"This server sets limitations according to the file size. The expiration " +"delay of your file will be the minimum between what you choose and the " +"following limitations:" +msgstr "" +"Ce serveur impose des limitations selon la taille des fichiers. Le délai " +"d’expiration de votre fichier sera le minimum entre ce que vous avez choisi " +"et les limites suivantes :" + +#: themes/default/templates/partial/index.js.ep:16 +msgid "Unable to copy the link(s) to your clipboard" +msgstr "Impossible de copier le(s) lien(s) dans votre presse-papier" + +#. ($short) +#: lib/Lufi/Controller/Files.pm:392 +msgid "" +"Unable to get counter for %1. The file does not exists. It will be removed " +"from your localStorage." +msgstr "" +"Impossible de récupérer le compteur pour %1. Le fichier n’existe pas. Il va " +"être supprimé de votre localStorage." + +#. ($short) +#: lib/Lufi/Controller/Files.pm:382 +msgid "Unable to get counter for %1. The token is invalid." +msgstr "Impossible de récupérer le compteur pour %1. Le jeton est invalide." + +#. ($short) +#: lib/Lufi/Controller/Files.pm:402 +msgid "Unable to get counter for %1. You are not authenticated." +msgstr "" +"Impossible de récupérer le compteur pour %1. Vous n’êtes pas connecté·e." + +#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:61 +msgid "Upload files" +msgstr "Envoyer des fichiers" + +#: themes/default/templates/files.html.ep:30 +msgid "Uploaded at" +msgstr "Envoyé le" + +#: themes/default/templates/index.html.ep:103 +msgid "Uploaded files" +msgstr "Fichiers envoyés" + +#: themes/default/templates/partial/index.js.ep:29 +msgid "Websocket communication error" +msgstr "Erreur de communication WebSocket" + +#: themes/default/templates/about.html.ep:3 +msgid "What is Lufi?" +msgstr "Qu’est-ce que Lufi ?" + +#: themes/default/templates/about.html.ep:14 +msgid "Who wrote this software?" +msgstr "Qui a écrit ce logiciel ?" + +#: themes/default/templates/about.html.ep:11 +msgid "" +"You can see the list of your files by clicking on the \"My files\" link at " +"the top right of this page." +msgstr "" +"Vous pouvez voir la liste de vos fichiers en cliquant sur le lien « Mes " +"fichiers » en haut à droite de cette page." + +#: lib/Lufi/Controller/Mail.pm:42 +msgid "You can't add URLs that are not related to this instance." +msgstr "Vous ne pouvez pas ajouter d’URL non relatives à cette instance." + +#: themes/default/templates/about.html.ep:8 +msgid "" +"You don't need to register yourself to upload files but be aware that, for " +"legal reasons, your IP address will be stored when you send a file. Don't " +"panic, this is normally the case for all sites on which you send files." +msgstr "" +"Vous n’avez pas besoin de vous enregistrer pour envoyer des fichiers mais " +"notez que, pour des raisons légales, votre adresse IP sera enregistrée quand " +"vous envoyez un fichier. Ne paniquez pas, c’est normalement le cas pour tous " +"les sites où vous envoyez des fichiers." + +#: themes/default/templates/partial/render.js.ep:10 +msgid "" +"You don't seem to have a key in your URL. You won't be able to decrypt the " +"file. Download canceled." +msgstr "" +"Il semble que vous n’ayez pas de clé dans votre URL. Vous ne serez pas " +"capable de déchiffrer le fichier. Téléchargement annulé." + +#: themes/default/templates/partial/render.js.ep:7 +msgid "" +"You have attempted to leave this page. The download will be canceled. Are " +"you sure?" +msgstr "" +"Vous essayez de quitter la page. Le téléchargement sera annulé. Êtes-vous " +"sûr(e) ?" + +#: themes/default/templates/partial/index.js.ep:13 +msgid "" +"You have attempted to leave this page. The upload will be canceled. Are you " +"sure?" +msgstr "" +"Vous essayez de quitter la page. L’envoi sera annulé. Êtes-vous sûr(e) ?" + +#: themes/default/templates/logout.html.ep:14 +msgid "You have been successfully logged out." +msgstr "Vous avez été déconnecté·e avec succès." + +#: lib/Lufi/Controller/Mail.pm:71 +msgid "You must give email addresses." +msgstr "Vous devez envoyer des adresses mail." + +#: themes/default/templates/index.html.ep:29 +msgid "" +"Your browser has not enough entropy to generate a strong encryption key. " +"Please wait (it's better if you do things on your computer while waiting)." +msgstr "" +"Votre navigateur n’a pas assez d’entropie pour générer une clé de " +"chiffrement forte. Veuillez attendre (il est préférable que vous fassiez " +"quelque chose sur votre ordinateur en attendant)." + +#. (format_bytes($json->{size}) +#: lib/Lufi/Controller/Files.pm:66 +msgid "Your file is too big: %1 (maximum size allowed: %2)" +msgstr "" +"Votre fichier est trop volumineux : %1 (la taille maximum autorisée est %2)" + +#: lib/Lufi/Controller/Files.pm:304 +msgid "Your password is not valid. Please refresh the page to retry." +msgstr "" +"Votre mot de passe est invalide. Veuillez rafraîchir la page pour réessayer." + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:20 +msgid "between %1 and %2, the file will be kept %3 day(s)." +msgstr "entre %1 et %2, le fichier sera conservé %3 jour(s) ;" + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:22 +msgid "between %1 and %2, the file will be kept forever." +msgstr "entre %1 et %2, le fichier sera conservé indéfiniment ;" + +#: themes/default/templates/partial/mail.js.ep:42 +msgid "deadline: " +msgstr "dernier délai pour télécharger : " + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:26 +msgid "for %1 and more, the file will be kept %2 day(s)" +msgstr "pour %1 et plus, le fichier sera conservé %2 jour(s)." + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:28 +msgid "for %1 and more, the file will be kept forever." +msgstr "pour %1 et plus, le fichier sera conservé indéfiniment." + +#: themes/default/templates/index.html.ep:3 +msgid "no time limit" +msgstr "Pas de délai d’expiration" + +#: themes/default/templates/index.html.ep:96 +msgid "or" +msgstr "ou" diff --git a/themes/default/lib/Lufi/I18N/it.po b/themes/default/lib/Lufi/I18N/it.po index 9bc5eec..f544258 100644 --- a/themes/default/lib/Lufi/I18N/it.po +++ b/themes/default/lib/Lufi/I18N/it.po @@ -2,61 +2,87 @@ # Copyright (C) 2015 Luc Didry # This file is distributed under the same license as the Lufi package. # Luc Didry , 2015. -# +# Luc Didry , 2018. #zanata msgid "" msgstr "" -"Project-Id-Version: \n" +"Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" -"PO-Revision-Date: 2015-10-15 14:00-0400\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2018-10-28 01:57+0000\n" "Language-Team: \n" -"X-Generator: Poedit 1.8.5\n" -"Last-Translator: Nikos Filopoulos \n" +"X-Generator: Zanata 4.6.2\n" +"Last-Translator: Copied by Zanata \n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "Language: it\n" #. ($delay) #. (max_delay) -#: themes/default/templates/index.html.ep:40 themes/default/templates/index.html.ep:49 themes/default/templates/index.html.ep:50 +#: themes/default/templates/index.html.ep:47 themes/default/templates/index.html.ep:56 themes/default/templates/index.html.ep:57 msgid "%1 days" msgstr "%1 giorni" +#: themes/default/templates/partial/index.js.ep:26 +msgid "(max size: XXX)" +msgstr "" + #: themes/default/templates/index.html.ep:5 msgid "1 year" msgstr "1 anno" -#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:49 +#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:56 msgid "24 hours" msgstr "24 ore" -#: themes/default/templates/mail.html.ep:83 +#: themes/default/templates/partial/mail.js.ep:40 msgid ":" msgstr "A :" #: themes/default/templates/about.html.ep:16 -msgid "A thank you with a photo of kitten on Diaspora* or Mastodon is cool too ;-)" -msgstr "Un grazie con una foto di un gattino sur Diaspora* o Mastodon è forte;-)" +msgid "" +"A thank you with a photo of kitten on Diaspora* or " +"Mastodon " +"is cool too ;-)" +msgstr "" +"Un grazie con una foto di un gattino sur Diaspora* o " +"Mastodon " +"è forte;-)" #: themes/default/templates/render.html.ep:42 msgid "Abort" msgstr "Annulla" -#: themes/default/templates/layouts/default.html.ep:65 themes/default/templates/layouts/default.html.ep:77 +#: themes/default/templates/layouts/default.html.ep:48 themes/default/templates/layouts/default.html.ep:76 msgid "About" msgstr "A proposito" -#: themes/default/templates/index.html.ep:71 +#: themes/default/templates/index.html.ep:88 msgid "Add a password to file(s)" msgstr "" +#: themes/default/templates/mail.html.ep:16 +msgid "" +"Adding URLs not related to this Lufi instance to the mail body or subject is " +"prohibited." +msgstr "" + #: themes/default/templates/about.html.ep:18 -msgid "As Lufi is a free software licensed under of the terms of the AGPLv3, you can install it on you own server. Have a look on the Wiki for the procedure." -msgstr "Poiché Lufi è un software libero soggetto ai termini della licenza AGPLv3, potete installarlo sul vostro server. Si consulti Wiki per vedere la procedura." +msgid "" +"As Lufi is a free software licensed under of the terms of the AGPLv3, you can " +"install it on you own server. Have a look on the Wiki for the procedure." +msgstr "" +"Poiché Lufi è un software libero soggetto ai termini della licenza AGPLv3, potete " +"installarlo sul vostro server. Si consulti Wiki per vedere la procedura." -#. (stash('f') -#: themes/default/templates/render.html.ep:52 +#. (stash('nbslices') +#: themes/default/templates/partial/render.js.ep:9 msgid "Asking for file part XX1 of %1" msgstr "Recupero della porzione del file XX1 su %1" @@ -64,15 +90,19 @@ msgstr "Recupero della porzione del file XX1 su %1" msgid "Back to homepage" msgstr "Ritorna all'homepage" -#: lib/Lufi/Controller/Mail.pm:21 +#: lib/Lufi/Controller/Mail.pm:25 msgid "Bad CSRF token!" msgstr "Token CSRF errato!" -#: themes/default/templates/render.html.ep:48 +#: lib/Lufi/Controller/Auth.pm:22 lib/Lufi/Controller/Auth.pm:39 +msgid "Bad CSRF token." +msgstr "" + +#: themes/default/templates/partial/render.js.ep:5 msgid "Click here to refresh the page and restart the download." msgstr "Click qui per aggiornare la pagina e ricominciare il download." -#: themes/default/templates/index.html.ep:80 +#: themes/default/templates/index.html.ep:98 msgid "Click to open the file browser" msgstr "Click per aprire il file browser" @@ -80,27 +110,28 @@ msgstr "Click per aprire il file browser" msgid "Close" msgstr "Chiudi" -#: themes/default/templates/mail.html.ep:22 +#: themes/default/templates/mail.html.ep:23 msgid "Comma-separated email addresses" msgstr "Indirizzi email separati da virgole" -#: themes/default/templates/index.html.ep:100 +#: themes/default/templates/partial/index.js.ep:14 msgid "Copy all links to clipboard" msgstr "Copiare tutti i link negli appunti" -#: themes/default/templates/index.html.ep:103 +#: themes/default/templates/partial/index.js.ep:17 msgid "Copy to clipboard" msgstr "Copiare negli appunti" -#: lib/Lufi/Controller/Files.pm:429 +#: lib/Lufi/Controller/Files.pm:460 msgid "Could not delete the file. You are not authenticated." msgstr "Impossibile cancellare il file. Non siete autenticati." -#: lib/Lufi/Controller/Files.pm:411 +#: lib/Lufi/Controller/Files.pm:442 msgid "Could not find the file. Are you sure of the URL and the token?" -msgstr "Impossibile trovare il file. Sei sicuro che URL e token siano corretti ?" +msgstr "" +"Impossibile trovare il file. Sei sicuro che URL e token siano corretti ?" -#: lib/Lufi/Controller/Files.pm:322 +#: lib/Lufi/Controller/Files.pm:353 msgid "Could not find the file. Are you sure of the URL?" msgstr "Impossibile trovare il file. Sei sicuro che l'URL sia corretto?" @@ -108,7 +139,7 @@ msgstr "Impossibile trovare il file. Sei sicuro che l'URL sia corretto?" msgid "Counter" msgstr "Contatore" -#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:64 +#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:81 msgid "Delete at first download?" msgstr "Cancellare al primo download?" @@ -116,63 +147,77 @@ msgstr "Cancellare al primo download?" msgid "Delete selected files" msgstr "" -#: themes/default/templates/files.html.ep:32 themes/default/templates/index.html.ep:104 +#: themes/default/templates/files.html.ep:32 themes/default/templates/partial/index.js.ep:18 msgid "Deletion link" msgstr "Link per l'eliminazione" #: themes/default/templates/delays.html.ep:8 -msgid "Don't worry: if a user begins to download the file before the expiration and the download ends after the expiration, he will be able to get the file." -msgstr "Non preoccuparti: se un utente cominciasse il download del file prima della scadenza ed il download terminasse dopo la scadenza, potrebbe ottenere il file." +msgid "" +"Don't worry: if a user begins to download the file before the expiration and " +"the download ends after the expiration, he will be able to get the file." +msgstr "" +"Non preoccuparti: se un utente cominciasse il download del file prima della " +"scadenza ed il download terminasse dopo la scadenza, potrebbe ottenere il " +"file." -#: themes/default/templates/index.html.ep:106 themes/default/templates/render.html.ep:28 +#: themes/default/templates/partial/index.js.ep:20 themes/default/templates/render.html.ep:28 msgid "Download" msgstr "Download" -#: themes/default/templates/render.html.ep:47 +#: themes/default/templates/partial/render.js.ep:4 msgid "Download aborted." msgstr "Download annullato." -#: themes/default/templates/files.html.ep:27 themes/default/templates/index.html.ep:105 +#: themes/default/templates/files.html.ep:27 themes/default/templates/partial/index.js.ep:19 msgid "Download link" msgstr "Link per il download" #: themes/default/templates/about.html.ep:10 -msgid "Drag and drop files in the appropriate area or use the traditional way to send files and the files will be chunked, encrypted and sent to the server. You will get two links per file: a download link, that you give to the people you want to share the file with and a deletion link, allowing you to delete the file whenever you want." -msgstr "Trascinare e lasciare il file nell'are prevista o selezionare i file nel modo classico ed i file saranno divisi,cifrati ed inviati al server. Otterrete 2 link per ogni file : uno per il download ed uno per eliminare il file quando vorrete." +msgid "" +"Drag and drop files in the appropriate area or use the traditional way to " +"send files and the files will be chunked, encrypted and sent to the server. " +"You will get two links per file: a download link, that you give to the " +"people you want to share the file with and a deletion link, allowing you to " +"delete the file whenever you want." +msgstr "" +"Trascinare e lasciare il file nell'are prevista o selezionare i file nel " +"modo classico ed i file saranno divisi,cifrati ed inviati al server. " +"Otterrete 2 link per ogni file : uno per il download ed uno per eliminare il " +"file quando vorrete." -#: themes/default/templates/index.html.ep:77 +#: themes/default/templates/index.html.ep:94 msgid "Drop files here" msgstr "Lasciare i file qui" -#: themes/default/templates/mail.html.ep:38 +#: themes/default/templates/mail.html.ep:39 msgid "Email body" msgstr "Corpo dell'email" -#: themes/default/templates/mail.html.ep:30 +#: themes/default/templates/mail.html.ep:31 msgid "Email subject" msgstr "Oggetto dell'email" -#: themes/default/templates/mail.html.ep:24 themes/default/templates/mail.html.ep:26 +#: themes/default/templates/mail.html.ep:25 themes/default/templates/mail.html.ep:27 msgid "Emails" msgstr "Email" -#: themes/default/templates/index.html.ep:107 +#: themes/default/templates/partial/index.js.ep:21 msgid "Encrypting part XX1 of XX2" msgstr "Cifratura della parte XX1 di XX2" -#: lib/Lufi/Controller/Files.pm:225 +#: lib/Lufi/Controller/Files.pm:242 msgid "Error: the file existed but was deleted." msgstr "Errore: il file esisteva ma è stato eliminato" -#: lib/Lufi/Controller/Files.pm:291 +#: lib/Lufi/Controller/Files.pm:322 msgid "Error: the file has not been sent entirely." msgstr "Errore: il file non è stato inviato completamente" -#: lib/Lufi/Controller/Files.pm:301 +#: lib/Lufi/Controller/Files.pm:332 msgid "Error: unable to find the file. Are you sure of your URL?" msgstr "Errore: impossibile trovare il file. Sei certo dell'URL ?" -#: themes/default/templates/index.html.ep:108 +#: themes/default/templates/partial/index.js.ep:22 msgid "Expiration:" msgstr "Scadenza:" @@ -184,7 +229,7 @@ msgstr "Scadrà il" msgid "Export localStorage data" msgstr "Esportare i dati del localStorage" -#: lib/Lufi/Controller/Files.pm:393 +#: lib/Lufi/Controller/Files.pm:424 msgid "File deleted" msgstr "File cancellato" @@ -192,27 +237,37 @@ msgstr "File cancellato" msgid "File name" msgstr "Nome del file" -#: themes/default/templates/render.html.ep:51 +#: themes/default/templates/index.html.ep:71 +msgid "Files deleted at first download" +msgstr "" + +#: themes/default/templates/partial/render.js.ep:8 msgid "Get the file" msgstr "Ottenere il file" #: themes/default/templates/about.html.ep:19 -msgid "Get the source code on the official repository or on its Github mirror" -msgstr "Ottenere il codice sorgente su le dépôt officiel ou sur son miroir Github." +msgid "" +"Get the source code on the official repository or on its Github mirror" +msgstr "" +"Ottenere il codice sorgente su le dépôt officiel ou sur son miroir Github." -#: themes/default/templates/mail.html.ep:78 +#: themes/default/templates/partial/mail.js.ep:35 msgid "Hello,\\n\\nHere's some files I want to share with you:\\n" msgstr "Buongiorno,\\n\\necco qualche file che vorrei condividere con te:\\n" -#: themes/default/templates/mail.html.ep:34 +#: themes/default/templates/mail.html.ep:35 msgid "Here's some files" msgstr "Ecco qualche file" -#: themes/default/templates/index.html.ep:110 +#: themes/default/templates/partial/index.js.ep:24 msgid "Hit Enter, then Ctrl+C to copy all the download links" msgstr "Premere Enter, poi Ctrl+C per copiare tutti i link di download" -#: themes/default/templates/index.html.ep:109 +#: themes/default/templates/partial/index.js.ep:23 msgid "Hit Enter, then Ctrl+C to copy the download link" msgstr "Premere Enter, poi Ctrl+C per copiare il link di download" @@ -230,17 +285,22 @@ msgstr "Come segnalare un file illegale?" #: themes/default/templates/delays.html.ep:7 msgid "If you choose a delay, the file will be deleted after that delay." -msgstr "Se sceglieste una scadenza, il file sarebbe cancellato dopo tale scadenza." +msgstr "" +"Se sceglieste una scadenza, il file sarebbe cancellato dopo tale scadenza." #: themes/default/templates/mail.html.ep:15 -msgid "If you send the mail from this server, the links will be sent to the server, which may lower your privacy protection." -msgstr "Se inviaste l'email da questo server, i link sarebbero inviati al server, e questo potrebbe diminuire la protezione della riservatezza." +msgid "" +"If you send the mail from this server, the links will be sent to the server, " +"which may lower your privacy protection." +msgstr "" +"Se inviaste l'email da questo server, i link sarebbero inviati al server, e " +"questo potrebbe diminuire la protezione della riservatezza." #: themes/default/templates/files.html.ep:14 msgid "Import localStorage data" msgstr "Importare i dati del localStorage" -#: themes/default/templates/index.html.ep:37 +#: themes/default/templates/index.html.ep:44 msgid "Important: more information on delays" msgstr "Importante : più informazioni sulle scadenze" @@ -248,19 +308,24 @@ msgstr "Importante : più informazioni sulle scadenze" msgid "Information about delays" msgstr "Informazione sulle scadenze" -#: themes/default/templates/render.html.ep:49 -msgid "It seems that the key in your URL is incorrect. Please, verify your URL." +#: themes/default/templates/partial/render.js.ep:6 +msgid "" +"It seems that the key in your URL is incorrect. Please, verify your URL." msgstr "Sembra che la chiave nel tuo URL sia errata. Controllare il tuo URL." #: themes/default/templates/index.html.ep:12 msgid "Javascript is disabled. You won't be able to use Lufi." msgstr "Javascript è disattivato. Lufi non può funzionare." +#: themes/default/templates/layouts/default.html.ep:40 themes/default/templates/layouts/default.html.ep:68 +msgid "Language" +msgstr "" + #: themes/default/templates/login.html.ep:15 msgid "Login" msgstr "Login" -#: themes/default/templates/layouts/default.html.ep:67 themes/default/templates/layouts/default.html.ep:79 +#: themes/default/templates/layouts/default.html.ep:53 themes/default/templates/layouts/default.html.ep:78 msgid "Logout" msgstr "Logout" @@ -272,24 +337,31 @@ msgstr "Lufi è un software libero di file hosting." msgid "Mail" msgstr "" -#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:61 themes/default/templates/layouts/default.html.ep:73 +#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:62 msgid "My files" msgstr "I miei file" #. (format_bytes($json->{size}) -#: lib/Lufi/Controller/Files.pm:69 +#: lib/Lufi/Controller/Files.pm:79 msgid "No enough space available on the server for this file (size: %1)." -msgstr "Spazio disco insufficiente sul server per questo file (dimensione: %1)." +msgstr "" +"Spazio disco insufficiente sul server per questo file (dimensione: %1)." -#: themes/default/templates/files.html.ep:45 themes/default/templates/index.html.ep:112 +#: themes/default/templates/partial/files.js.ep:10 themes/default/templates/partial/index.js.ep:27 msgid "No expiration delay" msgstr "Nessun ritardo per la scadenza" #: themes/default/templates/files.html.ep:8 -msgid "Only the files sent with this browser will be listed here. This list is stored in localStorage: if you delete your localStorage data, you'll lose this list." -msgstr "Solo i file inviati con questo browser web sono nella lista. Le informazioni sono memorizzate nel localStorage: se cancellaste i dati dal vostro localStorage, perdereste questa lista." +msgid "" +"Only the files sent with this browser will be listed here. This list is " +"stored in localStorage: if you delete your localStorage data, you'll lose " +"this list." +msgstr "" +"Solo i file inviati con questo browser web sono nella lista. Le informazioni " +"sono memorizzate nel localStorage: se cancellaste i dati dal vostro " +"localStorage, perdereste questa lista." -#: themes/default/templates/index.html.ep:70 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 +#: themes/default/templates/index.html.ep:87 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 msgid "Password" msgstr "Password" @@ -299,11 +371,17 @@ msgid "Please contact the administrator: %1" msgstr "Contattare l'amministratore : %1" #: themes/default/templates/render.html.ep:33 -msgid "Please wait while we are getting your file. We first need to download and decrypt all parts before you can get it." -msgstr "Attendere mentre otteniamo il vostro file. Dobbiamo prima scaricare e decifrare tutte le parti prima che possiate averlo." +msgid "" +"Please wait while we are getting your file. We first need to download and " +"decrypt all parts before you can get it." +msgstr "" +"Attendere mentre otteniamo il vostro file. Dobbiamo prima scaricare e " +"decifrare tutte le parti prima che possiate averlo." -#: lib/Lufi.pm:191 -msgid "Please, check your credentials: unable to authenticate." +#: lib/Lufi/Controller/Auth.pm:28 +msgid "" +"Please, check your credentials or your right to access this service: unable " +"to authenticate." msgstr "" #: themes/default/templates/about.html.ep:5 @@ -314,124 +392,162 @@ msgstr "Riservatezza" msgid "Purge expired files from localStorage" msgstr "Eliminare dal localStorage i file scaduti" -#: -msgid "Rows in purple mean that the files have expired and are no longer available." -msgstr "Le righe in viola indicano che il file è scaduto e non è più disponibile." +#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:59 +msgid "Report file" +msgstr "" #: themes/default/templates/files.html.ep:9 -msgid "Rows in red mean that the files have expired and are no longer available." +msgid "" +"Rows in red mean that the files have expired and are no longer available." msgstr "" -#: themes/default/templates/index.html.ep:111 +#: themes/default/templates/partial/index.js.ep:25 msgid "Send all links by email" msgstr "Inviare tutti i link tramite email" -#: themes/default/templates/mail.html.ep:45 +#: themes/default/templates/mail.html.ep:46 msgid "Send with this server" msgstr "Inviare tramite questo server" -#: themes/default/templates/mail.html.ep:46 +#: themes/default/templates/mail.html.ep:47 msgid "Send with your own mail software" msgstr "Inviare tramite il vostro programma di posta" -#: themes/default/templates/index.html.ep:113 -msgid "Sending part XX1 of XX2. Please, be patient, the progress bar can take a while to move." -msgstr "Invio della parte XX1 su XX2. Prego attendere, la barra di avanzamento può impiegare del tempo prima di colorarsi." +#: themes/default/templates/partial/index.js.ep:28 +msgid "" +"Sending part XX1 of XX2. Please, be patient, the progress bar can take a " +"while to move." +msgstr "" +"Invio della parte XX1 su XX2. Prego attendere, la barra di avanzamento può " +"impiegare del tempo prima di colorarsi." #. (url_for('/') -#: themes/default/templates/mail.html.ep:91 +#: themes/default/templates/partial/mail.js.ep:48 msgid "Share your files in total privacy on %1" msgstr "Condividi tutti i file in totale riservatezza su %1" -#: themes/default/templates/layouts/default.html.ep:63 themes/default/templates/layouts/default.html.ep:75 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8 +#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:64 themes/default/templates/login.html.ep:27 themes/default/templates/logout.html.ep:17 msgid "Signin" msgstr "Autenticazione" -#: lib/Lufi.pm:194 -msgid "Sorry mate, you are not authorised to use that service. Contact your sysadmin if you think there's a glitch in the matrix." -msgstr "" - -#: themes/default/templates/index.html.ep:30 +#: themes/default/templates/index.html.ep:37 msgid "Sorry, the uploading is currently disabled. Please try again later." msgstr "L'invio del file è attualemente disattivato. Riprovare più tardi." -#: lib/Lufi/Controller/Files.pm:43 +#: lib/Lufi/Controller/Files.pm:53 msgid "Sorry, uploading is disabled." msgstr "L'invio del file è attualemente disattivato." -#: -msgid "The administrator can only see the file's name, its size and its mimetype (what kind of file it is: video, text, etc)." -msgstr "L'amministratore pu vedere solo il nome del file, la sua dimensione e il suo mimetype (video, testo, etc)." - #: themes/default/templates/about.html.ep:7 -msgid "The administrator can only see the file's name, its size and its mimetype (what kind of file it is: video, text, etc.)." +msgid "" +"The administrator can only see the file's name, its size and its mimetype " +"(what kind of file it is: video, text, etc.)." msgstr "" -#: themes/default/templates/files.html.ep:46 +#: lib/Lufi/Controller/Mail.pm:53 +msgid "" +"The body of the mail must contain at least one URL pointing to a file hosted " +"on this instance." +msgstr "" + +#: themes/default/templates/partial/files.js.ep:11 msgid "The data has been successfully imported." msgstr "I dati sono stati importati correttamente." -#: lib/Lufi/Controller/Mail.pm:43 +#: lib/Lufi/Controller/Mail.pm:73 msgid "The email body can't be empty." msgstr "Il corpo dell'email non può essere vuoto." -#: lib/Lufi/Controller/Mail.pm:42 +#: lib/Lufi/Controller/Mail.pm:72 msgid "The email subject can't be empty." msgstr "Il soggetto dell'email non può essere vuoto." -#: lib/Lufi/Controller/Files.pm:390 +#: lib/Lufi/Controller/Files.pm:421 msgid "The file has already been deleted" msgstr "Il file è già stato cancellato" #: themes/default/templates/about.html.ep:6 -msgid "The files uploaded on a Lufi instance are encrypted before the upload to the server: the administrator of the server can not see the file's content." -msgstr "I file inviati su un istanza di Lufi sono cifrati prima dell'invio al server: l'amministratore del server non può vedere il contenuto dei vostri file." +msgid "" +"The files uploaded on a Lufi instance are encrypted before the upload to the " +"server: the administrator of the server can not see the file's content." +msgstr "" +"I file inviati su un istanza di Lufi sono cifrati prima dell'invio al server:" +" l'amministratore del server non può vedere il contenuto dei vostri file." #. (join(', ', @bad) -#: lib/Lufi/Controller/Mail.pm:38 +#: lib/Lufi/Controller/Mail.pm:68 msgid "The following email addresses are not valid: %1" msgstr "I seguenti indirizzi email non sono validi: %1" -#: themes/default/templates/index.html.ep:101 +#: themes/default/templates/partial/index.js.ep:15 msgid "The link(s) has been copied to your clipboard" msgstr "I link sono stati copiati negli appunti" -#: lib/Lufi/Controller/Mail.pm:66 +#: lib/Lufi/Controller/Mail.pm:97 msgid "The mail has been sent." msgstr "Email inviata." #: themes/default/templates/about.html.ep:15 -msgid "The original (and only for now) author is Luc Didry. If you want to support him, you can do it via Tipeee or via Liberapay." -msgstr "L'autore ( e per ora l'unico) è Luc Didry. Se aveste voglia di aiutarlo, potreste farlo tramite Tipeee ou via Liberapay." +msgid "" +"The original (and only for now) author is Luc Didry. If you want to support him, you can do it " +"via Tipeee " +"or via Liberapay." +msgstr "" +"L'autore ( e per ora l'unico) è Luc Didry. Se aveste voglia di aiutarlo, potreste farlo " +"tramite Tipeee ou via Liberapay." + +#: lib/Lufi/Controller/Files.pm:189 +msgid "" +"The server was unable to find the file record to add your file part to. " +"Please, contact the administrator." +msgstr "" +"Il server non è stato in grado di trovare il file record a cui aggiungere la " +"vostra porzione di file. Prego contattare l'amministratore." -#: lib/Lufi/Controller/Files.pm:179 -msgid "The server was unable to find the file record to add your file part to. Please, contact the administrator." -msgstr "Il server non è stato in grado di trovare il file record a cui aggiungere la vostra porzione di file. Prego contattare l'amministratore." +#: lib/Lufi/Controller/Files.pm:248 +msgid "" +"This file has been deactivated by the admins. Contact them to know why." +msgstr "" #: themes/default/templates/delays.html.ep:10 -msgid "This server sets limitations according to the file size. The expiration delay of your file will be the minimum between what you choose and the following limitations:" -msgstr "Questo server pone delle limitazioni in base alla dimensione del file.La data di scadenza del tuo file sarà la minore tra quella scelta e queste limitazioni:" +msgid "" +"This server sets limitations according to the file size. The expiration " +"delay of your file will be the minimum between what you choose and the " +"following limitations:" +msgstr "" +"Questo server pone delle limitazioni in base alla dimensione del file.La " +"data di scadenza del tuo file sarà la minore tra quella scelta e queste " +"limitazioni:" -#: themes/default/templates/index.html.ep:102 +#: themes/default/templates/partial/index.js.ep:16 msgid "Unable to copy the link(s) to your clipboard" msgstr "Impossibile copiare i link negli appunti" #. ($short) -#: lib/Lufi/Controller/Files.pm:361 -msgid "Unable to get counter for %1. The file does not exists. It will be removed from your localStorage." -msgstr "Impossibile recuperare il contatore per %1. Il file non esiste. Il file sarà eliminato dal tuo localStorage." +#: lib/Lufi/Controller/Files.pm:392 +msgid "" +"Unable to get counter for %1. The file does not exists. It will be removed " +"from your localStorage." +msgstr "" +"Impossibile recuperare il contatore per %1. Il file non esiste. Il file sarà " +"eliminato dal tuo localStorage." #. ($short) -#: lib/Lufi/Controller/Files.pm:351 +#: lib/Lufi/Controller/Files.pm:382 msgid "Unable to get counter for %1. The token is invalid." msgstr "Impossibile recuperare il contatore per %1. Il token non è valido." #. ($short) -#: lib/Lufi/Controller/Files.pm:371 +#: lib/Lufi/Controller/Files.pm:402 msgid "Unable to get counter for %1. You are not authenticated." msgstr "Impossibile recuperare il contatore per %1. Non sei autenticato." -#: themes/default/templates/layouts/default.html.ep:60 themes/default/templates/layouts/default.html.ep:72 +#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:61 msgid "Upload files" msgstr "Invio dei file" @@ -439,11 +555,11 @@ msgstr "Invio dei file" msgid "Uploaded at" msgstr "Invio il" -#: themes/default/templates/index.html.ep:85 +#: themes/default/templates/index.html.ep:103 msgid "Uploaded files" msgstr "File inviati" -#: themes/default/templates/index.html.ep:114 +#: themes/default/templates/partial/index.js.ep:29 msgid "Websocket communication error" msgstr "Errore di comunicazione WebSocket" @@ -456,39 +572,71 @@ msgid "Who wrote this software?" msgstr "Chi ha scritto questo software?" #: themes/default/templates/about.html.ep:11 -msgid "You can see the list of your files by clicking on the \"My files\" link at the top right of this page." -msgstr "Puoi consultare la lista dei vostri file cliccando sul link « I miei file » in alto a destra in questa pagina." +msgid "" +"You can see the list of your files by clicking on the \"My files\" link at " +"the top right of this page." +msgstr "" +"Puoi consultare la lista dei vostri file cliccando sul link « I miei file » " +"in alto a destra in questa pagina." + +#: lib/Lufi/Controller/Mail.pm:42 +msgid "You can't add URLs that are not related to this instance." +msgstr "" #: themes/default/templates/about.html.ep:8 -msgid "You don't need to register yourself to upload files but be aware that, for legal reasons, your IP address will be stored when you send a file. Don't panic, this is normally the case for all sites on which you send files." -msgstr "Non hai bisogno di registrarti per inviare i file ma devi essere consapevole che, per motivi legali, il tuo indirizzo IP sarà registrato quando invierai un file. Non ti preoccupare, avviene in tutti i siti su cui invii dei file." +msgid "" +"You don't need to register yourself to upload files but be aware that, for " +"legal reasons, your IP address will be stored when you send a file. Don't " +"panic, this is normally the case for all sites on which you send files." +msgstr "" +"Non hai bisogno di registrarti per inviare i file ma devi essere consapevole " +"che, per motivi legali, il tuo indirizzo IP sarà registrato quando invierai " +"un file. Non ti preoccupare, avviene in tutti i siti su cui invii dei file." -#: themes/default/templates/render.html.ep:53 -msgid "You don't seem to have a key in your URL. You won't be able to decrypt the file. Download canceled." -msgstr "Sembra che non ci sia una chiave nel tuo URL. Non sarai in grado di decifrare il file. Download annullato." +#: themes/default/templates/partial/render.js.ep:10 +msgid "" +"You don't seem to have a key in your URL. You won't be able to decrypt the " +"file. Download canceled." +msgstr "" +"Sembra che non ci sia una chiave nel tuo URL. Non sarai in grado di " +"decifrare il file. Download annullato." -#: themes/default/templates/render.html.ep:50 -msgid "You have attempted to leave this page. The download will be canceled. Are you sure?" -msgstr "Hai cercato di uscire da questa pagina. Il download sarà cancellato. Sei sicuro?" +#: themes/default/templates/partial/render.js.ep:7 +msgid "" +"You have attempted to leave this page. The download will be canceled. Are " +"you sure?" +msgstr "" +"Hai cercato di uscire da questa pagina. Il download sarà cancellato. Sei " +"sicuro?" -#: themes/default/templates/index.html.ep:99 -msgid "You have attempted to leave this page. The upload will be canceled. Are you sure?" -msgstr "Hai cercato di uscire da questa pagina. L'invio sarà cancellato. Sei sicuro?" +#: themes/default/templates/partial/index.js.ep:13 +msgid "" +"You have attempted to leave this page. The upload will be canceled. Are you " +"sure?" +msgstr "" +"Hai cercato di uscire da questa pagina. L'invio sarà cancellato. Sei sicuro?" -#: themes/default/templates/logout.html.ep:5 +#: themes/default/templates/logout.html.ep:14 msgid "You have been successfully logged out." msgstr "Logout avvenuto con successo." -#: lib/Lufi/Controller/Mail.pm:41 +#: lib/Lufi/Controller/Mail.pm:71 msgid "You must give email addresses." msgstr "Devi fornire gli indirizzi email." +#: themes/default/templates/index.html.ep:29 +msgid "" +"Your browser has not enough entropy to generate a strong encryption key. " +"Please wait (it's better if you do things on your computer while waiting)." +msgstr "" + #. (format_bytes($json->{size}) -#: lib/Lufi/Controller/Files.pm:56 +#: lib/Lufi/Controller/Files.pm:66 msgid "Your file is too big: %1 (maximum size allowed: %2)" -msgstr "Il vostro file è troppo grande : %1 (la dimensione massima permessa è %2)" +msgstr "" +"Il vostro file è troppo grande : %1 (la dimensione massima permessa è %2)" -#: lib/Lufi/Controller/Files.pm:273 +#: lib/Lufi/Controller/Files.pm:304 msgid "Your password is not valid. Please refresh the page to retry." msgstr "" @@ -502,7 +650,7 @@ msgstr "tra %1 e %2, il file sarà conservato %3 giorno(i);" msgid "between %1 and %2, the file will be kept forever." msgstr "tra %1 e %2, il file sarà conservato per sempre;" -#: themes/default/templates/mail.html.ep:85 +#: themes/default/templates/partial/mail.js.ep:42 msgid "deadline: " msgstr "scadenza: " @@ -520,6 +668,6 @@ msgstr "per %1 e più, il file sarà conservato per sempre." msgid "no time limit" msgstr "nessuna limitazione temporale" -#: themes/default/templates/index.html.ep:78 +#: themes/default/templates/index.html.ep:96 msgid "or" msgstr "o" diff --git a/themes/default/lib/Lufi/I18N/lufi.pot b/themes/default/lib/Lufi/I18N/lufi.pot new file mode 100644 index 0000000..52b27d0 --- /dev/null +++ b/themes/default/lib/Lufi/I18N/lufi.pot @@ -0,0 +1,551 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. ($delay) +#. (max_delay) +#: themes/default/templates/index.html.ep:47 themes/default/templates/index.html.ep:56 themes/default/templates/index.html.ep:57 +msgid "%1 days" +msgstr "" + +#: themes/default/templates/partial/index.js.ep:26 +msgid "(max size: XXX)" +msgstr "" + +#: themes/default/templates/index.html.ep:5 +msgid "1 year" +msgstr "" + +#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:56 +msgid "24 hours" +msgstr "" + +#: themes/default/templates/partial/mail.js.ep:40 +msgid ":" +msgstr "" + +#: themes/default/templates/about.html.ep:16 +msgid "A thank you with a photo of kitten on Diaspora* or Mastodon is cool too ;-)" +msgstr "" + +#: themes/default/templates/render.html.ep:42 +msgid "Abort" +msgstr "" + +#: themes/default/templates/layouts/default.html.ep:49 themes/default/templates/layouts/default.html.ep:78 +msgid "About" +msgstr "" + +#: themes/default/templates/index.html.ep:88 +msgid "Add a password to file(s)" +msgstr "" + +#: themes/default/templates/mail.html.ep:16 +msgid "Adding URLs not related to this Lufi instance to the mail body or subject is prohibited." +msgstr "" + +#: themes/default/templates/about.html.ep:18 +msgid "As Lufi is a free software licensed under of the terms of the AGPLv3, you can install it on you own server. Have a look on the Wiki for the procedure." +msgstr "" + +#. (stash('nbslices') +#: themes/default/templates/partial/render.js.ep:9 +msgid "Asking for file part XX1 of %1" +msgstr "" + +#: themes/default/templates/about.html.ep:21 +msgid "Back to homepage" +msgstr "" + +#: lib/Lufi/Controller/Mail.pm:25 +msgid "Bad CSRF token!" +msgstr "" + +#: lib/Lufi/Controller/Auth.pm:22 lib/Lufi/Controller/Auth.pm:39 +msgid "Bad CSRF token." +msgstr "" + +#: themes/default/templates/partial/render.js.ep:5 +msgid "Click here to refresh the page and restart the download." +msgstr "" + +#: themes/default/templates/index.html.ep:98 +msgid "Click to open the file browser" +msgstr "" + +#: themes/default/templates/delays.html.ep:38 +msgid "Close" +msgstr "" + +#: themes/default/templates/mail.html.ep:23 +msgid "Comma-separated email addresses" +msgstr "" + +#: themes/default/templates/partial/index.js.ep:14 +msgid "Copy all links to clipboard" +msgstr "" + +#: themes/default/templates/partial/index.js.ep:17 +msgid "Copy to clipboard" +msgstr "" + +#: lib/Lufi/Controller/Files.pm:460 +msgid "Could not delete the file. You are not authenticated." +msgstr "" + +#: lib/Lufi/Controller/Files.pm:442 +msgid "Could not find the file. Are you sure of the URL and the token?" +msgstr "" + +#: lib/Lufi/Controller/Files.pm:353 +msgid "Could not find the file. Are you sure of the URL?" +msgstr "" + +#: themes/default/templates/files.html.ep:28 +msgid "Counter" +msgstr "" + +#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:81 +msgid "Delete at first download?" +msgstr "" + +#: themes/default/templates/files.html.ep:18 +msgid "Delete selected files" +msgstr "" + +#: themes/default/templates/files.html.ep:32 themes/default/templates/partial/index.js.ep:18 +msgid "Deletion link" +msgstr "" + +#: themes/default/templates/delays.html.ep:8 +msgid "Don't worry: if a user begins to download the file before the expiration and the download ends after the expiration, he will be able to get the file." +msgstr "" + +#: themes/default/templates/partial/index.js.ep:20 themes/default/templates/render.html.ep:28 +msgid "Download" +msgstr "" + +#: themes/default/templates/partial/render.js.ep:4 +msgid "Download aborted." +msgstr "" + +#: themes/default/templates/files.html.ep:27 themes/default/templates/partial/index.js.ep:19 +msgid "Download link" +msgstr "" + +#: themes/default/templates/about.html.ep:10 +msgid "Drag and drop files in the appropriate area or use the traditional way to send files and the files will be chunked, encrypted and sent to the server. You will get two links per file: a download link, that you give to the people you want to share the file with and a deletion link, allowing you to delete the file whenever you want." +msgstr "" + +#: themes/default/templates/index.html.ep:94 +msgid "Drop files here" +msgstr "" + +#: themes/default/templates/mail.html.ep:39 +msgid "Email body" +msgstr "" + +#: themes/default/templates/mail.html.ep:31 +msgid "Email subject" +msgstr "" + +#: themes/default/templates/mail.html.ep:25 themes/default/templates/mail.html.ep:27 +msgid "Emails" +msgstr "" + +#: themes/default/templates/partial/index.js.ep:21 +msgid "Encrypting part XX1 of XX2" +msgstr "" + +#: lib/Lufi/Controller/Files.pm:242 +msgid "Error: the file existed but was deleted." +msgstr "" + +#: lib/Lufi/Controller/Files.pm:322 +msgid "Error: the file has not been sent entirely." +msgstr "" + +#: lib/Lufi/Controller/Files.pm:332 +msgid "Error: unable to find the file. Are you sure of your URL?" +msgstr "" + +#: themes/default/templates/partial/index.js.ep:22 +msgid "Expiration:" +msgstr "" + +#: themes/default/templates/files.html.ep:31 +msgid "Expires at" +msgstr "" + +#: themes/default/templates/files.html.ep:12 +msgid "Export localStorage data" +msgstr "" + +#: lib/Lufi/Controller/Files.pm:424 +msgid "File deleted" +msgstr "" + +#: themes/default/templates/files.html.ep:26 +msgid "File name" +msgstr "" + +#: themes/default/templates/index.html.ep:71 +msgid "Files deleted at first download" +msgstr "" + +#: themes/default/templates/partial/render.js.ep:8 +msgid "Get the file" +msgstr "" + +#: themes/default/templates/about.html.ep:19 +msgid "Get the source code on the official repository or on its Github mirror" +msgstr "" + +#: themes/default/templates/partial/mail.js.ep:35 +msgid "Hello,\\n\\nHere's some files I want to share with you:\\n" +msgstr "" + +#: themes/default/templates/mail.html.ep:35 +msgid "Here's some files" +msgstr "" + +#: themes/default/templates/partial/index.js.ep:24 +msgid "Hit Enter, then Ctrl+C to copy all the download links" +msgstr "" + +#: themes/default/templates/partial/index.js.ep:23 +msgid "Hit Enter, then Ctrl+C to copy the download link" +msgstr "" + +#: themes/default/templates/about.html.ep:9 +msgid "How does it work?" +msgstr "" + +#: themes/default/templates/about.html.ep:17 +msgid "How to install the software on my server?" +msgstr "" + +#: themes/default/templates/about.html.ep:12 +msgid "How to report an illegal file?" +msgstr "" + +#: themes/default/templates/delays.html.ep:7 +msgid "If you choose a delay, the file will be deleted after that delay." +msgstr "" + +#: themes/default/templates/mail.html.ep:15 +msgid "If you send the mail from this server, the links will be sent to the server, which may lower your privacy protection." +msgstr "" + +#: themes/default/templates/files.html.ep:14 +msgid "Import localStorage data" +msgstr "" + +#: themes/default/templates/index.html.ep:44 +msgid "Important: more information on delays" +msgstr "" + +#: themes/default/templates/delays.html.ep:5 +msgid "Information about delays" +msgstr "" + +#: themes/default/templates/partial/render.js.ep:6 +msgid "It seems that the key in your URL is incorrect. Please, verify your URL." +msgstr "" + +#: themes/default/templates/index.html.ep:12 +msgid "Javascript is disabled. You won't be able to use Lufi." +msgstr "" + +#: themes/default/templates/layouts/default.html.ep:40 themes/default/templates/layouts/default.html.ep:42 themes/default/templates/layouts/default.html.ep:69 themes/default/templates/layouts/default.html.ep:71 +msgid "Language" +msgstr "" + +#: themes/default/templates/login.html.ep:15 +msgid "Login" +msgstr "" + +#: themes/default/templates/layouts/default.html.ep:54 themes/default/templates/layouts/default.html.ep:80 +msgid "Logout" +msgstr "" + +#: themes/default/templates/about.html.ep:4 +msgid "Lufi is a free (as in free speech) file hosting software." +msgstr "" + +#: themes/default/templates/files.html.ep:33 +msgid "Mail" +msgstr "" + +#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:63 +msgid "My files" +msgstr "" + +#. (format_bytes($json->{size}) +#: lib/Lufi/Controller/Files.pm:79 +msgid "No enough space available on the server for this file (size: %1)." +msgstr "" + +#: themes/default/templates/partial/files.js.ep:10 themes/default/templates/partial/index.js.ep:27 +msgid "No expiration delay" +msgstr "" + +#: themes/default/templates/files.html.ep:8 +msgid "Only the files sent with this browser will be listed here. This list is stored in localStorage: if you delete your localStorage data, you'll lose this list." +msgstr "" + +#: themes/default/templates/index.html.ep:87 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 +msgid "Password" +msgstr "" + +#. (config('contact') +#: themes/default/templates/about.html.ep:13 +msgid "Please contact the administrator: %1" +msgstr "" + +#: themes/default/templates/render.html.ep:33 +msgid "Please wait while we are getting your file. We first need to download and decrypt all parts before you can get it." +msgstr "" + +#: lib/Lufi/Controller/Auth.pm:28 +msgid "Please, check your credentials or your right to access this service: unable to authenticate." +msgstr "" + +#: themes/default/templates/about.html.ep:5 +msgid "Privacy" +msgstr "" + +#: themes/default/templates/files.html.ep:13 +msgid "Purge expired files from localStorage" +msgstr "" + +#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:60 +msgid "Report file" +msgstr "" + +#: themes/default/templates/files.html.ep:9 +msgid "Rows in red mean that the files have expired and are no longer available." +msgstr "" + +#: themes/default/templates/partial/index.js.ep:25 +msgid "Send all links by email" +msgstr "" + +#: themes/default/templates/mail.html.ep:46 +msgid "Send with this server" +msgstr "" + +#: themes/default/templates/mail.html.ep:47 +msgid "Send with your own mail software" +msgstr "" + +#: themes/default/templates/partial/index.js.ep:28 +msgid "Sending part XX1 of XX2. Please, be patient, the progress bar can take a while to move." +msgstr "" + +#. (url_for('/') +#: themes/default/templates/partial/mail.js.ep:48 +msgid "Share your files in total privacy on %1" +msgstr "" + +#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:65 themes/default/templates/login.html.ep:27 themes/default/templates/logout.html.ep:17 +msgid "Signin" +msgstr "" + +#: themes/default/templates/index.html.ep:37 +msgid "Sorry, the uploading is currently disabled. Please try again later." +msgstr "" + +#: lib/Lufi/Controller/Files.pm:53 +msgid "Sorry, uploading is disabled." +msgstr "" + +#: themes/default/templates/about.html.ep:7 +msgid "The administrator can only see the file's name, its size and its mimetype (what kind of file it is: video, text, etc.)." +msgstr "" + +#: lib/Lufi/Controller/Mail.pm:53 +msgid "The body of the mail must contain at least one URL pointing to a file hosted on this instance." +msgstr "" + +#: themes/default/templates/partial/files.js.ep:11 +msgid "The data has been successfully imported." +msgstr "" + +#: lib/Lufi/Controller/Mail.pm:73 +msgid "The email body can't be empty." +msgstr "" + +#: lib/Lufi/Controller/Mail.pm:72 +msgid "The email subject can't be empty." +msgstr "" + +#: lib/Lufi/Controller/Files.pm:421 +msgid "The file has already been deleted" +msgstr "" + +#: themes/default/templates/about.html.ep:6 +msgid "The files uploaded on a Lufi instance are encrypted before the upload to the server: the administrator of the server can not see the file's content." +msgstr "" + +#. (join(', ', @bad) +#: lib/Lufi/Controller/Mail.pm:68 +msgid "The following email addresses are not valid: %1" +msgstr "" + +#: themes/default/templates/partial/index.js.ep:15 +msgid "The link(s) has been copied to your clipboard" +msgstr "" + +#: lib/Lufi/Controller/Mail.pm:97 +msgid "The mail has been sent." +msgstr "" + +#: themes/default/templates/about.html.ep:15 +msgid "The original (and only for now) author is Luc Didry. If you want to support him, you can do it via Tipeee or via Liberapay." +msgstr "" + +#: lib/Lufi/Controller/Files.pm:189 +msgid "The server was unable to find the file record to add your file part to. Please, contact the administrator." +msgstr "" + +#: lib/Lufi/Controller/Files.pm:248 +msgid "This file has been deactivated by the admins. Contact them to know why." +msgstr "" + +#: themes/default/templates/delays.html.ep:10 +msgid "This server sets limitations according to the file size. The expiration delay of your file will be the minimum between what you choose and the following limitations:" +msgstr "" + +#: themes/default/templates/partial/index.js.ep:16 +msgid "Unable to copy the link(s) to your clipboard" +msgstr "" + +#. ($short) +#: lib/Lufi/Controller/Files.pm:392 +msgid "Unable to get counter for %1. The file does not exists. It will be removed from your localStorage." +msgstr "" + +#. ($short) +#: lib/Lufi/Controller/Files.pm:382 +msgid "Unable to get counter for %1. The token is invalid." +msgstr "" + +#. ($short) +#: lib/Lufi/Controller/Files.pm:402 +msgid "Unable to get counter for %1. You are not authenticated." +msgstr "" + +#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:62 +msgid "Upload files" +msgstr "" + +#: themes/default/templates/files.html.ep:30 +msgid "Uploaded at" +msgstr "" + +#: themes/default/templates/index.html.ep:103 +msgid "Uploaded files" +msgstr "" + +#: themes/default/templates/partial/index.js.ep:29 +msgid "Websocket communication error" +msgstr "" + +#: themes/default/templates/about.html.ep:3 +msgid "What is Lufi?" +msgstr "" + +#: themes/default/templates/about.html.ep:14 +msgid "Who wrote this software?" +msgstr "" + +#: themes/default/templates/about.html.ep:11 +msgid "You can see the list of your files by clicking on the \"My files\" link at the top right of this page." +msgstr "" + +#: lib/Lufi/Controller/Mail.pm:42 +msgid "You can't add URLs that are not related to this instance." +msgstr "" + +#: themes/default/templates/about.html.ep:8 +msgid "You don't need to register yourself to upload files but be aware that, for legal reasons, your IP address will be stored when you send a file. Don't panic, this is normally the case for all sites on which you send files." +msgstr "" + +#: themes/default/templates/partial/render.js.ep:10 +msgid "You don't seem to have a key in your URL. You won't be able to decrypt the file. Download canceled." +msgstr "" + +#: themes/default/templates/partial/render.js.ep:7 +msgid "You have attempted to leave this page. The download will be canceled. Are you sure?" +msgstr "" + +#: themes/default/templates/partial/index.js.ep:13 +msgid "You have attempted to leave this page. The upload will be canceled. Are you sure?" +msgstr "" + +#: themes/default/templates/logout.html.ep:14 +msgid "You have been successfully logged out." +msgstr "" + +#: lib/Lufi/Controller/Mail.pm:71 +msgid "You must give email addresses." +msgstr "" + +#: themes/default/templates/index.html.ep:29 +msgid "Your browser has not enough entropy to generate a strong encryption key. Please wait (it's better if you do things on your computer while waiting)." +msgstr "" + +#. (format_bytes($json->{size}) +#: lib/Lufi/Controller/Files.pm:66 +msgid "Your file is too big: %1 (maximum size allowed: %2)" +msgstr "" + +#: lib/Lufi/Controller/Files.pm:304 +msgid "Your password is not valid. Please refresh the page to retry." +msgstr "" + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:20 +msgid "between %1 and %2, the file will be kept %3 day(s)." +msgstr "" + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:22 +msgid "between %1 and %2, the file will be kept forever." +msgstr "" + +#: themes/default/templates/partial/mail.js.ep:42 +msgid "deadline: " +msgstr "" + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:26 +msgid "for %1 and more, the file will be kept %2 day(s)" +msgstr "" + +#. (format_bytes($keys[$i]) +#: themes/default/templates/delays.html.ep:28 +msgid "for %1 and more, the file will be kept forever." +msgstr "" + +#: themes/default/templates/index.html.ep:3 +msgid "no time limit" +msgstr "" + +#: themes/default/templates/index.html.ep:96 +msgid "or" +msgstr "" diff --git a/themes/default/lib/Lufi/I18N/nl.po b/themes/default/lib/Lufi/I18N/nl.po index 21e0078..849745c 100644 --- a/themes/default/lib/Lufi/I18N/nl.po +++ b/themes/default/lib/Lufi/I18N/nl.po @@ -1,49 +1,85 @@ -# Lufi Dutch translation. -# Copyright (C) 2015 Luc Didry -# This file is distributed under the same license as the LUFI package. -# Ilker Kulgu , 2017. -# +# Luc Didry , 2018. #zanata +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2018-10-28 01:56+0000\n" +"Last-Translator: Copied by Zanata \n" +"Language-Team: Dutch\n" +"Language: nl\n" +"X-Generator: Zanata 4.6.2\n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" #. ($delay) #. (max_delay) -#: themes/default/templates/index.html.ep:40 themes/default/templates/index.html.ep:49 themes/default/templates/index.html.ep:50 +#: themes/default/templates/index.html.ep:47 themes/default/templates/index.html.ep:56 themes/default/templates/index.html.ep:57 msgid "%1 days" msgstr "%1 dagen" +#: themes/default/templates/partial/index.js.ep:26 +msgid "(max size: XXX)" +msgstr "" + #: themes/default/templates/index.html.ep:5 msgid "1 year" msgstr "1 jaar" -#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:49 +#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:56 msgid "24 hours" msgstr "24 uur" -#: themes/default/templates/mail.html.ep:83 +#: themes/default/templates/partial/mail.js.ep:40 msgid ":" msgstr ":" #: themes/default/templates/about.html.ep:16 -msgid "A thank you with a photo of kitten on Diaspora* or Mastodon is cool too ;-)" -msgstr "Een bedankt foto met een katje op Diaspora* of Mastodon is ook goed ;-)" +msgid "" +"A thank you with a photo of kitten on Diaspora* or " +"Mastodon " +"is cool too ;-)" +msgstr "" +"Een bedankt foto met een katje op Diaspora* of Mastodon is " +"ook goed ;-)" #: themes/default/templates/render.html.ep:42 msgid "Abort" msgstr "Annuleren" -#: themes/default/templates/layouts/default.html.ep:65 themes/default/templates/layouts/default.html.ep:77 +#: themes/default/templates/layouts/default.html.ep:48 themes/default/templates/layouts/default.html.ep:76 msgid "About" msgstr "Over" -#: themes/default/templates/index.html.ep:71 +#: themes/default/templates/index.html.ep:88 msgid "Add a password to file(s)" msgstr "" -#: themes/default/templates/about.html.ep:18 -msgid "As Lufi is a free software licensed under of the terms of the AGPLv3, you can install it on you own server. Have a look on the Wiki for the procedure." -msgstr "Aangezien Lufi een gratis software id die gelicentieerd staat onder de voorwaarden van AGPLv3, kan je het installeren op je eigen server. Bekijk Wiki voor de procedure." +#: themes/default/templates/mail.html.ep:16 +msgid "" +"Adding URLs not related to this Lufi instance to the mail body or subject is " +"prohibited." +msgstr "" -#. (stash('f') -#: themes/default/templates/render.html.ep:52 +#: themes/default/templates/about.html.ep:18 +msgid "" +"As Lufi is a free software licensed under of the terms of the AGPLv3, you can " +"install it on you own server. Have a look on the Wiki for the procedure." +msgstr "" +"Aangezien Lufi een gratis software id die gelicentieerd staat onder de " +"voorwaarden van AGPLv3, kan je het installeren op je eigen server. Bekijk Wiki " +"voor de procedure." + +#. (stash('nbslices') +#: themes/default/templates/partial/render.js.ep:9 msgid "Asking for file part XX1 of %1" msgstr "Deel XX1 van %1 wordt opgehaald" @@ -51,15 +87,19 @@ msgstr "Deel XX1 van %1 wordt opgehaald" msgid "Back to homepage" msgstr "Terug naar home" -#: lib/Lufi/Controller/Mail.pm:21 +#: lib/Lufi/Controller/Mail.pm:25 msgid "Bad CSRF token!" msgstr "Verkeerde CSRF token!" -#: themes/default/templates/render.html.ep:48 +#: lib/Lufi/Controller/Auth.pm:22 lib/Lufi/Controller/Auth.pm:39 +msgid "Bad CSRF token." +msgstr "" + +#: themes/default/templates/partial/render.js.ep:5 msgid "Click here to refresh the page and restart the download." msgstr "Klik hier om de pagina te verversen en opnieuw te downloaden." -#: themes/default/templates/index.html.ep:80 +#: themes/default/templates/index.html.ep:98 msgid "Click to open the file browser" msgstr "Klik voor bestandbrowser" @@ -67,27 +107,27 @@ msgstr "Klik voor bestandbrowser" msgid "Close" msgstr "Sluiten" -#: themes/default/templates/mail.html.ep:22 +#: themes/default/templates/mail.html.ep:23 msgid "Comma-separated email addresses" msgstr "Komma gescheiden email adressen" -#: themes/default/templates/index.html.ep:100 +#: themes/default/templates/partial/index.js.ep:14 msgid "Copy all links to clipboard" msgstr "Kopieer alle links naar klembord" -#: themes/default/templates/index.html.ep:103 +#: themes/default/templates/partial/index.js.ep:17 msgid "Copy to clipboard" msgstr "Kopieer naar klembord" -#: lib/Lufi/Controller/Files.pm:429 +#: lib/Lufi/Controller/Files.pm:460 msgid "Could not delete the file. You are not authenticated." msgstr "Kan het bestand niet verwijderen. Je bent niet geautoriseerd." -#: lib/Lufi/Controller/Files.pm:411 +#: lib/Lufi/Controller/Files.pm:442 msgid "Could not find the file. Are you sure of the URL and the token?" msgstr "Kan het bestand niet vinden. Klopt de URL en token wel?" -#: lib/Lufi/Controller/Files.pm:322 +#: lib/Lufi/Controller/Files.pm:353 msgid "Could not find the file. Are you sure of the URL?" msgstr "Kan het bestand niet vinden. Klopt de URL?" @@ -95,7 +135,7 @@ msgstr "Kan het bestand niet vinden. Klopt de URL?" msgid "Counter" msgstr "Teller" -#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:64 +#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:81 msgid "Delete at first download?" msgstr "Verwijder na eerste download?" @@ -103,63 +143,77 @@ msgstr "Verwijder na eerste download?" msgid "Delete selected files" msgstr "" -#: themes/default/templates/files.html.ep:32 themes/default/templates/index.html.ep:104 +#: themes/default/templates/files.html.ep:32 themes/default/templates/partial/index.js.ep:18 msgid "Deletion link" msgstr "Verwijderingslink" #: themes/default/templates/delays.html.ep:8 -msgid "Don't worry: if a user begins to download the file before the expiration and the download ends after the expiration, he will be able to get the file." -msgstr "Geen zorgen: als een gebruiker de download start voor de vervaldatum, dan zal die het bestand kunnen binnenhalen." +msgid "" +"Don't worry: if a user begins to download the file before the expiration and " +"the download ends after the expiration, he will be able to get the file." +msgstr "" +"Geen zorgen: als een gebruiker de download start voor de vervaldatum, dan " +"zal die het bestand kunnen binnenhalen." -#: themes/default/templates/index.html.ep:106 themes/default/templates/render.html.ep:28 +#: themes/default/templates/partial/index.js.ep:20 themes/default/templates/render.html.ep:28 msgid "Download" msgstr "Download" -#: themes/default/templates/render.html.ep:47 +#: themes/default/templates/partial/render.js.ep:4 msgid "Download aborted." msgstr "Download geannuleerd." -#: themes/default/templates/files.html.ep:27 themes/default/templates/index.html.ep:105 +#: themes/default/templates/files.html.ep:27 themes/default/templates/partial/index.js.ep:19 msgid "Download link" msgstr "Download link" #: themes/default/templates/about.html.ep:10 -msgid "Drag and drop files in the appropriate area or use the traditional way to send files and the files will be chunked, encrypted and sent to the server. You will get two links per file: a download link, that you give to the people you want to share the file with and a deletion link, allowing you to delete the file whenever you want." -msgstr "Drag and drop bestanden in de daarvoor bestemde locatie of gebruik de traditionele weg om bestanden encrypted op te sturen naar server. Je zal 2 linkjes per bestand krijgen: een download link, die stuur je naar personen waarmee je het bestand wilt delen en een verwijderings link, waarmee je het bestand kan verwijderen wanneer je dat wilt." +msgid "" +"Drag and drop files in the appropriate area or use the traditional way to " +"send files and the files will be chunked, encrypted and sent to the server. " +"You will get two links per file: a download link, that you give to the " +"people you want to share the file with and a deletion link, allowing you to " +"delete the file whenever you want." +msgstr "" +"Drag and drop bestanden in de daarvoor bestemde locatie of gebruik de " +"traditionele weg om bestanden encrypted op te sturen naar server. Je zal 2 " +"linkjes per bestand krijgen: een download link, die stuur je naar personen " +"waarmee je het bestand wilt delen en een verwijderings link, waarmee je het " +"bestand kan verwijderen wanneer je dat wilt." -#: themes/default/templates/index.html.ep:77 +#: themes/default/templates/index.html.ep:94 msgid "Drop files here" msgstr "Sleep bestand(en) naar dit venster" -#: themes/default/templates/mail.html.ep:38 +#: themes/default/templates/mail.html.ep:39 msgid "Email body" msgstr "Email inhoud" -#: themes/default/templates/mail.html.ep:30 +#: themes/default/templates/mail.html.ep:31 msgid "Email subject" msgstr "Onderwerp" -#: themes/default/templates/mail.html.ep:24 themes/default/templates/mail.html.ep:26 +#: themes/default/templates/mail.html.ep:25 themes/default/templates/mail.html.ep:27 msgid "Emails" msgstr "Emails" -#: themes/default/templates/index.html.ep:107 +#: themes/default/templates/partial/index.js.ep:21 msgid "Encrypting part XX1 of XX2" msgstr "Encrypten deel XX1 van XX2 " -#: lib/Lufi/Controller/Files.pm:225 +#: lib/Lufi/Controller/Files.pm:242 msgid "Error: the file existed but was deleted." msgstr "Fout: het bestand bestond wel maar is verwijderd." -#: lib/Lufi/Controller/Files.pm:291 +#: lib/Lufi/Controller/Files.pm:322 msgid "Error: the file has not been sent entirely." msgstr "Fout: het bestand is niet volledig opgestuurd." -#: lib/Lufi/Controller/Files.pm:301 +#: lib/Lufi/Controller/Files.pm:332 msgid "Error: unable to find the file. Are you sure of your URL?" msgstr "Fout: kan het bestand niet vinden. Is de URL juist?" -#: themes/default/templates/index.html.ep:108 +#: themes/default/templates/partial/index.js.ep:22 msgid "Expiration:" msgstr "Vervaldatum:" @@ -171,7 +225,7 @@ msgstr "Vervalt op" msgid "Export localStorage data" msgstr "Exporteer opgeslagen data" -#: lib/Lufi/Controller/Files.pm:393 +#: lib/Lufi/Controller/Files.pm:424 msgid "File deleted" msgstr "Bestand verwijderd" @@ -179,27 +233,37 @@ msgstr "Bestand verwijderd" msgid "File name" msgstr "Bestandsnaam" -#: themes/default/templates/render.html.ep:51 +#: themes/default/templates/index.html.ep:71 +msgid "Files deleted at first download" +msgstr "" + +#: themes/default/templates/partial/render.js.ep:8 msgid "Get the file" msgstr "Download bestand" #: themes/default/templates/about.html.ep:19 -msgid "Get the source code on the official repository or on its Github mirror" -msgstr "Krijg de broncode op de officiële repository of op Github mirror" +msgid "" +"Get the source code on the official repository or on its Github mirror" +msgstr "" +"Krijg de broncode op de officiële repository of op Github mirror" -#: themes/default/templates/mail.html.ep:78 +#: themes/default/templates/partial/mail.js.ep:35 msgid "Hello,\\n\\nHere's some files I want to share with you:\\n" msgstr "Hallo,\\n\\nHier zijn enkele bestanden die ik met je wil delen:\\n\\n" -#: themes/default/templates/mail.html.ep:34 +#: themes/default/templates/mail.html.ep:35 msgid "Here's some files" msgstr "Hier zijn enkele bestanden" -#: themes/default/templates/index.html.ep:110 +#: themes/default/templates/partial/index.js.ep:24 msgid "Hit Enter, then Ctrl+C to copy all the download links" msgstr "Druk Enter, vervolgens CTRL+C om alle download links te kopieeren" -#: themes/default/templates/index.html.ep:109 +#: themes/default/templates/partial/index.js.ep:23 msgid "Hit Enter, then Ctrl+C to copy the download link" msgstr "Druk Enter, vervolgens CTRL+C om de download link te kopieeren" @@ -217,17 +281,23 @@ msgstr "Hoe rapporteer ik een verdachte bestand?" #: themes/default/templates/delays.html.ep:7 msgid "If you choose a delay, the file will be deleted after that delay." -msgstr "Als je een uitstel kiest, zal het bestand na die uitstel tijd verwijderd worden." +msgstr "" +"Als je een uitstel kiest, zal het bestand na die uitstel tijd verwijderd " +"worden." #: themes/default/templates/mail.html.ep:15 -msgid "If you send the mail from this server, the links will be sent to the server, which may lower your privacy protection." -msgstr "Als je een mail via de server verstuurt, zullen links naar de server verstuurd worden waardoor je lagere privacy protection zal hebben." +msgid "" +"If you send the mail from this server, the links will be sent to the server, " +"which may lower your privacy protection." +msgstr "" +"Als je een mail via de server verstuurt, zullen links naar de server " +"verstuurd worden waardoor je lagere privacy protection zal hebben." #: themes/default/templates/files.html.ep:14 msgid "Import localStorage data" msgstr "Importeer opgeslagen data" -#: themes/default/templates/index.html.ep:37 +#: themes/default/templates/index.html.ep:44 msgid "Important: more information on delays" msgstr "Belangrijk: meer informatie over uitstel" @@ -235,19 +305,25 @@ msgstr "Belangrijk: meer informatie over uitstel" msgid "Information about delays" msgstr "Informatie over uitstel" -#: themes/default/templates/render.html.ep:49 -msgid "It seems that the key in your URL is incorrect. Please, verify your URL." -msgstr "Het lijkt er op dat de sleutel in je URL niet klopt. Controleer je URL." +#: themes/default/templates/partial/render.js.ep:6 +msgid "" +"It seems that the key in your URL is incorrect. Please, verify your URL." +msgstr "" +"Het lijkt er op dat de sleutel in je URL niet klopt. Controleer je URL." #: themes/default/templates/index.html.ep:12 msgid "Javascript is disabled. You won't be able to use Lufi." msgstr "Javascript is uitgeschakeld. Je kan geen gebruik maken van Lufi." +#: themes/default/templates/layouts/default.html.ep:40 themes/default/templates/layouts/default.html.ep:68 +msgid "Language" +msgstr "" + #: themes/default/templates/login.html.ep:15 msgid "Login" msgstr "Login" -#: themes/default/templates/layouts/default.html.ep:67 themes/default/templates/layouts/default.html.ep:79 +#: themes/default/templates/layouts/default.html.ep:53 themes/default/templates/layouts/default.html.ep:78 msgid "Logout" msgstr "Logout" @@ -259,24 +335,30 @@ msgstr "Lufi is een gratis bestand hosting software." msgid "Mail" msgstr "" -#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:61 themes/default/templates/layouts/default.html.ep:73 +#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:62 msgid "My files" msgstr "Mijn bestanden" #. (format_bytes($json->{size}) -#: lib/Lufi/Controller/Files.pm:69 +#: lib/Lufi/Controller/Files.pm:79 msgid "No enough space available on the server for this file (size: %1)." msgstr "Geen genoeg ruimte op de server voor deze bestand (grootte: %1)." -#: themes/default/templates/files.html.ep:45 themes/default/templates/index.html.ep:112 +#: themes/default/templates/partial/files.js.ep:10 themes/default/templates/partial/index.js.ep:27 msgid "No expiration delay" msgstr "Geen verloop uitstel" #: themes/default/templates/files.html.ep:8 -msgid "Only the files sent with this browser will be listed here. This list is stored in localStorage: if you delete your localStorage data, you'll lose this list." -msgstr "Alleen bestanden die via deze browser zijn verstuurd zijn hier zichtbaar. Deze lijst is opgeslagen: als je opgeslagen data verwijderd, zal je deze lijst verlizen." +msgid "" +"Only the files sent with this browser will be listed here. This list is " +"stored in localStorage: if you delete your localStorage data, you'll lose " +"this list." +msgstr "" +"Alleen bestanden die via deze browser zijn verstuurd zijn hier zichtbaar. " +"Deze lijst is opgeslagen: als je opgeslagen data verwijderd, zal je deze " +"lijst verlizen." -#: themes/default/templates/index.html.ep:70 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 +#: themes/default/templates/index.html.ep:87 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 msgid "Password" msgstr "Wachtwoord" @@ -286,11 +368,17 @@ msgid "Please contact the administrator: %1" msgstr "Neem contact op met administrator: %1" #: themes/default/templates/render.html.ep:33 -msgid "Please wait while we are getting your file. We first need to download and decrypt all parts before you can get it." -msgstr "Een ogenblik geduld, we pakken je bestand er bij. We moeten alle delen downloaden en decrypten voordat je het kan downloaden." +msgid "" +"Please wait while we are getting your file. We first need to download and " +"decrypt all parts before you can get it." +msgstr "" +"Een ogenblik geduld, we pakken je bestand er bij. We moeten alle delen " +"downloaden en decrypten voordat je het kan downloaden." -#: lib/Lufi.pm:191 -msgid "Please, check your credentials: unable to authenticate." +#: lib/Lufi/Controller/Auth.pm:28 +msgid "" +"Please, check your credentials or your right to access this service: unable " +"to authenticate." msgstr "" #: themes/default/templates/about.html.ep:5 @@ -301,120 +389,162 @@ msgstr "Privacy" msgid "Purge expired files from localStorage" msgstr "Verwijder verlopen data" -#: -msgid "Register" -msgstr "Registreer" +#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:59 +msgid "Report file" +msgstr "" #: themes/default/templates/files.html.ep:9 -msgid "Rows in red mean that the files have expired and are no longer available." +msgid "" +"Rows in red mean that the files have expired and are no longer available." msgstr "Rode rijen betekenen dat deze bestanden verlopen en verwijderd zijn." -#: themes/default/templates/index.html.ep:111 +#: themes/default/templates/partial/index.js.ep:25 msgid "Send all links by email" msgstr "Verstuur alle links via mail" -#: themes/default/templates/mail.html.ep:45 +#: themes/default/templates/mail.html.ep:46 msgid "Send with this server" msgstr "Verstuur via deze server" -#: themes/default/templates/mail.html.ep:46 +#: themes/default/templates/mail.html.ep:47 msgid "Send with your own mail software" msgstr "Verstuur via eigen mail software" -#: themes/default/templates/index.html.ep:113 -msgid "Sending part XX1 of XX2. Please, be patient, the progress bar can take a while to move." +#: themes/default/templates/partial/index.js.ep:28 +msgid "" +"Sending part XX1 of XX2. Please, be patient, the progress bar can take a " +"while to move." msgstr "Versturen deel XX1 van XX2. Een ogenblik geduld..." #. (url_for('/') -#: themes/default/templates/mail.html.ep:91 +#: themes/default/templates/partial/mail.js.ep:48 msgid "Share your files in total privacy on %1" msgstr "Deel je bestanden met volledige privacy op %1" -#: themes/default/templates/layouts/default.html.ep:63 themes/default/templates/layouts/default.html.ep:75 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8 +#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:64 themes/default/templates/login.html.ep:27 themes/default/templates/logout.html.ep:17 msgid "Signin" msgstr "Inloggen" -#: lib/Lufi.pm:194 -msgid "Sorry mate, you are not authorised to use that service. Contact your sysadmin if you think there's a glitch in the matrix." -msgstr "" - -#: themes/default/templates/index.html.ep:30 +#: themes/default/templates/index.html.ep:37 msgid "Sorry, the uploading is currently disabled. Please try again later." -msgstr "Sorry, uploaden is momenteel uitgeschakeld. Probeer het later nogmaals." +msgstr "" +"Sorry, uploaden is momenteel uitgeschakeld. Probeer het later nogmaals." -#: lib/Lufi/Controller/Files.pm:43 +#: lib/Lufi/Controller/Files.pm:53 msgid "Sorry, uploading is disabled." msgstr "SOrry, uploaden is uitgeschakeld." #: themes/default/templates/about.html.ep:7 -msgid "The administrator can only see the file's name, its size and its mimetype (what kind of file it is: video, text, etc.)." -msgstr "Beheerders zien alleen bestandsnamen, grootte en mimetype (wat voor soort bestand het is: video, tekst etc.)." +msgid "" +"The administrator can only see the file's name, its size and its mimetype " +"(what kind of file it is: video, text, etc.)." +msgstr "" +"Beheerders zien alleen bestandsnamen, grootte en mimetype (wat voor soort " +"bestand het is: video, tekst etc.)." + +#: lib/Lufi/Controller/Mail.pm:53 +msgid "" +"The body of the mail must contain at least one URL pointing to a file hosted " +"on this instance." +msgstr "" -#: themes/default/templates/files.html.ep:46 +#: themes/default/templates/partial/files.js.ep:11 msgid "The data has been successfully imported." msgstr "Data is succesvol geimporteerd." -#: lib/Lufi/Controller/Mail.pm:43 +#: lib/Lufi/Controller/Mail.pm:73 msgid "The email body can't be empty." msgstr "Mail inhoud kan niet leeg zijn." -#: lib/Lufi/Controller/Mail.pm:42 +#: lib/Lufi/Controller/Mail.pm:72 msgid "The email subject can't be empty." msgstr "Onderwerp kan niet leeg zijn." -#: lib/Lufi/Controller/Files.pm:390 +#: lib/Lufi/Controller/Files.pm:421 msgid "The file has already been deleted" msgstr "Bestand is reeds verwijderd" #: themes/default/templates/about.html.ep:6 -msgid "The files uploaded on a Lufi instance are encrypted before the upload to the server: the administrator of the server can not see the file's content." -msgstr "Bestanden die geupload zijn naar Lufi worden voor de upload versleuteld: beheerders van de server kunnen de inhoud van het bestand niet zien." +msgid "" +"The files uploaded on a Lufi instance are encrypted before the upload to the " +"server: the administrator of the server can not see the file's content." +msgstr "" +"Bestanden die geupload zijn naar Lufi worden voor de upload versleuteld: " +"beheerders van de server kunnen de inhoud van het bestand niet zien." #. (join(', ', @bad) -#: lib/Lufi/Controller/Mail.pm:38 +#: lib/Lufi/Controller/Mail.pm:68 msgid "The following email addresses are not valid: %1" msgstr "Volgende email adressen zijn niet geldig: %1" -#: themes/default/templates/index.html.ep:101 +#: themes/default/templates/partial/index.js.ep:15 msgid "The link(s) has been copied to your clipboard" msgstr "De link is gekopieerd naar je klembord" -#: lib/Lufi/Controller/Mail.pm:66 +#: lib/Lufi/Controller/Mail.pm:97 msgid "The mail has been sent." msgstr "Email is verzonden." #: themes/default/templates/about.html.ep:15 -msgid "The original (and only for now) author is Luc Didry. If you want to support him, you can do it via Tipeee or via Liberapay." -msgstr "De oorspronkelijke auteur is Luc Didry. Als je hem wilt ondersteunen, dan kan dat via Tipeee of via Liberapay." +msgid "" +"The original (and only for now) author is Luc Didry. If you want to support him, you can do it " +"via Tipeee " +"or via Liberapay." +msgstr "" +"De oorspronkelijke auteur is Luc Didry. Als je hem wilt ondersteunen, dan kan dat via Tipeee of via " +"Liberapay." + +#: lib/Lufi/Controller/Files.pm:189 +msgid "" +"The server was unable to find the file record to add your file part to. " +"Please, contact the administrator." +msgstr "" +"Server kon een deel van het bestand niet vinden. Neem contact op met " +"beheerder." -#: lib/Lufi/Controller/Files.pm:179 -msgid "The server was unable to find the file record to add your file part to. Please, contact the administrator." -msgstr "Server kon een deel van het bestand niet vinden. Neem contact op met beheerder." +#: lib/Lufi/Controller/Files.pm:248 +msgid "" +"This file has been deactivated by the admins. Contact them to know why." +msgstr "" #: themes/default/templates/delays.html.ep:10 -msgid "This server sets limitations according to the file size. The expiration delay of your file will be the minimum between what you choose and the following limitations:" -msgstr "Deze server stelt beperkingen vast volgens de bestandsgrootte. De vervaldatum van uw bestand zal het minimum zijn tussen wat u kiest en de volgende beperkingen:" +msgid "" +"This server sets limitations according to the file size. The expiration " +"delay of your file will be the minimum between what you choose and the " +"following limitations:" +msgstr "" +"Deze server stelt beperkingen vast volgens de bestandsgrootte. De " +"vervaldatum van uw bestand zal het minimum zijn tussen wat u kiest en de " +"volgende beperkingen:" -#: themes/default/templates/index.html.ep:102 +#: themes/default/templates/partial/index.js.ep:16 msgid "Unable to copy the link(s) to your clipboard" msgstr "Kan de link(s) niet naar je klembord kopieeren" #. ($short) -#: lib/Lufi/Controller/Files.pm:361 -msgid "Unable to get counter for %1. The file does not exists. It will be removed from your localStorage." -msgstr "Kan geen teller verkrijgen voor %1. Bestand bestaat niet. Het zal verwijderd worden van opgeslagen data." +#: lib/Lufi/Controller/Files.pm:392 +msgid "" +"Unable to get counter for %1. The file does not exists. It will be removed " +"from your localStorage." +msgstr "" +"Kan geen teller verkrijgen voor %1. Bestand bestaat niet. Het zal verwijderd " +"worden van opgeslagen data." #. ($short) -#: lib/Lufi/Controller/Files.pm:351 +#: lib/Lufi/Controller/Files.pm:382 msgid "Unable to get counter for %1. The token is invalid." msgstr "Kan geen teller verkrijgen voor %1. De token is ongeldig." #. ($short) -#: lib/Lufi/Controller/Files.pm:371 +#: lib/Lufi/Controller/Files.pm:402 msgid "Unable to get counter for %1. You are not authenticated." msgstr "Kan geen teller verkrijgen voor %1. Je bent niet geauthenticeerd." -#: themes/default/templates/layouts/default.html.ep:60 themes/default/templates/layouts/default.html.ep:72 +#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:61 msgid "Upload files" msgstr "Upload bestanden" @@ -422,11 +552,11 @@ msgstr "Upload bestanden" msgid "Uploaded at" msgstr "Geupload op" -#: themes/default/templates/index.html.ep:85 +#: themes/default/templates/index.html.ep:103 msgid "Uploaded files" msgstr "Geuploade bestanden" -#: themes/default/templates/index.html.ep:114 +#: themes/default/templates/partial/index.js.ep:29 msgid "Websocket communication error" msgstr "Websocket communicatie fout" @@ -439,85 +569,84 @@ msgid "Who wrote this software?" msgstr "Wie heeft deze software geschreven?" #: themes/default/templates/about.html.ep:11 -msgid "You can see the list of your files by clicking on the \"My files\" link at the top right of this page." -msgstr "Je kan een lijst van je eigen bestanden zien door op \"Mijn bestanden\" link rechts boven te klikken." +msgid "" +"You can see the list of your files by clicking on the \"My files\" link at " +"the top right of this page." +msgstr "" +"Je kan een lijst van je eigen bestanden zien door op \"Mijn bestanden\" link " +"rechts boven te klikken." -#: themes/default/templates/about.html.ep:8 -msgid "You don't need to register yourself to upload files but be aware that, for legal reasons, your IP address will be stored when you send a file. Don't panic, this is normally the case for all sites on which you send files." -msgstr "U hoeft zich niet te registreren om bestanden te uploaden, maar wees ervan bewust dat uw IP-adres om juridische redenen zal worden opgeslagen wanneer u een bestand verzendt. Geen paniek, dit is normaal gesproken het geval voor alle sites waarnaar u bestanden verzendt." +#: lib/Lufi/Controller/Mail.pm:42 +msgid "You can't add URLs that are not related to this instance." +msgstr "" -#: themes/default/templates/render.html.ep:53 -msgid "You don't seem to have a key in your URL. You won't be able to decrypt the file. Download canceled." -msgstr "Je hebt geen sleutel in je URL. Je kan het bestand niet decrypten. Download geannuleerd." +#: themes/default/templates/about.html.ep:8 +msgid "" +"You don't need to register yourself to upload files but be aware that, for " +"legal reasons, your IP address will be stored when you send a file. Don't " +"panic, this is normally the case for all sites on which you send files." +msgstr "" +"U hoeft zich niet te registreren om bestanden te uploaden, maar wees ervan " +"bewust dat uw IP-adres om juridische redenen zal worden opgeslagen wanneer u " +"een bestand verzendt. Geen paniek, dit is normaal gesproken het geval voor " +"alle sites waarnaar u bestanden verzendt." + +#: themes/default/templates/partial/render.js.ep:10 +msgid "" +"You don't seem to have a key in your URL. You won't be able to decrypt the " +"file. Download canceled." +msgstr "" +"Je hebt geen sleutel in je URL. Je kan het bestand niet decrypten. Download " +"geannuleerd." -#: themes/default/templates/render.html.ep:50 -msgid "You have attempted to leave this page. The download will be canceled. Are you sure?" -msgstr "Je verlaat deze pagina. Download zal geannuleerd worden. Weet je het zeker?" +#: themes/default/templates/partial/render.js.ep:7 +msgid "" +"You have attempted to leave this page. The download will be canceled. Are " +"you sure?" +msgstr "" +"Je verlaat deze pagina. Download zal geannuleerd worden. Weet je het zeker?" -#: themes/default/templates/index.html.ep:99 -msgid "You have attempted to leave this page. The upload will be canceled. Are you sure?" -msgstr "Je verlaat deze pagina. Upload zal geannuleerd worden. Weet je het zeker? " +#: themes/default/templates/partial/index.js.ep:13 +msgid "" +"You have attempted to leave this page. The upload will be canceled. Are you " +"sure?" +msgstr "" +"Je verlaat deze pagina. Upload zal geannuleerd worden. Weet je het zeker? " -#: themes/default/templates/logout.html.ep:5 +#: themes/default/templates/logout.html.ep:14 msgid "You have been successfully logged out." msgstr "Je bent succesvol uitgelogd." -#: lib/Lufi/Controller/Mail.pm:41 +#: lib/Lufi/Controller/Mail.pm:71 msgid "You must give email addresses." msgstr "Je moet een mail adres opgeven." +#: themes/default/templates/index.html.ep:29 +msgid "" +"Your browser has not enough entropy to generate a strong encryption key. " +"Please wait (it's better if you do things on your computer while waiting)." +msgstr "" + #. (format_bytes($json->{size}) -#: lib/Lufi/Controller/Files.pm:56 +#: lib/Lufi/Controller/Files.pm:66 msgid "Your file is too big: %1 (maximum size allowed: %2)" msgstr "Je bestand is te groot: %1 (max: %2)" -#: lib/Lufi/Controller/Files.pm:273 +#: lib/Lufi/Controller/Files.pm:304 msgid "Your password is not valid. Please refresh the page to retry." msgstr "" -#: -msgid "__Content-Transfer-Encoding" -msgstr "8bit" - -#: -msgid "__Content-Type" -msgstr "text/plain; charset=utf8" - -#: -msgid "__Language-Team" -msgstr "LANGUAGE " - -#: -msgid "__Last-Translator" -msgstr "FULL NAME " - -#: -msgid "__MIME-Version" -msgstr "1.0" - -#: -msgid "__PO-Revision-Date" -msgstr "YEAR-MO-DA HO:MI+ZONE" - -#: -msgid "__POT-Creation-Date" -msgstr "YEAR-MO-DA HO:MI+ZONE" - -#: -msgid "__Project-Id-Version" -msgstr "PACKAGE VERSION" - #. (format_bytes($keys[$i]) #: themes/default/templates/delays.html.ep:20 msgid "between %1 and %2, the file will be kept %3 day(s)." -msgstr "tussen %1 en %1, bestand zal bewaard worden voor %3 dag(en)." +msgstr "tussen %1 en %2, bestand zal bewaard worden voor %3 dag(en)." #. (format_bytes($keys[$i]) #: themes/default/templates/delays.html.ep:22 msgid "between %1 and %2, the file will be kept forever." msgstr "tussen %1 en %2, bestand zal voor altijd bewaard worden." -#: themes/default/templates/mail.html.ep:85 +#: themes/default/templates/partial/mail.js.ep:42 msgid "deadline: " msgstr "deadline: " @@ -535,6 +664,6 @@ msgstr "voor %1 en meer, bestand zal voor altijd bewaard worden." msgid "no time limit" msgstr "geen tijdslimiet" -#: themes/default/templates/index.html.ep:78 +#: themes/default/templates/index.html.ep:96 msgid "or" msgstr "of" diff --git a/themes/default/lib/Lufi/I18N/oc.po b/themes/default/lib/Lufi/I18N/oc.po index 861a413..bf2f132 100644 --- a/themes/default/lib/Lufi/I18N/oc.po +++ b/themes/default/lib/Lufi/I18N/oc.po @@ -3,104 +3,142 @@ # This file is distributed under the same license as the Lufi package. # Luc Didry , 2015. # Cédric VALMARY , 2016. +# Luc Didry , 2018. #zanata +# Quentí, 2018. #zanata msgid "" msgstr "" -"Project-Id-Version: \n" +"Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" -"PO-Revision-Date: 2016-11-09 09:09+0200\n" -"Last-Translator: Cédric VALMARY \n" -"Language-Team: Tot en òc (totenoc.eu)\n" -"Language: oc\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2018-10-28 06:34+0000\n" +"Last-Translator: Quentí \n" +"Language-Team: Tot en òc (totenoc.eu)\n" +"Language: oc\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -"X-Generator: Virtaal 0.7.1\n" +"X-Generator: Zanata 4.6.2\n" #. ($delay) #. (max_delay) -#: themes/default/templates/index.html.ep:40 themes/default/templates/index.html.ep:49 themes/default/templates/index.html.ep:50 +#: themes/default/templates/index.html.ep:47 themes/default/templates/index.html.ep:56 themes/default/templates/index.html.ep:57 msgid "%1 days" msgstr "%1 jorns" +#: themes/default/templates/partial/index.js.ep:26 +msgid "(max size: XXX)" +msgstr "(talha max : XXX)" + #: themes/default/templates/index.html.ep:5 msgid "1 year" msgstr "1 an" -#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:49 +#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:56 msgid "24 hours" msgstr "24 oras" -#: themes/default/templates/mail.html.ep:83 +#: themes/default/templates/partial/mail.js.ep:40 msgid ":" msgstr " :" #: themes/default/templates/about.html.ep:16 -msgid "A thank you with a photo of kitten on Diaspora* or Mastodon is cool too ;-)" -msgstr "Un mercé amb una fotografia de caton sus Diaspora* o Mastodon conven tanben ;-)" +msgid "" +"A thank you with a photo of kitten on Diaspora* or " +"Mastodon " +"is cool too ;-)" +msgstr "" +"Un mercé amb una fotografia de caton sus Diaspora* o " +"Mastodon " +"conven tanben ;-)" #: themes/default/templates/render.html.ep:42 msgid "Abort" msgstr "Anullar" -#: themes/default/templates/layouts/default.html.ep:65 themes/default/templates/layouts/default.html.ep:77 +#: themes/default/templates/layouts/default.html.ep:48 themes/default/templates/layouts/default.html.ep:76 msgid "About" msgstr "A prepaus" -#: themes/default/templates/index.html.ep:71 +#: themes/default/templates/index.html.ep:88 msgid "Add a password to file(s)" msgstr "Apondre un senhal al(s) fichièr(s)" -#: themes/default/templates/about.html.ep:18 -msgid "As Lufi is a free software licensed under of the terms of the AGPLv3, you can install it on you own server. Have a look on the Wiki for the procedure." -msgstr "Ja que Lufi es un logicial liure somés als tèrmes de la licéncia AGPLv3, podètz l’installar sus vòstre pròpri servidor. Mercés de consultar lo Wiki per veire la procedura." +#: themes/default/templates/mail.html.ep:16 +msgid "" +"Adding URLs not related to this Lufi instance to the mail body or subject is " +"prohibited." +msgstr "" +"Ajustar d’URL pas ligadas a aquesta instància pel còr o subjècte d’un " +"corrièl es defendut." -#. (stash('f') -#: themes/default/templates/render.html.ep:52 +#: themes/default/templates/about.html.ep:18 +msgid "" +"As Lufi is a free software licensed under of the terms of the AGPLv3, you can " +"install it on you own server. Have a look on the Wiki for the procedure." +msgstr "" +"Ja que Lufi es un logicial liure somés als tèrmes de la licéncia AGPLv3, podètz " +"l’installar sus vòstre pròpri servidor. Mercés de consultar lo Wiki per " +"veire la procedura." + +#. (stash('nbslices') +#: themes/default/templates/partial/render.js.ep:9 msgid "Asking for file part XX1 of %1" msgstr "Demanda del tròç XX1 sus %1 del fichièr" #: themes/default/templates/about.html.ep:21 msgid "Back to homepage" -msgstr "Retorn a la pagina d’acuèlh" +msgstr "Tornar a la pagina d’acuèlh" -#: lib/Lufi/Controller/Mail.pm:21 +#: lib/Lufi/Controller/Mail.pm:25 msgid "Bad CSRF token!" msgstr "Marrit geton CSRF !" -#: themes/default/templates/render.html.ep:48 +#: lib/Lufi/Controller/Auth.pm:22 lib/Lufi/Controller/Auth.pm:39 +msgid "Bad CSRF token." +msgstr "Marrit geton CSRF." + +#: themes/default/templates/partial/render.js.ep:5 msgid "Click here to refresh the page and restart the download." -msgstr "Clicatz aquí per actualizar la pagina e tornar començar lo telecargament." +msgstr "" +"Clicatz aquí per actualizar la pagina e tornar començar lo telecargament." -#: themes/default/templates/index.html.ep:80 +#: themes/default/templates/index.html.ep:98 msgid "Click to open the file browser" -msgstr "Clicatz per dobrir lo navigator de fichièr" +msgstr "Clicatz per dobrir lo navigador de fichièr" #: themes/default/templates/delays.html.ep:38 msgid "Close" msgstr "Tampar" -#: themes/default/templates/mail.html.ep:22 +#: themes/default/templates/mail.html.ep:23 msgid "Comma-separated email addresses" msgstr "Adreças de corrièl separadas per de virgulas" -#: themes/default/templates/index.html.ep:100 +#: themes/default/templates/partial/index.js.ep:14 msgid "Copy all links to clipboard" msgstr "Copiar totes los ligams al quicha-papièrs" -#: themes/default/templates/index.html.ep:103 +#: themes/default/templates/partial/index.js.ep:17 msgid "Copy to clipboard" msgstr "Copiar al quicha-papièrs" -#: lib/Lufi/Controller/Files.pm:429 +#: lib/Lufi/Controller/Files.pm:460 msgid "Could not delete the file. You are not authenticated." msgstr "Impossible de suprimir lo fichièr. Sètz pas connectat-ada." -#: lib/Lufi/Controller/Files.pm:411 +#: lib/Lufi/Controller/Files.pm:442 msgid "Could not find the file. Are you sure of the URL and the token?" -msgstr "Impossible de trobar lo fichièr. Sètz segur-a que l’URL e lo geton son bons ?" +msgstr "" +"Impossible de trobar lo fichièr. Sètz segur-a que l’URL e lo geton son " +"bons ?" -#: lib/Lufi/Controller/Files.pm:322 +#: lib/Lufi/Controller/Files.pm:353 msgid "Could not find the file. Are you sure of the URL?" msgstr "Impossible de trobar lo fichièr. Sètz segur-a que l’URL es bona ?" @@ -108,7 +146,7 @@ msgstr "Impossible de trobar lo fichièr. Sètz segur-a que l’URL es bona ?" msgid "Counter" msgstr "Comptador" -#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:64 +#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:81 msgid "Delete at first download?" msgstr "Suprimir aprèp lo primièr telecargament ?" @@ -116,63 +154,77 @@ msgstr "Suprimir aprèp lo primièr telecargament ?" msgid "Delete selected files" msgstr "Suprimir los fichièrs seleccionats" -#: themes/default/templates/files.html.ep:32 themes/default/templates/index.html.ep:104 +#: themes/default/templates/files.html.ep:32 themes/default/templates/partial/index.js.ep:18 msgid "Deletion link" msgstr "Ligam de supression" #: themes/default/templates/delays.html.ep:8 -msgid "Don't worry: if a user begins to download the file before the expiration and the download ends after the expiration, he will be able to get the file." -msgstr "Vos copetz pas lo cap : se un utilizaire comença a telecargar lo fichièr abans son expiracion e que lo telecargament s’acaba aprèp l’expiracion, utilizaire poirà recuperar lo fichièr." +msgid "" +"Don't worry: if a user begins to download the file before the expiration and " +"the download ends after the expiration, he will be able to get the file." +msgstr "" +"Vos copetz pas lo cap : se un utilizaire comença a telecargar lo fichièr " +"abans son expiracion e que lo telecargament s’acaba aprèp l’expiracion, " +"utilizaire poirà recuperar lo fichièr." -#: themes/default/templates/index.html.ep:106 themes/default/templates/render.html.ep:28 +#: themes/default/templates/partial/index.js.ep:20 themes/default/templates/render.html.ep:28 msgid "Download" msgstr "Telecargar" -#: themes/default/templates/render.html.ep:47 +#: themes/default/templates/partial/render.js.ep:4 msgid "Download aborted." msgstr "Telecargament abandonat." -#: themes/default/templates/files.html.ep:27 themes/default/templates/index.html.ep:105 +#: themes/default/templates/files.html.ep:27 themes/default/templates/partial/index.js.ep:19 msgid "Download link" msgstr "Ligam de telecargament" #: themes/default/templates/about.html.ep:10 -msgid "Drag and drop files in the appropriate area or use the traditional way to send files and the files will be chunked, encrypted and sent to the server. You will get two links per file: a download link, that you give to the people you want to share the file with and a deletion link, allowing you to delete the file whenever you want." -msgstr "Fasètz lisar de fichièrs dins la zòna prevista per aquò far o seleccionatz un fichièr de faiçon classica e los fichièrs seràn descopats a tròces, chifrats e mandats al servidor. Recuperaretz dos ligams per fichièr : un ligam de telecargament e un ligam per suprimir lo fichièr quand o volètz." +msgid "" +"Drag and drop files in the appropriate area or use the traditional way to " +"send files and the files will be chunked, encrypted and sent to the server. " +"You will get two links per file: a download link, that you give to the " +"people you want to share the file with and a deletion link, allowing you to " +"delete the file whenever you want." +msgstr "" +"Fasètz lisar de fichièrs dins la zòna prevista per aquò far o seleccionatz " +"un fichièr de faiçon classica e los fichièrs seràn descopats a tròces, " +"chifrats e mandats al servidor. Recuperaretz dos ligams per fichièr : un " +"ligam de telecargament e un ligam per suprimir lo fichièr quand o volètz." -#: themes/default/templates/index.html.ep:77 +#: themes/default/templates/index.html.ep:94 msgid "Drop files here" msgstr "Lisatz vòstres fichièrs aquí" -#: themes/default/templates/mail.html.ep:38 +#: themes/default/templates/mail.html.ep:39 msgid "Email body" msgstr "Còs del corrièl" -#: themes/default/templates/mail.html.ep:30 +#: themes/default/templates/mail.html.ep:31 msgid "Email subject" msgstr "Subjècte del corrièl" -#: themes/default/templates/mail.html.ep:24 themes/default/templates/mail.html.ep:26 +#: themes/default/templates/mail.html.ep:25 themes/default/templates/mail.html.ep:27 msgid "Emails" msgstr "Corrièl" -#: themes/default/templates/index.html.ep:107 +#: themes/default/templates/partial/index.js.ep:21 msgid "Encrypting part XX1 of XX2" msgstr "Chiframent del tròç XX1 sus XX2" -#: lib/Lufi/Controller/Files.pm:225 +#: lib/Lufi/Controller/Files.pm:242 msgid "Error: the file existed but was deleted." -msgstr "Error : lo fichièr existissiá mas es estat suprimit" +msgstr "Error : lo fichièr existissiá mas es estat suprimit" -#: lib/Lufi/Controller/Files.pm:291 +#: lib/Lufi/Controller/Files.pm:322 msgid "Error: the file has not been sent entirely." -msgstr "Error : lo fichièr es pas estat mandat completament" +msgstr "Error : lo fichièr es pas estat mandat completament" -#: lib/Lufi/Controller/Files.pm:301 +#: lib/Lufi/Controller/Files.pm:332 msgid "Error: unable to find the file. Are you sure of your URL?" -msgstr "Error : impossible de trobar lo fichièr. Sètz segur-a de l’URL ?" +msgstr "Error : impossible de trobar lo fichièr. Sètz segur-a de l’URL ?" -#: themes/default/templates/index.html.ep:108 +#: themes/default/templates/partial/index.js.ep:22 msgid "Expiration:" msgstr "Expiracion :" @@ -184,7 +236,7 @@ msgstr "Expira lo" msgid "Export localStorage data" msgstr "Exportar las donadas localStorage" -#: lib/Lufi/Controller/Files.pm:393 +#: lib/Lufi/Controller/Files.pm:424 msgid "File deleted" msgstr "Fichièr suprimit" @@ -192,29 +244,42 @@ msgstr "Fichièr suprimit" msgid "File name" msgstr "Nom del fichièr" -#: themes/default/templates/render.html.ep:51 +#: themes/default/templates/index.html.ep:71 +msgid "Files deleted at first download" +msgstr "Fichièr suprimit al primièr telecargament" + +#: themes/default/templates/partial/render.js.ep:8 msgid "Get the file" msgstr "Recuperar lo fichièr" #: themes/default/templates/about.html.ep:19 -msgid "Get the source code on the official repository or on its Github mirror" -msgstr "Recuperatz lo còdi font sul depaus oficial o sus son miralh Github." +msgid "" +"Get the source code on the official repository or on its Github mirror" +msgstr "" +"Recuperatz lo còdi font sul depaus oficial o sus son miralh Github." -#: themes/default/templates/mail.html.ep:78 +#: themes/default/templates/partial/mail.js.ep:35 msgid "Hello,\\n\\nHere's some files I want to share with you:\\n" msgstr "Bonjorn,\\n\\nVaquí qualques fichièrs que desiri partejar amb tu :\\n" -#: themes/default/templates/mail.html.ep:34 +#: themes/default/templates/mail.html.ep:35 msgid "Here's some files" msgstr "Vaquí qualques fichièrs" -#: themes/default/templates/index.html.ep:110 +#: themes/default/templates/partial/index.js.ep:24 msgid "Hit Enter, then Ctrl+C to copy all the download links" -msgstr "Picatz sus Entrada puèi fasètz Ctrl+C per copiar totes los ligams per telecargar" +msgstr "" +"Quichatz Entrada puèi fasètz Ctrl+C per copiar totes los ligams per " +"telecargar" -#: themes/default/templates/index.html.ep:109 +#: themes/default/templates/partial/index.js.ep:23 msgid "Hit Enter, then Ctrl+C to copy the download link" -msgstr "Picatz sus Entrada puèi fasètz Ctrl+C per copiar lo ligam per telecargar" +msgstr "" +"Quichatz Entrada puèi fasètz Ctrl+C per copiar lo ligam per telecargar" #: themes/default/templates/about.html.ep:9 msgid "How does it work?" @@ -230,17 +295,22 @@ msgstr "Cossí senhalar un fichièr illegal ?" #: themes/default/templates/delays.html.ep:7 msgid "If you choose a delay, the file will be deleted after that delay." -msgstr "S’avètz causit un relambi, lo fichièr serà suprimit aprèp aqueste relambi." +msgstr "" +"S’avètz causit un relambi, lo fichièr serà suprimit aprèp aqueste relambi." #: themes/default/templates/mail.html.ep:15 -msgid "If you send the mail from this server, the links will be sent to the server, which may lower your privacy protection." -msgstr "Se mandatz lo corrièl d’aqueste servidor, los ligams seràn mandat al servidor, aquò pòt demesir vòstra proteccion de la confidencialitat." +msgid "" +"If you send the mail from this server, the links will be sent to the server, " +"which may lower your privacy protection." +msgstr "" +"Se mandatz lo corrièl d’aqueste servidor, los ligams seràn mandat al " +"servidor, aquò pòt demesir vòstra proteccion de la confidencialitat." #: themes/default/templates/files.html.ep:14 msgid "Import localStorage data" msgstr "Importar las donadas localStorage" -#: themes/default/templates/index.html.ep:37 +#: themes/default/templates/index.html.ep:44 msgid "Important: more information on delays" msgstr "Important : mai d’informacions suls relambis" @@ -248,19 +318,26 @@ msgstr "Important : mai d’informacions suls relambis" msgid "Information about delays" msgstr "Informacion suls relambis" -#: themes/default/templates/render.html.ep:49 -msgid "It seems that the key in your URL is incorrect. Please, verify your URL." -msgstr "Sembla que la clau dins vòstra URL siá incorrècta. Mercés de verificar vòstra URL." +#: themes/default/templates/partial/render.js.ep:6 +msgid "" +"It seems that the key in your URL is incorrect. Please, verify your URL." +msgstr "" +"Sembla que la clau dins vòstra URL siá incorrècta. Mercés de verificar " +"vòstra URL." #: themes/default/templates/index.html.ep:12 msgid "Javascript is disabled. You won't be able to use Lufi." msgstr "Javascript es desactivat. Lufi foncionarà pas." +#: themes/default/templates/layouts/default.html.ep:40 themes/default/templates/layouts/default.html.ep:68 +msgid "Language" +msgstr "Lenga" + #: themes/default/templates/login.html.ep:15 msgid "Login" msgstr "Identificant" -#: themes/default/templates/layouts/default.html.ep:67 themes/default/templates/layouts/default.html.ep:79 +#: themes/default/templates/layouts/default.html.ep:53 themes/default/templates/layouts/default.html.ep:78 msgid "Logout" msgstr "Desconnexion" @@ -272,24 +349,32 @@ msgstr "Lufi es un logicial liure d’albèrgament de fichièrs." msgid "Mail" msgstr "Corrièl" -#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:61 themes/default/templates/layouts/default.html.ep:73 +#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:62 msgid "My files" msgstr "Mos fichièrs" #. (format_bytes($json->{size}) -#: lib/Lufi/Controller/Files.pm:69 +#: lib/Lufi/Controller/Files.pm:79 msgid "No enough space available on the server for this file (size: %1)." -msgstr "Espaci disc insufisent sul servidor per aqueste fichièr (talha del fichièr : \"%1)." +msgstr "" +"Espaci disc insufisent sul servidor per aqueste fichièr (talha del fichièr :" +" \"%1)." -#: themes/default/templates/files.html.ep:45 themes/default/templates/index.html.ep:112 +#: themes/default/templates/partial/files.js.ep:10 themes/default/templates/partial/index.js.ep:27 msgid "No expiration delay" msgstr "Pas cap de relambi d’expiracion" #: themes/default/templates/files.html.ep:8 -msgid "Only the files sent with this browser will be listed here. This list is stored in localStorage: if you delete your localStorage data, you'll lose this list." -msgstr "Sols los fichièrs mandats amb aqueste navigador web son listats aicí. Las informacions son gardadas en localStorage : se suprimissètz vòstras donadas localStorage, perdretz aquelas informacions." +msgid "" +"Only the files sent with this browser will be listed here. This list is " +"stored in localStorage: if you delete your localStorage data, you'll lose " +"this list." +msgstr "" +"Sols los fichièrs mandats amb aqueste navigador web son listats aicí. Las " +"informacions son gardadas en localStorage : se suprimissètz vòstras donadas " +"localStorage, perdretz aquelas informacions." -#: themes/default/templates/index.html.ep:70 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 +#: themes/default/templates/index.html.ep:87 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 msgid "Password" msgstr "Senhal" @@ -299,12 +384,21 @@ msgid "Please contact the administrator: %1" msgstr "Mercés de contactar l’administrator : %1" #: themes/default/templates/render.html.ep:33 -msgid "Please wait while we are getting your file. We first need to download and decrypt all parts before you can get it." -msgstr "Mercés d’esperar pendent la recuperacion de vòstre fichièr. Nos cal d’en primièr recuperar e deschifrar totes los fragaments abans que poscatz o telecargar." +msgid "" +"Please wait while we are getting your file. We first need to download and " +"decrypt all parts before you can get it." +msgstr "" +"Mercés d’esperar pendent la recuperacion de vòstre fichièr. Nos cal d’en " +"primièr recuperar e deschifrar totes los tròces abans que poscatz o " +"telecargar." -#: lib/Lufi.pm:191 -msgid "Please, check your credentials: unable to authenticate." -msgstr "Mercés de verificar vòstres identificants : impossible de vos autentificar." +#: lib/Lufi/Controller/Auth.pm:28 +msgid "" +"Please, check your credentials or your right to access this service: unable " +"to authenticate." +msgstr "" +"Mercés de verificar vòstres identificants o vòstres dreches d’accès a " +"aqueste servici : autentificacion impossibla." #: themes/default/templates/about.html.ep:5 msgid "Privacy" @@ -314,116 +408,173 @@ msgstr "Confidencialitat" msgid "Purge expired files from localStorage" msgstr "Suprimir del localStorage los fichièrs expirats" +#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:59 +msgid "Report file" +msgstr "Senhalar un fichièr" + #: themes/default/templates/files.html.ep:9 -msgid "Rows in red mean that the files have expired and are no longer available." -msgstr "Las linhas en roge indican que lo fichièr a expirat e es pas mai disponible." +msgid "" +"Rows in red mean that the files have expired and are no longer available." +msgstr "" +"Las linhas en roge indican que lo fichièr a expirat e es pas mai disponible." -#: themes/default/templates/index.html.ep:111 +#: themes/default/templates/partial/index.js.ep:25 msgid "Send all links by email" msgstr "Mandar totes los ligams per corrièl" -#: themes/default/templates/mail.html.ep:45 +#: themes/default/templates/mail.html.ep:46 msgid "Send with this server" msgstr "Mandar amb aqueste servidor" -#: themes/default/templates/mail.html.ep:46 +#: themes/default/templates/mail.html.ep:47 msgid "Send with your own mail software" msgstr "Mandar amb vòstre pròpri logicial de corrièl" -#: themes/default/templates/index.html.ep:113 -msgid "Sending part XX1 of XX2. Please, be patient, the progress bar can take a while to move." -msgstr "Mandadís del fragment XX1 sus XX2. Pacientatz, la barra de progression pòt metre de temps abans d’avançar." +#: themes/default/templates/partial/index.js.ep:28 +msgid "" +"Sending part XX1 of XX2. Please, be patient, the progress bar can take a " +"while to move." +msgstr "" +"Mandadís del tròç XX1 sus XX2. Pacientatz, la barra de progression pòt metre " +"de temps abans d’avançar." #. (url_for('/') -#: themes/default/templates/mail.html.ep:91 +#: themes/default/templates/partial/mail.js.ep:48 msgid "Share your files in total privacy on %1" msgstr "Partejatz vòstres fichièrs en tota confidencialitat sus %1" -#: themes/default/templates/layouts/default.html.ep:63 themes/default/templates/layouts/default.html.ep:75 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8 +#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:64 themes/default/templates/login.html.ep:27 themes/default/templates/logout.html.ep:17 msgid "Signin" msgstr "Connexion" -#: lib/Lufi.pm:194 -msgid "Sorry mate, you are not authorised to use that service. Contact your sysadmin if you think there's a glitch in the matrix." -msgstr "O planhèm collèga, sètz pas autorizat a utilizar aqueste servici. Contactatz vòstre administrator sistèma se pensatz que i a un problèma." - -#: themes/default/templates/index.html.ep:30 +#: themes/default/templates/index.html.ep:37 msgid "Sorry, the uploading is currently disabled. Please try again later." -msgstr "O planhèm, la foncion per mandar de fichièr es desactivada pel moment. Mercés de tornar ensajar mai tard." +msgstr "" +"O planhèm, la foncion per mandar de fichièr es desactivada pel moment. " +"Mercés de tornar ensajar mai tard." -#: lib/Lufi/Controller/Files.pm:43 +#: lib/Lufi/Controller/Files.pm:53 msgid "Sorry, uploading is disabled." msgstr "O planhèm, la foncion per mandar de fichièr es desactivada." #: themes/default/templates/about.html.ep:7 -msgid "The administrator can only see the file's name, its size and its mimetype (what kind of file it is: video, text, etc.)." -msgstr "L’administrator pòt pas que veire lo nom del fichièr, sa talha e son mimetype (Quina mena de fichièr es : vidèo, tèxte, etc.)." +msgid "" +"The administrator can only see the file's name, its size and its mimetype " +"(what kind of file it is: video, text, etc.)." +msgstr "" +"L’administrator pòt pas que veire lo nom del fichièr, sa talha e son " +"mimetype (Quina mena de fichièr es : vidèo, tèxte, etc.)." -#: themes/default/templates/files.html.ep:46 +#: lib/Lufi/Controller/Mail.pm:53 +msgid "" +"The body of the mail must contain at least one URL pointing to a file hosted " +"on this instance." +msgstr "" +"Lo còr del messatge deu conténer almens una URL menant a un fichièr albergat " +"a aquesta instància." + +#: themes/default/templates/partial/files.js.ep:11 msgid "The data has been successfully imported." msgstr "Las donadas son ben estadas importadas." -#: lib/Lufi/Controller/Mail.pm:43 +#: lib/Lufi/Controller/Mail.pm:73 msgid "The email body can't be empty." msgstr "Lo contengut del corrièl pòt pas èsser void." -#: lib/Lufi/Controller/Mail.pm:42 +#: lib/Lufi/Controller/Mail.pm:72 msgid "The email subject can't be empty." -msgstr "Lo sujècte del corrièl pòt pas èsser void." +msgstr "Lo subjècte del corrièl pòt pas èsser void." -#: lib/Lufi/Controller/Files.pm:390 +#: lib/Lufi/Controller/Files.pm:421 msgid "The file has already been deleted" msgstr "Lo fichièr es ja estat suprimit" #: themes/default/templates/about.html.ep:6 -msgid "The files uploaded on a Lufi instance are encrypted before the upload to the server: the administrator of the server can not see the file's content." -msgstr "Los fichièrs mandats amb una instància Lufi son chifrats abans la mandadís al servidor : l’administrator del servidor pòt pas veire lo contengut dels fichièrs." +msgid "" +"The files uploaded on a Lufi instance are encrypted before the upload to the " +"server: the administrator of the server can not see the file's content." +msgstr "" +"Los fichièrs mandats amb una instància Lufi son chifrats abans la mandadís " +"al servidor : l’administrator del servidor pòt pas veire lo contengut dels " +"fichièrs." #. (join(', ', @bad) -#: lib/Lufi/Controller/Mail.pm:38 +#: lib/Lufi/Controller/Mail.pm:68 msgid "The following email addresses are not valid: %1" -msgstr "Las adreças de corrièl seguentas son pas validas : %1" +msgstr "Las adreças de corrièl seguentas son pas validas : %1" -#: themes/default/templates/index.html.ep:101 +#: themes/default/templates/partial/index.js.ep:15 msgid "The link(s) has been copied to your clipboard" -msgstr "Lo(s) ligam(s) es/son estat(s) copiat(s) dins vòstre quicha-papièrs" +msgstr "Lo(s) ligam(s) es/son estat(s) copiat(s) al quicha-papièrs" -#: lib/Lufi/Controller/Mail.pm:66 +#: lib/Lufi/Controller/Mail.pm:97 msgid "The mail has been sent." msgstr "Lo corrièl es estat mandat." #: themes/default/templates/about.html.ep:15 -msgid "The original (and only for now) author is Luc Didry. If you want to support him, you can do it via Tipeee or via Liberapay." -msgstr "L’autor original (e pel moment, lo sol) es Luc Didry. S’avètz enveja de lo sostenir, podètz o far via Tipeee o via Liberapay." +msgid "" +"The original (and only for now) author is Luc Didry. If you want to support him, you can do it " +"via Tipeee " +"or via Liberapay." +msgstr "" +"L’autor original (e pel moment, lo sol) es Luc Didry. S’avètz enveja de lo sostenir, podètz o far " +"via Tipeee " +"o via Liberapay." +"" -#: lib/Lufi/Controller/Files.pm:179 -msgid "The server was unable to find the file record to add your file part to. Please, contact the administrator." -msgstr "Lo servidor es pas estat capable de retrobar l’enregistrament del fichièr que li cal ajustar vòstre tròç de fichièr. Mercés de contactar l’administrator." +#: lib/Lufi/Controller/Files.pm:189 +msgid "" +"The server was unable to find the file record to add your file part to. " +"Please, contact the administrator." +msgstr "" +"Lo servidor es pas estat capable de retrobar l’enregistrament del fichièr " +"que li cal ajustar vòstre tròç de fichièr. Mercés de contactar " +"l’administrator." + +#: lib/Lufi/Controller/Files.pm:248 +msgid "" +"This file has been deactivated by the admins. Contact them to know why." +msgstr "" +"Aqueste fichièr es estat desactivat pels administrators. Contactatz-los per " +"saber perque." #: themes/default/templates/delays.html.ep:10 -msgid "This server sets limitations according to the file size. The expiration delay of your file will be the minimum between what you choose and the following limitations:" -msgstr "Aqueste servidor impausa de limitacions segon la talha dels fichièrs. Lo relambi d’expiracion de vòstre fichièr serà lo minimum entre çò qu’avètz causit e los limits seguents :" +msgid "" +"This server sets limitations according to the file size. The expiration " +"delay of your file will be the minimum between what you choose and the " +"following limitations:" +msgstr "" +"Aqueste servidor impausa de limitacions segon la talha dels fichièrs. Lo " +"relambi d’expiracion de vòstre fichièr serà lo minimum entre çò qu’avètz " +"causit e los limits seguents :" -#: themes/default/templates/index.html.ep:102 +#: themes/default/templates/partial/index.js.ep:16 msgid "Unable to copy the link(s) to your clipboard" -msgstr "Impossible de copiar lo(s) ligams(s) dins vòstre quicha-papièrs" +msgstr "Impossible de copiar lo(s) ligams(s) al quicha-papièrs" #. ($short) -#: lib/Lufi/Controller/Files.pm:361 -msgid "Unable to get counter for %1. The file does not exists. It will be removed from your localStorage." -msgstr "Impossible de recuperar lo comptador per %1. Lo fichièr existís pas. Serà levat de vòstre localStorage." +#: lib/Lufi/Controller/Files.pm:392 +msgid "" +"Unable to get counter for %1. The file does not exists. It will be removed " +"from your localStorage." +msgstr "" +"Impossible de recuperar lo comptador per %1. Lo fichièr existís pas. Serà " +"levat de vòstre localStorage." #. ($short) -#: lib/Lufi/Controller/Files.pm:351 +#: lib/Lufi/Controller/Files.pm:382 msgid "Unable to get counter for %1. The token is invalid." msgstr "Impossible de recuperar lo comptador per %1. Lo geton es invalid." #. ($short) -#: lib/Lufi/Controller/Files.pm:371 +#: lib/Lufi/Controller/Files.pm:402 msgid "Unable to get counter for %1. You are not authenticated." msgstr "Impossible de recuperar lo comptador per %1. Sètz pas connectat·ada." -#: themes/default/templates/layouts/default.html.ep:60 themes/default/templates/layouts/default.html.ep:72 +#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:61 msgid "Upload files" msgstr "Mandar de fichièrs" @@ -431,11 +582,11 @@ msgstr "Mandar de fichièrs" msgid "Uploaded at" msgstr "Mandat lo" -#: themes/default/templates/index.html.ep:85 +#: themes/default/templates/index.html.ep:103 msgid "Uploaded files" msgstr "Fichièrs mandats" -#: themes/default/templates/index.html.ep:114 +#: themes/default/templates/partial/index.js.ep:29 msgid "Websocket communication error" msgstr "Error de comunicacion WebSocket" @@ -448,41 +599,78 @@ msgid "Who wrote this software?" msgstr "Qual escriguèt aqueste logicial ?" #: themes/default/templates/about.html.ep:11 -msgid "You can see the list of your files by clicking on the \"My files\" link at the top right of this page." -msgstr "Podètz veire la lista de vòstres fichièrs en clicant sul ligam « Mos fichièrs » amont a man drecha d’aquesta pagina." +msgid "" +"You can see the list of your files by clicking on the \"My files\" link at " +"the top right of this page." +msgstr "" +"Podètz veire la lista de vòstres fichièrs en clicant sul ligam « Mos " +"fichièrs » amont a man drecha d’aquesta pagina." + +#: lib/Lufi/Controller/Mail.pm:42 +msgid "You can't add URLs that are not related to this instance." +msgstr "Podètz pas ajustar d’URL que son pas ligadas a aquesta instància." #: themes/default/templates/about.html.ep:8 -msgid "You don't need to register yourself to upload files but be aware that, for legal reasons, your IP address will be stored when you send a file. Don't panic, this is normally the case for all sites on which you send files." -msgstr "Avètz pas besonh de vos enregistrar per mandar de fichièrs mas notatz que, per de rasons legalas, vòstra adreça IP serà enregistrada quand mandatz un fichièr. Paniquetz pas, es normalament lo cas per totes los sites ont mandatz de fichièrs." +msgid "" +"You don't need to register yourself to upload files but be aware that, for " +"legal reasons, your IP address will be stored when you send a file. Don't " +"panic, this is normally the case for all sites on which you send files." +msgstr "" +"Avètz pas besonh de vos enregistrar per mandar de fichièrs mas notatz que, " +"per de rasons legalas, vòstra adreça IP serà enregistrada quand mandatz un " +"fichièr. Paniquetz pas, es normalament lo cas per totes los sites ont " +"mandatz de fichièrs." -#: themes/default/templates/render.html.ep:53 -msgid "You don't seem to have a key in your URL. You won't be able to decrypt the file. Download canceled." -msgstr "Sembla qu’avètz pas la bona clau dins l’URL. Poiretz pas deschifrar lo fichièr. Telecargament anullat." +#: themes/default/templates/partial/render.js.ep:10 +msgid "" +"You don't seem to have a key in your URL. You won't be able to decrypt the " +"file. Download canceled." +msgstr "" +"Sembla qu’avètz pas la bona clau dins l’URL. Poiretz pas deschifrar lo " +"fichièr. Telecargament anullat." -#: themes/default/templates/render.html.ep:50 -msgid "You have attempted to leave this page. The download will be canceled. Are you sure?" -msgstr "Ensajatz de partir de la pagina. Lo telecargament serà anullat. Sètz segur-a ?" +#: themes/default/templates/partial/render.js.ep:7 +msgid "" +"You have attempted to leave this page. The download will be canceled. Are " +"you sure?" +msgstr "" +"Ensajatz de partir de la pagina. Lo telecargament serà anullat. Sètz segur-" +"a ?" -#: themes/default/templates/index.html.ep:99 -msgid "You have attempted to leave this page. The upload will be canceled. Are you sure?" -msgstr "Ensajatz de partir de la pagina. Lo mandadís serà anullat. Sètz segur-a ?" +#: themes/default/templates/partial/index.js.ep:13 +msgid "" +"You have attempted to leave this page. The upload will be canceled. Are you " +"sure?" +msgstr "" +"Ensajatz de partir de la pagina. Lo mandadís serà anullat. Sètz segur-a ?" -#: themes/default/templates/logout.html.ep:5 +#: themes/default/templates/logout.html.ep:14 msgid "You have been successfully logged out." msgstr "Sètz ben estat desconnectat." -#: lib/Lufi/Controller/Mail.pm:41 +#: lib/Lufi/Controller/Mail.pm:71 msgid "You must give email addresses." msgstr "Vos cal donar d’adreças." +#: themes/default/templates/index.html.ep:29 +msgid "" +"Your browser has not enough entropy to generate a strong encryption key. " +"Please wait (it's better if you do things on your computer while waiting)." +msgstr "" +"Vòstre navigador a pas pro d’entropia per generar una clau de chiframent " +"fòrta. Mercés d’esperar (es de bon far de realizar de causas a l’ordenador " +"d’aquel temps)." + #. (format_bytes($json->{size}) -#: lib/Lufi/Controller/Files.pm:56 +#: lib/Lufi/Controller/Files.pm:66 msgid "Your file is too big: %1 (maximum size allowed: %2)" -msgstr "Vòstre fichièr es tròp voluminós : %1 (la talha maximum autorizada es %2)" +msgstr "" +"Vòstre fichièr es tròp voluminós : %1 (la talha maximum autorizada es %2)" -#: lib/Lufi/Controller/Files.pm:273 +#: lib/Lufi/Controller/Files.pm:304 msgid "Your password is not valid. Please refresh the page to retry." -msgstr "Lo senhal es pas valid. Mercés d’actualizar la pagina e ensajar tornamai." +msgstr "" +"Lo senhal es pas valid. Mercés d’actualizar la pagina e ensajar tornamai." #. (format_bytes($keys[$i]) #: themes/default/templates/delays.html.ep:20 @@ -494,7 +682,7 @@ msgstr "entre %1 e %2, lo fichièr serà gardat %3 jorn(s) ;" msgid "between %1 and %2, the file will be kept forever." msgstr "entre %1 e %2, lo fichièr serà gardat per totjorn. ;" -#: themes/default/templates/mail.html.ep:85 +#: themes/default/templates/partial/mail.js.ep:42 msgid "deadline: " msgstr "darrièr relambi per telecargar :" @@ -512,6 +700,6 @@ msgstr "per %1 e mai, lo fichièr serà gardat per totjorn." msgid "no time limit" msgstr "Pas cap de relambi d’expiracion" -#: themes/default/templates/index.html.ep:78 +#: themes/default/templates/index.html.ep:96 msgid "or" msgstr "o" diff --git a/themes/default/lib/Lufi/I18N/pt.po b/themes/default/lib/Lufi/I18N/pt.po index 851ebcb..a1c5c9b 100644 --- a/themes/default/lib/Lufi/I18N/pt.po +++ b/themes/default/lib/Lufi/I18N/pt.po @@ -3,61 +3,88 @@ # This file is distributed under the same license as the Lufi package. # Luc Didry , 2015. # Jéssica Da Cunha , 2017. -# +# Luc Didry , 2018. #zanata msgid "" msgstr "" -"Project-Id-Version: \n" -"POT-Creation-Date: 2017-03-01 14:00+0100\n" -"PO-Revision-Date: 2017-03-01 14:00+0100\n" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2018-10-28 01:57+0000\n" "Language-Team: \n" -"X-Generator: Poedit 1.8.5\n" -"Last-Translator: Jéssica Da Cunha \n" +"X-Generator: Zanata 4.6.2\n" +"Last-Translator: Copied by Zanata \n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "Language: pt\n" #. ($delay) #. (max_delay) -#: themes/default/templates/index.html.ep:40 themes/default/templates/index.html.ep:49 themes/default/templates/index.html.ep:50 +#: themes/default/templates/index.html.ep:47 themes/default/templates/index.html.ep:56 themes/default/templates/index.html.ep:57 msgid "%1 days" msgstr "%1 dias" +#: themes/default/templates/partial/index.js.ep:26 +msgid "(max size: XXX)" +msgstr "" + #: themes/default/templates/index.html.ep:5 msgid "1 year" msgstr "1 ano" -#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:49 +#: themes/default/templates/index.html.ep:4 themes/default/templates/index.html.ep:56 msgid "24 hours" msgstr "24 horas" -#: themes/default/templates/mail.html.ep:83 +#: themes/default/templates/partial/mail.js.ep:40 msgid ":" msgstr " :" #: themes/default/templates/about.html.ep:16 -msgid "A thank you with a photo of kitten on Diaspora* or Mastodon is cool too ;-)" -msgstr "Um obrigado com a foto de um gatinho no Diaspora* ou Mastodon é também porreiro ;-)" +msgid "" +"A thank you with a photo of kitten on Diaspora* or " +"Mastodon " +"is cool too ;-)" +msgstr "" +"Um obrigado com a foto de um gatinho no Diaspora* ou " +"Mastodon é " +"também porreiro ;-)" #: themes/default/templates/render.html.ep:42 msgid "Abort" msgstr "Interromper" -#: themes/default/templates/layouts/default.html.ep:65 themes/default/templates/layouts/default.html.ep:77 +#: themes/default/templates/layouts/default.html.ep:48 themes/default/templates/layouts/default.html.ep:76 msgid "About" msgstr "Sobre" -#: themes/default/templates/index.html.ep:71 +#: themes/default/templates/index.html.ep:88 msgid "Add a password to file(s)" msgstr "" -#: themes/default/templates/about.html.ep:18 -msgid "As Lufi is a free software licensed under of the terms of the AGPLv3, you can install it on you own server. Have a look on the Wiki for the procedure." -msgstr "Como Lufi é um programa livre sob os termos da licença AGPLv3, pode instalar-lo no seu prórpio servidor. Para saber mais clique aqui Wiki para ver o procedimento." +#: themes/default/templates/mail.html.ep:16 +msgid "" +"Adding URLs not related to this Lufi instance to the mail body or subject is " +"prohibited." +msgstr "" -#. (stash('f') -#: themes/default/templates/render.html.ep:52 +#: themes/default/templates/about.html.ep:18 +msgid "" +"As Lufi is a free software licensed under of the terms of the AGPLv3, you can " +"install it on you own server. Have a look on the Wiki for the procedure." +msgstr "" +"Como Lufi é um programa livre sob os termos da licença AGPLv3, pode instalar-lo no " +"seu prórpio servidor. Para saber mais clique aqui Wiki para ver o procedimento." +"" + +#. (stash('nbslices') +#: themes/default/templates/partial/render.js.ep:9 msgid "Asking for file part XX1 of %1" msgstr "Pedido de recuperação de um fragmento do ficheiro XX1 de %1" @@ -65,15 +92,19 @@ msgstr "Pedido de recuperação de um fragmento do ficheiro XX1 de %1" msgid "Back to homepage" msgstr "Voltar à página inicial" -#: lib/Lufi/Controller/Mail.pm:21 +#: lib/Lufi/Controller/Mail.pm:25 msgid "Bad CSRF token!" msgstr "Símbolo errado CSRF !" -#: themes/default/templates/render.html.ep:48 +#: lib/Lufi/Controller/Auth.pm:22 lib/Lufi/Controller/Auth.pm:39 +msgid "Bad CSRF token." +msgstr "" + +#: themes/default/templates/partial/render.js.ep:5 msgid "Click here to refresh the page and restart the download." msgstr "Clique aqui para atualizar a página e começar o download." -#: themes/default/templates/index.html.ep:80 +#: themes/default/templates/index.html.ep:98 msgid "Click to open the file browser" msgstr "Clique para abrir o navegador de ficheiros" @@ -81,35 +112,38 @@ msgstr "Clique para abrir o navegador de ficheiros" msgid "Close" msgstr "Fechar" -#: themes/default/templates/mail.html.ep:22 +#: themes/default/templates/mail.html.ep:23 msgid "Comma-separated email addresses" msgstr "Os e-mails devem ser separados por vírgulas" -#: themes/default/templates/index.html.ep:100 +#: themes/default/templates/partial/index.js.ep:14 msgid "Copy all links to clipboard" msgstr "Copiar todos os links para a área de transferência" -#: themes/default/templates/index.html.ep:103 +#: themes/default/templates/partial/index.js.ep:17 msgid "Copy to clipboard" msgstr "Copiar para a área de transferência" -#: lib/Lufi/Controller/Files.pm:429 +#: lib/Lufi/Controller/Files.pm:460 msgid "Could not delete the file. You are not authenticated." msgstr "Impossível apagar o ficheiro. Não está conectado." -#: lib/Lufi/Controller/Files.pm:411 +#: lib/Lufi/Controller/Files.pm:442 msgid "Could not find the file. Are you sure of the URL and the token?" -msgstr "Impossível encontrar o ficheiro.Tem a certeza que o URL e os símbolos estão corretos?" +msgstr "" +"Impossível encontrar o ficheiro.Tem a certeza que o URL e os símbolos estão " +"corretos?" -#: lib/Lufi/Controller/Files.pm:322 +#: lib/Lufi/Controller/Files.pm:353 msgid "Could not find the file. Are you sure of the URL?" -msgstr "Impossível encontar o ficheiro. Tem a certeza de que o URL está correto?" +msgstr "" +"Impossível encontar o ficheiro. Tem a certeza de que o URL está correto?" #: themes/default/templates/files.html.ep:28 msgid "Counter" msgstr "Contador" -#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:64 +#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:81 msgid "Delete at first download?" msgstr "Apagar após o primeiro download?" @@ -117,67 +151,77 @@ msgstr "Apagar após o primeiro download?" msgid "Delete selected files" msgstr "" -#: themes/default/templates/files.html.ep:32 themes/default/templates/index.html.ep:104 +#: themes/default/templates/files.html.ep:32 themes/default/templates/partial/index.js.ep:18 msgid "Deletion link" msgstr "Eliminar o link" #: themes/default/templates/delays.html.ep:8 -msgid "Don't worry: if a user begins to download the file before the expiration and the download ends after the expiration, he will be able to get the file." -msgstr "Não se preocupe: se um utilizador começa a descarregar um ficheiro antes a sua expiração e que o descarregamento acaba após a sua expiração, o utilizador pode ainda assim recuperar o ficheiro." +msgid "" +"Don't worry: if a user begins to download the file before the expiration and " +"the download ends after the expiration, he will be able to get the file." +msgstr "" +"Não se preocupe: se um utilizador começa a descarregar um ficheiro antes a " +"sua expiração e que o descarregamento acaba após a sua expiração, o " +"utilizador pode ainda assim recuperar o ficheiro." -#: themes/default/templates/index.html.ep:106 themes/default/templates/render.html.ep:28 +#: themes/default/templates/partial/index.js.ep:20 themes/default/templates/render.html.ep:28 msgid "Download" msgstr "Download" -#: themes/default/templates/render.html.ep:47 +#: themes/default/templates/partial/render.js.ep:4 msgid "Download aborted." msgstr "Download interrompido." -#: themes/default/templates/files.html.ep:27 themes/default/templates/index.html.ep:105 +#: themes/default/templates/files.html.ep:27 themes/default/templates/partial/index.js.ep:19 msgid "Download link" msgstr "Link para o download" #: themes/default/templates/about.html.ep:10 -msgid "Drag and drop files in the appropriate area or use the traditional way to send files and the files will be chunked, encrypted and sent to the server. You will get two links per file: a download link, that you give to the people you want to share the file with and a deletion link, allowing you to delete the file whenever you want." -msgstr "Deslize os ficheiros na zona própria e esse efeito ou selecione um ficheiro de forma tradicional, e os ficheiros serão fragmentados, codificados e enviados ao servidor. Vai receber dois links por ficheiro: um é de download e o outro para poder apagar o ficheiro quando quiser." +msgid "" +"Drag and drop files in the appropriate area or use the traditional way to " +"send files and the files will be chunked, encrypted and sent to the server. " +"You will get two links per file: a download link, that you give to the " +"people you want to share the file with and a deletion link, allowing you to " +"delete the file whenever you want." +msgstr "" +"Deslize os ficheiros na zona própria e esse efeito ou selecione um ficheiro " +"de forma tradicional, e os ficheiros serão fragmentados, codificados e " +"enviados ao servidor. Vai receber dois links por ficheiro: um é de download " +"e o outro para poder apagar o ficheiro quando quiser." -#: themes/default/templates/index.html.ep:77 +#: themes/default/templates/index.html.ep:94 msgid "Drop files here" msgstr "" -#: -msgid "Drop files here (max. 4 Gb/file)" -msgstr "Deslize os ficheiros aqui (max. 4 Gb/ficheiro)" - -#: themes/default/templates/mail.html.ep:38 +#: themes/default/templates/mail.html.ep:39 msgid "Email body" msgstr "Conteúdo do e-mail" -#: themes/default/templates/mail.html.ep:30 +#: themes/default/templates/mail.html.ep:31 msgid "Email subject" msgstr "Assunto do e-mail" -#: themes/default/templates/mail.html.ep:24 themes/default/templates/mail.html.ep:26 +#: themes/default/templates/mail.html.ep:25 themes/default/templates/mail.html.ep:27 msgid "Emails" msgstr "E-mails" -#: themes/default/templates/index.html.ep:107 +#: themes/default/templates/partial/index.js.ep:21 msgid "Encrypting part XX1 of XX2" msgstr "Codificação do fragmento XX1 de XX2" -#: lib/Lufi/Controller/Files.pm:225 +#: lib/Lufi/Controller/Files.pm:242 msgid "Error: the file existed but was deleted." msgstr "Erro: o ficheiro existia mas foi apagado." -#: lib/Lufi/Controller/Files.pm:291 +#: lib/Lufi/Controller/Files.pm:322 msgid "Error: the file has not been sent entirely." msgstr "Erro: o ficheiro não foi enviado na totalidade." -#: lib/Lufi/Controller/Files.pm:301 +#: lib/Lufi/Controller/Files.pm:332 msgid "Error: unable to find the file. Are you sure of your URL?" msgstr "Erro: impossível encontrar o ficheiro. Tem a certeza do URL?" -#: themes/default/templates/index.html.ep:108 +#: themes/default/templates/partial/index.js.ep:22 msgid "Expiration:" msgstr "Expiração:" @@ -189,7 +233,7 @@ msgstr "Expira no" msgid "Export localStorage data" msgstr "Exportar os dados localStorage" -#: lib/Lufi/Controller/Files.pm:393 +#: lib/Lufi/Controller/Files.pm:424 msgid "File deleted" msgstr "Ficheiro apagado" @@ -197,27 +241,39 @@ msgstr "Ficheiro apagado" msgid "File name" msgstr "Nome do ficheiro" -#: themes/default/templates/render.html.ep:51 +#: themes/default/templates/index.html.ep:71 +msgid "Files deleted at first download" +msgstr "" + +#: themes/default/templates/partial/render.js.ep:8 msgid "Get the file" msgstr "Recuperar o ficheiro" #: themes/default/templates/about.html.ep:19 -msgid "Get the source code on the official repository or on its Github mirror" -msgstr "Recupere o código-fonte no o depósito oficial ou então réplicas Github." +msgid "" +"Get the source code on the official repository or on its Github mirror" +msgstr "" +"Recupere o código-fonte no o depósito oficial ou então réplicas Github." -#: themes/default/templates/mail.html.ep:78 +#: themes/default/templates/partial/mail.js.ep:35 msgid "Hello,\\n\\nHere's some files I want to share with you:\\n" -msgstr "Olá,\\n\\nAqui estão alguns ficheiros que gostaria de partilhar contigo:\\n" +msgstr "" +"Olá,\\n\\nAqui estão alguns ficheiros que gostaria de partilhar contigo:\\n" -#: themes/default/templates/mail.html.ep:34 +#: themes/default/templates/mail.html.ep:35 msgid "Here's some files" msgstr "Aqui estão alguns ficheiros" -#: themes/default/templates/index.html.ep:110 +#: themes/default/templates/partial/index.js.ep:24 msgid "Hit Enter, then Ctrl+C to copy all the download links" -msgstr "Clique no Enter e depois Ctrl+C para copiar todos os links de download" +msgstr "" +"Clique no Enter e depois Ctrl+C para copiar todos os links de download" -#: themes/default/templates/index.html.ep:109 +#: themes/default/templates/partial/index.js.ep:23 msgid "Hit Enter, then Ctrl+C to copy the download link" msgstr "Clique no Enter e depois Ctrl+C para copiar o link de download" @@ -225,10 +281,6 @@ msgstr "Clique no Enter e depois Ctrl+C para copiar o link de download" msgid "How does it work?" msgstr "Como funciona?" -#: -msgid "How to install Lufi on my server?" -msgstr "Como instalar Lufi no meu servidor?" - #: themes/default/templates/about.html.ep:17 msgid "How to install the software on my server?" msgstr "" @@ -242,14 +294,18 @@ msgid "If you choose a delay, the file will be deleted after that delay." msgstr "Se escolher um prazo, o ficheiro será apagado após esse prazo." #: themes/default/templates/mail.html.ep:15 -msgid "If you send the mail from this server, the links will be sent to the server, which may lower your privacy protection." -msgstr "Se enviar um e-mail a partir deste servidor, os links serão enviados ao servidor, o que poderá diminuir a proteção da confidencia." +msgid "" +"If you send the mail from this server, the links will be sent to the server, " +"which may lower your privacy protection." +msgstr "" +"Se enviar um e-mail a partir deste servidor, os links serão enviados ao " +"servidor, o que poderá diminuir a proteção da confidencia." #: themes/default/templates/files.html.ep:14 msgid "Import localStorage data" msgstr "Importar os dados localStorage" -#: themes/default/templates/index.html.ep:37 +#: themes/default/templates/index.html.ep:44 msgid "Important: more information on delays" msgstr "Importante: mais informações sobre os prazos" @@ -257,48 +313,63 @@ msgstr "Importante: mais informações sobre os prazos" msgid "Information about delays" msgstr "Informação sobre os prazos" -#: themes/default/templates/render.html.ep:49 -msgid "It seems that the key in your URL is incorrect. Please, verify your URL." -msgstr "Parece que a chave do seu URL está incorreta.Por favor, verifique o seu URL." +#: themes/default/templates/partial/render.js.ep:6 +msgid "" +"It seems that the key in your URL is incorrect. Please, verify your URL." +msgstr "" +"Parece que a chave do seu URL está incorreta.Por favor, verifique o seu URL." #: themes/default/templates/index.html.ep:12 msgid "Javascript is disabled. You won't be able to use Lufi." msgstr "Javascript está desativado. Lufi não funcionará." +#: themes/default/templates/layouts/default.html.ep:40 themes/default/templates/layouts/default.html.ep:68 +msgid "Language" +msgstr "" + #: themes/default/templates/login.html.ep:15 msgid "Login" msgstr "Utilizador" -#: themes/default/templates/layouts/default.html.ep:67 themes/default/templates/layouts/default.html.ep:79 +#: themes/default/templates/layouts/default.html.ep:53 themes/default/templates/layouts/default.html.ep:78 msgid "Logout" msgstr "Encerrar sessão" #: themes/default/templates/about.html.ep:4 msgid "Lufi is a free (as in free speech) file hosting software." -msgstr "Lufi é um programa de reserva gratuita (como na liberdade de expressão) de ficheiros." +msgstr "" +"Lufi é um programa de reserva gratuita (como na liberdade de expressão) de " +"ficheiros." #: themes/default/templates/files.html.ep:33 msgid "Mail" msgstr "" -#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:61 themes/default/templates/layouts/default.html.ep:73 +#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:62 msgid "My files" msgstr "Meus ficheiros" #. (format_bytes($json->{size}) -#: lib/Lufi/Controller/Files.pm:69 +#: lib/Lufi/Controller/Files.pm:79 msgid "No enough space available on the server for this file (size: %1)." -msgstr "O servidor não tem espaço suficiente para este ficheiro (tamanho: %1)." +msgstr "" +"O servidor não tem espaço suficiente para este ficheiro (tamanho: %1)." -#: themes/default/templates/files.html.ep:45 themes/default/templates/index.html.ep:112 +#: themes/default/templates/partial/files.js.ep:10 themes/default/templates/partial/index.js.ep:27 msgid "No expiration delay" msgstr "Não tem prazo de expiração" #: themes/default/templates/files.html.ep:8 -msgid "Only the files sent with this browser will be listed here. This list is stored in localStorage: if you delete your localStorage data, you'll lose this list." -msgstr "Apenas os ficheiros enviados com este navegador web estão listados aqui. As informações são armazenadas no localStorage : se apagar os seus dados no LocalStorage, poedrá perder essa informação." +msgid "" +"Only the files sent with this browser will be listed here. This list is " +"stored in localStorage: if you delete your localStorage data, you'll lose " +"this list." +msgstr "" +"Apenas os ficheiros enviados com este navegador web estão listados aqui. As " +"informações são armazenadas no localStorage : se apagar os seus dados no " +"LocalStorage, poedrá perder essa informação." -#: themes/default/templates/index.html.ep:70 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 +#: themes/default/templates/index.html.ep:87 themes/default/templates/login.html.ep:21 themes/default/templates/render.html.ep:26 msgid "Password" msgstr "Palavra-passe" @@ -308,11 +379,18 @@ msgid "Please contact the administrator: %1" msgstr "Contacte o administrador: %1" #: themes/default/templates/render.html.ep:33 -msgid "Please wait while we are getting your file. We first need to download and decrypt all parts before you can get it." -msgstr "Por favor aguarde durante a recuperação do seu ficheiro. Primeiro devemos recuperar e descodificar todos os fragmentos e depois poderá descarregar o ficheiro." +msgid "" +"Please wait while we are getting your file. We first need to download and " +"decrypt all parts before you can get it." +msgstr "" +"Por favor aguarde durante a recuperação do seu ficheiro. Primeiro devemos " +"recuperar e descodificar todos os fragmentos e depois poderá descarregar o " +"ficheiro." -#: lib/Lufi.pm:191 -msgid "Please, check your credentials: unable to authenticate." +#: lib/Lufi/Controller/Auth.pm:28 +msgid "" +"Please, check your credentials or your right to access this service: unable " +"to authenticate." msgstr "" #: themes/default/templates/about.html.ep:5 @@ -323,116 +401,166 @@ msgstr "Privacidade" msgid "Purge expired files from localStorage" msgstr "Apagar do localStorage os ficheiros expirados" +#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:59 +msgid "Report file" +msgstr "" + #: themes/default/templates/files.html.ep:9 -msgid "Rows in red mean that the files have expired and are no longer available." -msgstr "As linhas a vermelho indicam que o ficheiro expirou e já não está disponível." +msgid "" +"Rows in red mean that the files have expired and are no longer available." +msgstr "" +"As linhas a vermelho indicam que o ficheiro expirou e já não está disponível." +"" -#: themes/default/templates/index.html.ep:111 +#: themes/default/templates/partial/index.js.ep:25 msgid "Send all links by email" msgstr "Enviar todos os links por e-mail" -#: themes/default/templates/mail.html.ep:45 +#: themes/default/templates/mail.html.ep:46 msgid "Send with this server" msgstr "Enviar com este servidor" -#: themes/default/templates/mail.html.ep:46 +#: themes/default/templates/mail.html.ep:47 msgid "Send with your own mail software" msgstr "Enviar com o seu e-mail pessoal" -#: themes/default/templates/index.html.ep:113 -msgid "Sending part XX1 of XX2. Please, be patient, the progress bar can take a while to move." -msgstr "Envio do fragmento XX1 de XX2. Por favor aguarde, a barra de progressão pode levar algum tempo antes de avançar." +#: themes/default/templates/partial/index.js.ep:28 +msgid "" +"Sending part XX1 of XX2. Please, be patient, the progress bar can take a " +"while to move." +msgstr "" +"Envio do fragmento XX1 de XX2. Por favor aguarde, a barra de progressão pode " +"levar algum tempo antes de avançar." #. (url_for('/') -#: themes/default/templates/mail.html.ep:91 +#: themes/default/templates/partial/mail.js.ep:48 msgid "Share your files in total privacy on %1" msgstr "Partilhe os seus ficheiros com toda a privacidade em %1" -#: themes/default/templates/layouts/default.html.ep:63 themes/default/templates/layouts/default.html.ep:75 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8 +#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:64 themes/default/templates/login.html.ep:27 themes/default/templates/logout.html.ep:17 msgid "Signin" msgstr "Conexão" -#: lib/Lufi.pm:194 -msgid "Sorry mate, you are not authorised to use that service. Contact your sysadmin if you think there's a glitch in the matrix." -msgstr "" - -#: themes/default/templates/index.html.ep:30 +#: themes/default/templates/index.html.ep:37 msgid "Sorry, the uploading is currently disabled. Please try again later." -msgstr "Desculpe, o envio do ficheiro está atualmente desativado. Tente mais tarde." +msgstr "" +"Desculpe, o envio do ficheiro está atualmente desativado. Tente mais tarde." -#: lib/Lufi/Controller/Files.pm:43 +#: lib/Lufi/Controller/Files.pm:53 msgid "Sorry, uploading is disabled." msgstr "Desculpe, o envio do ficheiro está desativado." #: themes/default/templates/about.html.ep:7 -msgid "The administrator can only see the file's name, its size and its mimetype (what kind of file it is: video, text, etc.)." -msgstr "O administrador pode apenas ver o nome do ficheiro, o seu tamanho e o tipo de mime (o tipo de ficheiro: texto, vídeo, etc.)." +msgid "" +"The administrator can only see the file's name, its size and its mimetype " +"(what kind of file it is: video, text, etc.)." +msgstr "" +"O administrador pode apenas ver o nome do ficheiro, o seu tamanho e o tipo " +"de mime (o tipo de ficheiro: texto, vídeo, etc.)." -#: themes/default/templates/files.html.ep:46 +#: lib/Lufi/Controller/Mail.pm:53 +msgid "" +"The body of the mail must contain at least one URL pointing to a file hosted " +"on this instance." +msgstr "" + +#: themes/default/templates/partial/files.js.ep:11 msgid "The data has been successfully imported." msgstr "Os dados foram importados com sucesso." -#: lib/Lufi/Controller/Mail.pm:43 +#: lib/Lufi/Controller/Mail.pm:73 msgid "The email body can't be empty." msgstr "A mensagem do e-mail não pode estar vazia." -#: lib/Lufi/Controller/Mail.pm:42 +#: lib/Lufi/Controller/Mail.pm:72 msgid "The email subject can't be empty." msgstr "O assunto do e-mail não pode estar vazio." -#: lib/Lufi/Controller/Files.pm:390 +#: lib/Lufi/Controller/Files.pm:421 msgid "The file has already been deleted" msgstr "O ficheiro já foi apagado" #: themes/default/templates/about.html.ep:6 -msgid "The files uploaded on a Lufi instance are encrypted before the upload to the server: the administrator of the server can not see the file's content." -msgstr "Os ficheiros enviados no Lufi são codificados antes de serem enviados ao servidor: o administrador do servidor não pode ver o conteúdo dos ficheiros." +msgid "" +"The files uploaded on a Lufi instance are encrypted before the upload to the " +"server: the administrator of the server can not see the file's content." +msgstr "" +"Os ficheiros enviados no Lufi são codificados antes de serem enviados ao " +"servidor: o administrador do servidor não pode ver o conteúdo dos ficheiros." #. (join(', ', @bad) -#: lib/Lufi/Controller/Mail.pm:38 +#: lib/Lufi/Controller/Mail.pm:68 msgid "The following email addresses are not valid: %1" msgstr "Os e-mails seguintes não são válidos: %1" -#: themes/default/templates/index.html.ep:101 +#: themes/default/templates/partial/index.js.ep:15 msgid "The link(s) has been copied to your clipboard" msgstr "O(s) link(s) foi/foram copiados para a área de transferência" -#: lib/Lufi/Controller/Mail.pm:66 +#: lib/Lufi/Controller/Mail.pm:97 msgid "The mail has been sent." msgstr "O e-mail foi enviado." #: themes/default/templates/about.html.ep:15 -msgid "The original (and only for now) author is Luc Didry. If you want to support him, you can do it via Tipeee or via Liberapay." -msgstr "O autor original (e por agora, o único) é Luc Didry. Se o desejar apoiar pode fazer-lo via Tipeee ou via Liberapay." +msgid "" +"The original (and only for now) author is Luc Didry. If you want to support him, you can do it " +"via Tipeee " +"or via Liberapay." +msgstr "" +"O autor original (e por agora, o único) é Luc Didry. Se o desejar apoiar pode fazer-lo via Tipeee ou via " +"Liberapay." -#: lib/Lufi/Controller/Files.pm:179 -msgid "The server was unable to find the file record to add your file part to. Please, contact the administrator." -msgstr "O servidor foi incapaz de encontrar o registo do ficheiro no qual devia-se juntar o fragmento do seu ficheiro. Contacte o administrador." +#: lib/Lufi/Controller/Files.pm:189 +msgid "" +"The server was unable to find the file record to add your file part to. " +"Please, contact the administrator." +msgstr "" +"O servidor foi incapaz de encontrar o registo do ficheiro no qual devia-se " +"juntar o fragmento do seu ficheiro. Contacte o administrador." + +#: lib/Lufi/Controller/Files.pm:248 +msgid "" +"This file has been deactivated by the admins. Contact them to know why." +msgstr "" #: themes/default/templates/delays.html.ep:10 -msgid "This server sets limitations according to the file size. The expiration delay of your file will be the minimum between what you choose and the following limitations:" -msgstr "O servidor exige limites segundo o tamanho dos ficheiros. O prazo de expiração dos seu ficheiro sera o minimo entre o que você escolheu e os limites seguintes:" +msgid "" +"This server sets limitations according to the file size. The expiration " +"delay of your file will be the minimum between what you choose and the " +"following limitations:" +msgstr "" +"O servidor exige limites segundo o tamanho dos ficheiros. O prazo de " +"expiração dos seu ficheiro sera o minimo entre o que você escolheu e os " +"limites seguintes:" -#: themes/default/templates/index.html.ep:102 +#: themes/default/templates/partial/index.js.ep:16 msgid "Unable to copy the link(s) to your clipboard" msgstr "Impossível copiar o(s) link(s) na sua área de transferência" #. ($short) -#: lib/Lufi/Controller/Files.pm:361 -msgid "Unable to get counter for %1. The file does not exists. It will be removed from your localStorage." -msgstr "Impossível recuperar o contador para %1. O ficheiro não existe. Isso vai apagar a sua localStorage." +#: lib/Lufi/Controller/Files.pm:392 +msgid "" +"Unable to get counter for %1. The file does not exists. It will be removed " +"from your localStorage." +msgstr "" +"Impossível recuperar o contador para %1. O ficheiro não existe. Isso vai " +"apagar a sua localStorage." #. ($short) -#: lib/Lufi/Controller/Files.pm:351 +#: lib/Lufi/Controller/Files.pm:382 msgid "Unable to get counter for %1. The token is invalid." msgstr "Impossível recuperar o contador para %1. O símbolo é inválido." #. ($short) -#: lib/Lufi/Controller/Files.pm:371 +#: lib/Lufi/Controller/Files.pm:402 msgid "Unable to get counter for %1. You are not authenticated." msgstr "Impossível recuperar o contador para %1. Não está conectado." -#: themes/default/templates/layouts/default.html.ep:60 themes/default/templates/layouts/default.html.ep:72 +#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:61 msgid "Upload files" msgstr "Enviar os ficheiros" @@ -440,11 +568,11 @@ msgstr "Enviar os ficheiros" msgid "Uploaded at" msgstr "Enviar a" -#: themes/default/templates/index.html.ep:85 +#: themes/default/templates/index.html.ep:103 msgid "Uploaded files" msgstr "Ficheiros enviados" -#: themes/default/templates/index.html.ep:114 +#: themes/default/templates/partial/index.js.ep:29 msgid "Websocket communication error" msgstr "Erro de comunicação com WebSocket" @@ -452,48 +580,73 @@ msgstr "Erro de comunicação com WebSocket" msgid "What is Lufi?" msgstr "O que é o Lufi?" -#: -msgid "Who wrote Lufi?" -msgstr "Quem escreveu Lufi?" - #: themes/default/templates/about.html.ep:14 msgid "Who wrote this software?" msgstr "" #: themes/default/templates/about.html.ep:11 -msgid "You can see the list of your files by clicking on the \"My files\" link at the top right of this page." -msgstr "Pode ver a lista dos seus ficheiros clicando no link « Meus ficheiros » em cima da página à direita." +msgid "" +"You can see the list of your files by clicking on the \"My files\" link at " +"the top right of this page." +msgstr "" +"Pode ver a lista dos seus ficheiros clicando no link « Meus ficheiros » em " +"cima da página à direita." + +#: lib/Lufi/Controller/Mail.pm:42 +msgid "You can't add URLs that are not related to this instance." +msgstr "" #: themes/default/templates/about.html.ep:8 -msgid "You don't need to register yourself to upload files but be aware that, for legal reasons, your IP address will be stored when you send a file. Don't panic, this is normally the case for all sites on which you send files." -msgstr "Não precisa registar-se para enviar ficheiros mas saiba que, por razões legais, o seu endereço IP ficará registrado quando envia um ficheiro. Não entre em pânico, é algo comum a todos os sites onde envia ficheiros." +msgid "" +"You don't need to register yourself to upload files but be aware that, for " +"legal reasons, your IP address will be stored when you send a file. Don't " +"panic, this is normally the case for all sites on which you send files." +msgstr "" +"Não precisa registar-se para enviar ficheiros mas saiba que, por razões " +"legais, o seu endereço IP ficará registrado quando envia um ficheiro. Não " +"entre em pânico, é algo comum a todos os sites onde envia ficheiros." -#: themes/default/templates/render.html.ep:53 -msgid "You don't seem to have a key in your URL. You won't be able to decrypt the file. Download canceled." -msgstr "Parece que não tem a chave no seu URL. Não poderá descodificar o ficheiro. Download anulado." +#: themes/default/templates/partial/render.js.ep:10 +msgid "" +"You don't seem to have a key in your URL. You won't be able to decrypt the " +"file. Download canceled." +msgstr "" +"Parece que não tem a chave no seu URL. Não poderá descodificar o ficheiro. " +"Download anulado." -#: themes/default/templates/render.html.ep:50 -msgid "You have attempted to leave this page. The download will be canceled. Are you sure?" +#: themes/default/templates/partial/render.js.ep:7 +msgid "" +"You have attempted to leave this page. The download will be canceled. Are " +"you sure?" msgstr "Está a tentar sair da página. O download será anulado. Tem a certeza?" -#: themes/default/templates/index.html.ep:99 -msgid "You have attempted to leave this page. The upload will be canceled. Are you sure?" +#: themes/default/templates/partial/index.js.ep:13 +msgid "" +"You have attempted to leave this page. The upload will be canceled. Are you " +"sure?" msgstr "Está a tentar sair da página. O envio será anulado. Tem a certeza?" -#: themes/default/templates/logout.html.ep:5 +#: themes/default/templates/logout.html.ep:14 msgid "You have been successfully logged out." msgstr "Foi desconectado com sucesso." -#: lib/Lufi/Controller/Mail.pm:41 +#: lib/Lufi/Controller/Mail.pm:71 msgid "You must give email addresses." msgstr "Deve escrever os e-mails." +#: themes/default/templates/index.html.ep:29 +msgid "" +"Your browser has not enough entropy to generate a strong encryption key. " +"Please wait (it's better if you do things on your computer while waiting)." +msgstr "" + #. (format_bytes($json->{size}) -#: lib/Lufi/Controller/Files.pm:56 +#: lib/Lufi/Controller/Files.pm:66 msgid "Your file is too big: %1 (maximum size allowed: %2)" -msgstr "O seu ficheiro é grande de mais: %1 (o tamanho máximo autorizado é de %2)" +msgstr "" +"O seu ficheiro é grande de mais: %1 (o tamanho máximo autorizado é de %2)" -#: lib/Lufi/Controller/Files.pm:273 +#: lib/Lufi/Controller/Files.pm:304 msgid "Your password is not valid. Please refresh the page to retry." msgstr "" @@ -507,7 +660,7 @@ msgstr "entre %1 e %2, o ficheiro será conservado %3 dia(s) ;" msgid "between %1 and %2, the file will be kept forever." msgstr "entre %1 e %2, o ficheiro será conservado por um tempo indeterminado." -#: themes/default/templates/mail.html.ep:85 +#: themes/default/templates/partial/mail.js.ep:42 msgid "deadline: " msgstr "Data-limite: " @@ -519,12 +672,13 @@ msgstr "para %1 e mais, o ficheiro será conservado %2 dia(s)." #. (format_bytes($keys[$i]) #: themes/default/templates/delays.html.ep:28 msgid "for %1 and more, the file will be kept forever." -msgstr "para %1 e mais, o ficheiro será conservado por um tempo indeterminado." +msgstr "" +"para %1 e mais, o ficheiro será conservado por um tempo indeterminado." #: themes/default/templates/index.html.ep:3 msgid "no time limit" msgstr "Não tem limite de expiração" -#: themes/default/templates/index.html.ep:78 +#: themes/default/templates/index.html.ep:96 msgid "or" msgstr "ou" diff --git a/themes/default/public/css/lufi.css b/themes/default/public/css/lufi.css index 496901a..7b96ea9 100644 --- a/themes/default/public/css/lufi.css +++ b/themes/default/public/css/lufi.css @@ -102,3 +102,145 @@ a.classic:focus { .files-buttons a { margin-bottom: 10px; } +#pb { + width: 0; +} +.no_border { + border: 0; +} +.like-label { + color: #9e9e9e; + font-size: 1.5rem; +} +.select-lang .select-wrapper span.caret { + top: -10px; + color: #FFF; +} +.select-lang .select-wrapper input.select-dropdown { + margin-top: 10px; + margin-bottom: 0; + border-bottom: 0; +} +.select-lang-mobile .select-wrapper input.select-dropdown { + color: #444; + border-bottom: 0; +} +.select-lang-mobile .select-wrapper span.caret { + top: -10px; +} +.select-lang, +.select-lang-mobile { + padding-left: 15px !important; + padding-right: 15px !important; +} +nav .btn-flat { + color: #fff !important; + text-transform: initial !important; +} +nav .btn-flat:focus { + background-color: rgba(0,0,0,0.1) !important; +} +.white-background { + background-color: #FFF; +} +.width-0 { width: 0%; } +.width-1 { width: 1%; } +.width-2 { width: 2%; } +.width-3 { width: 3%; } +.width-4 { width: 4%; } +.width-5 { width: 5%; } +.width-6 { width: 6%; } +.width-7 { width: 7%; } +.width-8 { width: 8%; } +.width-9 { width: 9%; } +.width-10 { width: 10%; } +.width-11 { width: 11%; } +.width-12 { width: 12%; } +.width-13 { width: 13%; } +.width-14 { width: 14%; } +.width-15 { width: 15%; } +.width-16 { width: 16%; } +.width-17 { width: 17%; } +.width-18 { width: 18%; } +.width-19 { width: 19%; } +.width-20 { width: 20%; } +.width-21 { width: 21%; } +.width-22 { width: 22%; } +.width-23 { width: 23%; } +.width-24 { width: 24%; } +.width-25 { width: 25%; } +.width-26 { width: 26%; } +.width-27 { width: 27%; } +.width-28 { width: 28%; } +.width-29 { width: 29%; } +.width-30 { width: 30%; } +.width-31 { width: 31%; } +.width-32 { width: 32%; } +.width-33 { width: 33%; } +.width-34 { width: 34%; } +.width-35 { width: 35%; } +.width-36 { width: 36%; } +.width-37 { width: 37%; } +.width-38 { width: 38%; } +.width-39 { width: 39%; } +.width-40 { width: 40%; } +.width-41 { width: 41%; } +.width-42 { width: 42%; } +.width-43 { width: 43%; } +.width-44 { width: 44%; } +.width-45 { width: 45%; } +.width-46 { width: 46%; } +.width-47 { width: 47%; } +.width-48 { width: 48%; } +.width-49 { width: 49%; } +.width-50 { width: 50%; } +.width-51 { width: 51%; } +.width-52 { width: 52%; } +.width-53 { width: 53%; } +.width-54 { width: 54%; } +.width-55 { width: 55%; } +.width-56 { width: 56%; } +.width-57 { width: 57%; } +.width-58 { width: 58%; } +.width-59 { width: 59%; } +.width-60 { width: 60%; } +.width-61 { width: 61%; } +.width-62 { width: 62%; } +.width-63 { width: 63%; } +.width-64 { width: 64%; } +.width-65 { width: 65%; } +.width-66 { width: 66%; } +.width-67 { width: 67%; } +.width-68 { width: 68%; } +.width-69 { width: 69%; } +.width-70 { width: 70%; } +.width-71 { width: 71%; } +.width-72 { width: 72%; } +.width-73 { width: 73%; } +.width-74 { width: 74%; } +.width-75 { width: 75%; } +.width-76 { width: 76%; } +.width-77 { width: 77%; } +.width-78 { width: 78%; } +.width-79 { width: 79%; } +.width-80 { width: 80%; } +.width-81 { width: 81%; } +.width-82 { width: 82%; } +.width-83 { width: 83%; } +.width-84 { width: 84%; } +.width-85 { width: 85%; } +.width-86 { width: 86%; } +.width-87 { width: 87%; } +.width-88 { width: 88%; } +.width-89 { width: 89%; } +.width-90 { width: 90%; } +.width-91 { width: 91%; } +.width-92 { width: 92%; } +.width-93 { width: 93%; } +.width-94 { width: 94%; } +.width-95 { width: 95%; } +.width-96 { width: 96%; } +.width-97 { width: 97%; } +.width-98 { width: 98%; } +.width-99 { width: 99%; } +.width-100 { width: 100%; } diff --git a/themes/default/public/js/filesize.min.js b/themes/default/public/js/filesize.min.js index 6338a47..397c24b 100644 --- a/themes/default/public/js/filesize.min.js +++ b/themes/default/public/js/filesize.min.js @@ -1,6 +1,6 @@ /* - * 2015 Jason Mulligan - * @version 3.1.2 - * */ -"use strict";!function(a){var b=/b$/,c={bits:["B","kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","kB","MB","GB","TB","PB","EB","ZB","YB"]},d=function(a){var d=void 0===arguments[1]?{}:arguments[1],e=[],f=!1,g=0,h=void 0,i=void 0,j=void 0,k=void 0,l=void 0,m=void 0,n=void 0,o=void 0,p=void 0,q=void 0,r=void 0;if(isNaN(a))throw new Error("Invalid arguments");return j=d.bits===!0,p=d.unix===!0,i=void 0!==d.base?d.base:2,o=void 0!==d.round?d.round:p?1:2,q=void 0!==d.spacer?d.spacer:p?"":" ",r=void 0!==d.suffixes?d.suffixes:{},n=void 0!==d.output?d.output:"string",h=void 0!==d.exponent?d.exponent:-1,m=Number(a),l=0>m,k=i>2?1e3:1024,l&&(m=-m),0===m?(e[0]=0,e[1]=p?"":"B"):((-1===h||isNaN(h))&&(h=Math.floor(Math.log(m)/Math.log(k))),h>8&&(g=1e3*g*(h-8),h=8),g=2===i?m/Math.pow(2,10*h):m/Math.pow(1e3,h),j&&(g=8*g,g>k&&(g/=k,h++)),e[0]=Number(g.toFixed(h>0?o:0)),e[1]=c[j?"bits":"bytes"][h],!f&&p&&(j&&b.test(e[1])&&(e[1]=e[1].toLowerCase()),e[1]=e[1].charAt(0),"B"===e[1]?(e[0]=Math.floor(e[0]),e[1]=""):j||"k"!==e[1]||(e[1]="K"))),l&&(e[0]=-e[0]),e[1]=r[e[1]]||e[1],"array"===n?e:"exponent"===n?h:"object"===n?{value:e[0],suffix:e[1]}:e.join(q)};"undefined"!=typeof exports?module.exports=d:"function"==typeof define?define(function(){return d}):a.filesize=d}("undefined"!=typeof global?global:window); -//# sourceMappingURL=filesize.min.js.map + 2018 Jason Mulligan + @version 3.6.1 +*/ +"use strict";!function(e){var i=/^(b|B)$/,t={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},o={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function b(e){var b,n,r,a,s,f,d,u,l,B,c,p,y,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=[],v=0,x=void 0,h=void 0;if(isNaN(e))throw new Error("Invalid arguments");return n=!0===g.bits,l=!0===g.unix,b=g.base||2,u=void 0!==g.round?g.round:l?1:2,B=void 0!==g.separator&&g.separator||"",c=void 0!==g.spacer?g.spacer:l?"":" ",y=g.symbols||g.suffixes||{},p=2===b&&g.standard||"jedec",d=g.output||"string",a=!0===g.fullform,s=g.fullforms instanceof Array?g.fullforms:[],x=void 0!==g.exponent?g.exponent:-1,f=(h=Number(e))<0,r=b>2?1e3:1024,f&&(h=-h),(-1===x||isNaN(x))&&(x=Math.floor(Math.log(h)/Math.log(r)))<0&&(x=0),x>8&&(x=8),0===h?(m[0]=0,m[1]=l?"":t[p][n?"bits":"bytes"][x]):(v=h/(2===b?Math.pow(2,10*x):Math.pow(1e3,x)),n&&(v*=8)>=r&&x<8&&(v/=r,x++),m[0]=Number(v.toFixed(x>0?u:0)),m[1]=10===b&&1===x?n?"kb":"kB":t[p][n?"bits":"bytes"][x],l&&(m[1]="jedec"===p?m[1].charAt(0):x>0?m[1].replace(/B$/,""):m[1],i.test(m[1])&&(m[0]=Math.floor(m[0]),m[1]=""))),f&&(m[0]=-m[0]),m[1]=y[m[1]]||m[1],"array"===d?m:"exponent"===d?x:"object"===d?{value:m[0],suffix:m[1],symbol:m[1]}:(a&&(m[1]=s[x]?s[x]:o[p][x]+(n?"bit":"byte")+(1===m[0]?"":"s")),B.length>0&&(m[0]=m[0].toString().replace(".",B)),m.join(c))}b.partial=function(e){return function(i){return b(i,e)}},"undefined"!=typeof exports?module.exports=b:"function"==typeof define&&define.amd?define(function(){return b}):e.filesize=b}("undefined"!=typeof window?window:global); +//# sourceMappingURL=filesize.min.js.map \ No newline at end of file diff --git a/themes/default/public/js/filesize.min.js.map b/themes/default/public/js/filesize.min.js.map new file mode 100644 index 0000000..da026c7 --- /dev/null +++ b/themes/default/public/js/filesize.min.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["filesize.js"],"names":["global","b","symbol","iec","bits","bytes","jedec","fullform","filesize","arg","base","ceil","full","fullforms","neg","output","round","unix","separator","spacer","standard","symbols","descriptor","arguments","length","undefined","result","val","e","num","isNaN","Error","suffixes","Array","exponent","Number","Math","floor","log","pow","toFixed","charAt","replace","test","value","suffix","toString","join","partial","opt","exports","module","define","amd","window"],"mappings":";;;;AAAA,cASA,SAAWA,GACV,IAAIC,EAAI,UACJC,GACHC,KACCC,MAAO,IAAK,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,OAC7DC,OAAQ,IAAK,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,QAE/DC,OACCF,MAAO,IAAK,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,MACtDC,OAAQ,IAAK,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,QAGrDE,GACHJ,KAAM,GAAI,OAAQ,OAAQ,OAAQ,OAAQ,OAAQ,OAAQ,OAAQ,QAClEG,OAAQ,GAAI,OAAQ,OAAQ,OAAQ,OAAQ,OAAQ,MAAO,QAAS,UAWrE,SAASE,EAASC,GACjB,IAKIC,EACAN,EACAO,EACAC,EACAC,EACAC,EAEAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EAlBAC,EAAaC,UAAUC,OAAS,QAAsBC,IAAjBF,UAAU,GAAmBA,UAAU,MAE5EG,KACAC,EAAM,EACNC,OAAI,EAOJC,OAAM,EASV,GAAIC,MAAMrB,GACT,MAAM,IAAIsB,MAAM,qBA4EjB,OAzEA3B,GAA2B,IAApBkB,EAAWlB,KAClBa,GAA2B,IAApBK,EAAWL,KAClBP,EAAOY,EAAWZ,MAAQ,EAC1BM,OAA6B,IAArBM,EAAWN,MAAmBM,EAAWN,MAAQC,EAAO,EAAI,EACpEC,OAAqC,IAAzBI,EAAWJ,WAAuBI,EAAWJ,WAAkB,GAC3EC,OAA+B,IAAtBG,EAAWH,OAAoBG,EAAWH,OAASF,EAAO,GAAK,IACxEI,EAAUC,EAAWD,SAAWC,EAAWU,aAC3CZ,EAAoB,IAATV,GAAaY,EAAWF,UAAsB,QACzDL,EAASO,EAAWP,QAAU,SAC9BH,GAA+B,IAAxBU,EAAWf,SAClBM,EAAYS,EAAWT,qBAAqBoB,MAAQX,EAAWT,aAC/De,OAA4B,IAAxBN,EAAWY,SAAsBZ,EAAWY,UAAY,EAE5DpB,GADAe,EAAMM,OAAO1B,IACD,EACZE,EAAOD,EAAO,EAAI,IAAO,KAGrBI,IACHe,GAAOA,KAIG,IAAPD,GAAYE,MAAMF,MACrBA,EAAIQ,KAAKC,MAAMD,KAAKE,IAAIT,GAAOO,KAAKE,IAAI3B,KAEhC,IACPiB,EAAI,GAKFA,EAAI,IACPA,EAAI,GAIO,IAARC,GACHH,EAAO,GAAK,EACZA,EAAO,GAAKT,EAAO,GAAKf,EAAOkB,GAAUhB,EAAO,OAAS,SAASwB,KAElED,EAAME,GAAgB,IAATnB,EAAa0B,KAAKG,IAAI,EAAO,GAAJX,GAAUQ,KAAKG,IAAI,IAAMX,IAE3DxB,IACHuB,GAAY,IAEDhB,GAAQiB,EAAI,IACtBD,GAAYhB,EACZiB,KAIFF,EAAO,GAAKS,OAAOR,EAAIa,QAAQZ,EAAI,EAAIZ,EAAQ,IAC/CU,EAAO,GAAc,KAAThB,GAAqB,IAANkB,EAAUxB,EAAO,KAAO,KAAOF,EAAOkB,GAAUhB,EAAO,OAAS,SAASwB,GAEhGX,IACHS,EAAO,GAAkB,UAAbN,EAAuBM,EAAO,GAAGe,OAAO,GAAKb,EAAI,EAAIF,EAAO,GAAGgB,QAAQ,KAAM,IAAMhB,EAAO,GAElGzB,EAAE0C,KAAKjB,EAAO,MACjBA,EAAO,GAAKU,KAAKC,MAAMX,EAAO,IAC9BA,EAAO,GAAK,MAMXZ,IACHY,EAAO,IAAMA,EAAO,IAIrBA,EAAO,GAAKL,EAAQK,EAAO,KAAOA,EAAO,GAG1B,UAAXX,EACIW,EAGO,aAAXX,EACIa,EAGO,WAAXb,GACM6B,MAAOlB,EAAO,GAAImB,OAAQnB,EAAO,GAAIxB,OAAQwB,EAAO,KAG1Dd,IACHc,EAAO,GAAKb,EAAUe,GAAKf,EAAUe,GAAKrB,EAASa,GAAUQ,IAAMxB,EAAO,MAAQ,SAAyB,IAAdsB,EAAO,GAAW,GAAK,MAGjHR,EAAUM,OAAS,IACtBE,EAAO,GAAKA,EAAO,GAAGoB,WAAWJ,QAAQ,IAAKxB,IAGxCQ,EAAOqB,KAAK5B,IAIpBX,EAASwC,QAAU,SAAUC,GAC5B,OAAO,SAAUxC,GAChB,OAAOD,EAASC,EAAKwC,KAKA,oBAAZC,QACVC,OAAOD,QAAU1C,EACW,mBAAX4C,QAAyBA,OAAOC,IACjDD,OAAO,WACN,OAAO5C,IAGRR,EAAOQ,SAAWA,EAjKpB,CAmKqB,oBAAX8C,OAAyBA,OAAStD","file":"filesize.min.js"} \ No newline at end of file diff --git a/themes/default/public/js/ie-detection.js b/themes/default/public/js/ie-detection.js new file mode 100644 index 0000000..3abc11b --- /dev/null +++ b/themes/default/public/js/ie-detection.js @@ -0,0 +1,29 @@ +function confirmExit() { + console.log(i18n.confirmExit); + return i18n.confirmExit; +} + +// Is the browser IE? +var isIE = /*@cc_on!@*/false || !!document.documentMode; + +// If the browser is IE, add readAsBinaryString function and store the data +if (isIE == true){ + if (FileReader.prototype.readAsBinaryString === undefined) { + FileReader.prototype.readAsBinaryString = function (fileData) { + var binary = ""; + var pt = this; + var reader = new FileReader(); + reader.onload = function (e) { + var bytes = new Uint8Array(reader.result); + var length = bytes.byteLength; + for (var i = 0; i < length; i++) { + binary += String.fromCharCode(bytes[i]); + } + //pt.result - readonly so assign content to another property + pt.content = binary; + $(pt).trigger('onloadend'); + } + reader.readAsArrayBuffer(fileData); + } + } +} diff --git a/themes/default/public/js/jquery-2.1.1.min.js b/themes/default/public/js/jquery-2.1.1.min.js deleted file mode 100644 index e5ace11..0000000 --- a/themes/default/public/js/jquery-2.1.1.min.js +++ /dev/null @@ -1,4 +0,0 @@ -/*! jQuery v2.1.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ -!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.1",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&&(l=!0),0},C="undefined",D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],!a||"string"!=typeof a)return d;if(1!==(k=b.nodeType)&&9!==k)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&&ob(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&&typeof a.getElementsByTagName!==C&&a}c=fb.support={},f=fb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&&9===e.nodeType&&e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=ib(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&ib(function(a){return a.innerHTML="
",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==C&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&&(ib(function(a){a.innerHTML="",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+Math.random()}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b) -},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthx",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*\s*$/g,ib={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(ob(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(ob(c,"script"),kb),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(hb,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function tb(a){var b=l,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||n("