From db0e02b5d44b9e016b91fd8e5c95bdf72719cd6d Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 30 May 2016 10:53:29 +0200 Subject: fixes #476, in case of guest_access=false, redirect_http instead of redirect_html --- include/functions_html.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index b0f123a14..5812856a0 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -273,7 +273,7 @@ function tag_alpha_compare($a, $b) */ function access_denied() { - global $user; + global $user, $conf; $login_url = get_root_url().'identification.php?redirect=' @@ -289,6 +289,10 @@ function access_denied() echo str_repeat( ' ', 512); //IE6 doesn't error output if below a size exit(); } + elseif (!$conf['guest_access'] and is_a_guest()) + { + redirect_http($login_url); + } else { redirect_html($login_url); @@ -648,4 +652,4 @@ function flush_page_messages() } } -?> \ No newline at end of file +?> -- cgit v1.2.3 From e580e7d31f082d58e42df68d2c45012b7ab34ad9 Mon Sep 17 00:00:00 2001 From: jeremydurand Date: Fri, 3 Jun 2016 14:51:46 +0200 Subject: Bug/430 placeholder (#494) fixes #430 placeholder --- admin/themes/default/template/batch_manager_global.tpl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl index d8b183717..c87f9ea56 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -631,15 +631,13 @@ UL.thumbnails SPAN.wrap2 {ldelim}

- {assign var='authorDefaultValue' value='Type here the author name'|@translate} - +

- {assign var='titleDefaultValue' value='Type here the title'|@translate} - +
-- cgit v1.2.3 From 1f0e95c22c86d8fbc1fd08924602b48130d7ea8a Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 5 Jul 2016 12:17:28 +0200 Subject: bug #476, set http code to 401 only when not redirecting --- include/functions_html.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 5812856a0..5af5c1862 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -279,9 +279,10 @@ function access_denied() get_root_url().'identification.php?redirect=' .urlencode(urlencode($_SERVER['REQUEST_URI'])); - set_status_header(401); if ( isset($user) and !is_a_guest() ) { + set_status_header(401); + echo ''; echo '
'.l10n('You are not authorized to access the requested page').'
'; echo ''.l10n('Identification').' '; -- cgit v1.2.3 From cfb62ec79b1f51534e312da8e5a3d7b6ed73e567 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 5 Jul 2016 13:37:51 +0200 Subject: fixes #270 add password reset form to smartpocket --- themes/smartpocket/template/identification.tpl | 12 ++++++------ themes/smartpocket/template/password.tpl | 27 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 6 deletions(-) create mode 100755 themes/smartpocket/template/password.tpl diff --git a/themes/smartpocket/template/identification.tpl b/themes/smartpocket/template/identification.tpl index 33d011570..cf29190da 100644 --- a/themes/smartpocket/template/identification.tpl +++ b/themes/smartpocket/template/identification.tpl @@ -28,14 +28,14 @@ -
-{if isset($U_REGISTER)} - {'Register'|@translate} -{/if} -{* +
{if isset($U_LOST_PASSWORD)} {'Forgot your password?'|@translate} {/if} -*} + +{if isset($U_REGISTER)} + {'Register'|@translate} +{/if} +
diff --git a/themes/smartpocket/template/password.tpl b/themes/smartpocket/template/password.tpl new file mode 100755 index 000000000..a45ef819c --- /dev/null +++ b/themes/smartpocket/template/password.tpl @@ -0,0 +1,27 @@ +{include file='infos_errors.tpl'} +
+

{'Forgot your password?'|translate}

+{if $action ne 'none'} +
+ + + {if $action eq 'lost'} +
+ + + +
+ + {elseif $action eq 'reset'} +
+ + + + + +
+ {/if} + +
+{/if} {* $action ne 'none' *} +
-- cgit v1.2.3 From c72a414a4832d2f768161b87188f16cb151f6cc9 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 5 Jul 2016 14:02:01 +0200 Subject: cheery-pick 8 commits from translation git log --reverse --oneline translation ^master --pretty=format:"git cherry-pick --no-commit %H" c7465d6..39ad66c | bash --- language/br_FR/admin.lang.php | 54 ++++++++++++++++++++++++++++++++++++++--- language/da_DK/admin.lang.php | 4 +-- language/fr_FR/admin.lang.php | 2 +- language/id_ID/common.lang.php | 13 +++++++++- language/id_ID/install.lang.php | 49 +++++++++++++++++++++++++++++++++++++ language/ro_RO/admin.lang.php | 4 ++- 6 files changed, 117 insertions(+), 9 deletions(-) create mode 100755 language/id_ID/install.lang.php diff --git a/language/br_FR/admin.lang.php b/language/br_FR/admin.lang.php index c02152ebc..52fbbf4c3 100755 --- a/language/br_FR/admin.lang.php +++ b/language/br_FR/admin.lang.php @@ -683,7 +683,7 @@ $lang['Move'] = 'Dilec\'hiañ'; $lang['Move albums'] = 'Dilec\'hiañ ar rummadoù'; $lang['Move to album'] = 'Dilec\'hiañ d\'ar rummad'; $lang['Remove all filters'] = 'Tennañ an holl siloù'; -$lang['remove author'] = 'tennañ an aozer'; +$lang['remove author'] = 'tennañ an oberour'; $lang['remove tags'] = 'tennañ ar merkerioù'; $lang['remove this filter'] = 'tennañ ar sil-se'; $lang['remove title'] = 'tennañ an titl'; @@ -791,8 +791,8 @@ $lang['Pages seen'] = 'Pajennoù gwelet'; $lang['Page end'] = 'Dibenn ar bajenn'; $lang['Overall'] = 'Gwel a-vras'; $lang['Page banner'] = 'Banniel ar bajenn'; -$lang['top left corner'] = 'Korn al laez a gleiz'; -$lang['top right corner'] = 'Korn an traoñ a-zehoù'; +$lang['top left corner'] = 'Korn an uhelañ a gleiz'; +$lang['top right corner'] = 'Korn an uhelañ a-zehoù'; $lang['user_status_generic'] = 'Generek'; $lang['The webmaster has subscribed you to receiving notifications by mail.'] = 'Ar mestr-gwiad en deus koumanantet ac\'hanoc\'h da kemennoù dre bosteloù.'; $lang['The webmaster has unsubscribed you from receiving notifications by mail.'] = 'Ar mestr-gwiad en deus digoumanantet ac\'hanoc\'h eus kemennoù dre bosteloù.'; @@ -890,4 +890,50 @@ $lang['Send mail as'] = 'Kas ar bostel evel'; $lang['Quick Local Synchronization'] = 'Sinkroneladur lec\'hel prim'; $lang['even already synchronized photos'] = 'memes al luc\'hskeudennoù sinkronelaet'; $lang['synchronize files structure with database'] = 'Sinkronelaat framm ar restroù gant an diaz roadennoù'; -$lang['Predefined filter'] = 'Sil raktermenet'; \ No newline at end of file +$lang['Predefined filter'] = 'Sil raktermenet'; +$lang['custom'] = 'Personelaet'; +$lang['Waiting'] = 'O c\'hortoz'; +$lang['Time'] = 'Eur'; +$lang['With no album'] = 'Hep rummad'; +$lang['With no tag'] = 'Hep merker'; +$lang['The %d following tags were deleted'] = 'An %d merkerioù-se a zo bet dilemet'; +$lang['albums deleted in the database'] = 'rummad dilemet en diaz roadennoù'; +$lang['delete album'] = 'dilemel ar rummad'; +$lang['group "%s" deleted'] = 'dilemet strollad "%s"'; +$lang['high'] = 'uhel'; +$lang['leave'] = 'kuitaat'; +$lang['middle'] = 'kreiz'; +$lang['modified'] = 'cheñchet'; +$lang['none'] = 'netra'; +$lang['unknown'] = 'dianav'; +$lang['pixels'] = 'pikselioù'; +$lang['ranks'] = 'renkoù'; +$lang['sub-albums'] = 'iz-rummadoù'; +$lang['target'] = 'bukenn'; +$lang['test'] = 'test'; +$lang['the forum'] = 'ar forom'; +$lang['the wiki'] = 'ar wiki'; +$lang['total time'] = 'pad hollek'; +$lang['Type here the author name'] = 'Lakait anv an oberour amañ'; +$lang['Type here the name of the new group'] = 'Lakait anv ar strollad nevez amañ'; +$lang['Type here the title'] = 'Lakait an titl amañ'; +$lang['bottom left corner'] = 'Korn an izelañ a gleiz'; +$lang['bottom right corner'] = 'Korn an izelañ a-zehoù'; +$lang['Week starts on'] = 'Ar sizhun a krog d\''; +$lang['Who can see these photos?'] = 'Piv a c\'hell gwelet al luc\'hskeudennoù-mañ ?'; +$lang['Who can see this photo?'] = 'Piv a c\'hell gwelet al luc\'hskeudenn-mañ ?'; +$lang['X Repeat'] = 'Adober X'; +$lang['Y Repeat'] = 'Adober Y'; +$lang['Zoom'] = 'Zoum'; +$lang['reduce to single existing albums'] = 'bihanaat da rummadoù a zo unan hepken anezho'; +$lang['include child albums'] = 'endelc\'hel rummadoù-bugale'; +$lang['create a new album'] = 'krouiñ ur rummad nevez'; +$lang['Storage album'] = 'Rummad-klenkañ'; +$lang['The Piwigo export plugin allows you to create albums and export photos.'] = 'Gant al lugant ezporzhiañ Piwigo e vo tu deoc\'h krouiñ rummadoù hag ezporzhiañ luc\'hskeudennoù.'; +$lang['jump to album'] = 'Mont d\'ar rummad'; +$lang['This album contains %d photos, added between %s and %s.'] = '%d luc\'hskeudenn ez eus er rummad-mañ, lakaet etre %s hag %s.'; +$lang['Support'] = 'Skor'; +$lang['Simulation'] = 'Darvanerezh'; +$lang['Statistics'] = 'Stadegoù'; +$lang['Repair and optimize database'] = 'Ratreañ ha gwellekaat an diaz roadennoù'; +$lang['Ratio'] = 'Parenn an neuz'; \ No newline at end of file diff --git a/language/da_DK/admin.lang.php b/language/da_DK/admin.lang.php index 9387d670f..82e45548e 100644 --- a/language/da_DK/admin.lang.php +++ b/language/da_DK/admin.lang.php @@ -863,7 +863,7 @@ $lang['Multiple Size'] = 'Flere størrelser'; $lang['%u users have automatic permission because they belong to a granted group.'] = '%u brugere har automatisk tilladelse, fordi de tilhører en gruppe med tilladelser.'; $lang['Piwigo for Android application empowers you to connect your Android phone or table to your Piwigo gallery, create some albums and upload several photos at once.'] = 'App\'en Piwigo for Android giver dig mulighed for at forbinde en Android-mobiltelelfon eller -tablet med dit Piwigo-galleri, oprette albummer og uploade flere fotografier på én gang.'; $lang['Adobe Photoshop Lightroom is a photography software designed to manage large quantities of digital images and doing post production work.'] = 'Adobe Photoshop Lightroom er et fotografiprogram beregnet til at håndtere store mængder digitale billeder og foretage efterbehandling.'; -$lang['Aperture is a powerful tool to refine images and manage massive libraries on Mac.'] = 'Aperture er et ydedygtigt værktøj til at forfine billeder og administrere store biblioteker på Mac.'; +$lang['Aperture is a powerful tool to refine images and manage massive libraries on Mac.'] = 'Aperture er et ydedygtigt værktøj til at forfine billeder og administrere store biblioteker på en Mac.'; $lang['Aperture is designed for professional photographers with iPhoto simplicity.'] = 'Aperture er udviklet til professionelle fotografer med iPhoto-enkelhed.'; $lang['By default, the center of interest is placed in the middle of the photo.'] = 'Som standard er fokusområdet placeret i midten af fotografiet'; $lang['Center of interest'] = 'Fokusområde'; @@ -986,7 +986,7 @@ $lang['width & height'] = 'bredde og højde'; $lang['No and unlock sub-albums'] = 'Nej, og lås underalbummer op'; $lang['Upload in progress'] = 'Upload i gang'; $lang['Delete %d orphan photos'] = 'Slettede %d forældreløse fotografier'; -$lang['Each email sent will contain its own automatic authentication key on links, valid for %s.'] = 'Hver afsendt mail indeholder sign egen automatiske autentifikationsnøgle i links, gyldige i %s.'; +$lang['Each email sent will contain its own automatic authentication key on links, valid for %s.'] = 'Hver afsendt mail indeholder sin egen automatiske autentifikationsnøgle i links, gyldig i %s.'; $lang['Edit user'] = 'Rediger bruger'; $lang['For security reason, authentication keys do not work for administrators.'] = 'Af sikkerhedsgrunde fungerer autentifikationsnøgler ikke for administratorer.'; $lang['No recipient selected'] = 'Ingen modtager valgt'; diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php index 6c6fb81f0..0036542eb 100644 --- a/language/fr_FR/admin.lang.php +++ b/language/fr_FR/admin.lang.php @@ -185,7 +185,7 @@ $lang['Lock albums'] = 'Verrouiller les albums'; $lang['Private'] = 'Album privé'; $lang['Public'] = 'Album public'; $lang['Find a new representant by random'] = "Trouver un nouveau représentant au hasard"; -$lang['Public / Private'] = "Publique / Privée"; +$lang['Public / Private'] = 'Public / Privé'; $lang['Manage authorizations for selected albums'] = 'Gérer le type d\'accès pour les albums sélectionnés'; $lang['Virtual album added'] = 'Album virtuel ajouté'; $lang['Virtual album deleted'] = 'Album virtuel supprimé'; diff --git a/language/id_ID/common.lang.php b/language/id_ID/common.lang.php index 1357a3680..4a0f392f0 100644 --- a/language/id_ID/common.lang.php +++ b/language/id_ID/common.lang.php @@ -416,4 +416,15 @@ $lang['About'] = 'Tentang'; $lang['About Piwigo'] = 'Tentang Piwigo'; $lang['Accelerate diaporama speed'] = 'Tingkatkan kecepatan guliran gambar '; $lang['Add a comment'] = 'Tambahkan sebuah komentar'; -?> \ No newline at end of file +$lang['%d photos per page'] = '%d foto per halaman'; +$lang['Album name, A → Z'] = 'Nama album, A &arr; Z'; +$lang['Album name, Z → A'] = 'Nama album, Z &arr; A'; +$lang['Apply on properties'] = 'Terapkan ke properti'; +$lang['Link: %s'] = 'Tautan: %s'; +$lang['No results for'] = 'Tidak ada hasil untuk'; +$lang['Password confirmation is missing. Please confirm the chosen password.'] = 'Konfirmasi kata sandi terlewatkan. Harap konfirmasi kata sandi yang dipilih.'; +$lang['Password is missing. Please enter the password.'] = 'Kata sandi terlewat. Harap masukkan kata sandi.'; +$lang['Photo description'] = 'Deskripsi Foto'; +$lang['Photo title'] = 'Judul foto'; +$lang['Theme'] = 'Tema'; +$lang['Your authentication key is no longer valid.'] = 'Kunci otentikasi tidak lagi berlaku.'; \ No newline at end of file diff --git a/language/id_ID/install.lang.php b/language/id_ID/install.lang.php new file mode 100755 index 000000000..9b250a402 --- /dev/null +++ b/language/id_ID/install.lang.php @@ -0,0 +1,49 @@ +Piwigo message board.'] = 'Butuh bantuan? Ajukan pertannyaan anda ke Piwigo message board.'; +$lang['Note you can change your configuration by yourself and restart Piwigo after that.'] = 'Catat bahwa anda dapat mengubah pengaturan anda sendiri kemudian mulai ulang Piwigo.'; +$lang['PHP 5 is required'] = 'PHP 5.2 diperlukan'; +$lang['Password ']['confirm'] = 'Kata sandi [konfirmasi]'; +$lang['Piwigo may try to switch your configuration to PHP 5 by creating or modifying a .htaccess file.'] = 'Piwigo mungkin akan mencoba mengganti pengaturan anda ke PHP 5.2 dengan membuat atau mengubah sebuah berkan .httaccess'; +$lang['Piwigo was not able to configure PHP 5.'] = 'Piwigo tidak dapat mengatur PHP 5.2'; +$lang['Sorry!'] = 'Maaf!'; +$lang['Start Install'] = 'Mulai pemasangan'; +$lang['Try to configure PHP 5'] = 'Cobalah untuk mengatur PHP 5.2'; +$lang['User'] = 'Pengguna'; +$lang['Visitors will be able to contact site administrator with this mail'] = 'Pengunjung akan dapat menggunakan email ini untuk menghubungi administrator situs'; +$lang['Welcome to my photo gallery'] = 'Selamat datang ke foto galeriku'; +$lang['Welcome to your new installation of Piwigo!'] = 'Selamat datang ke instalasi baru dari Piwigo!'; +$lang['Admin configuration'] = 'Pengaturan administrasi'; +$lang['Basic configuration'] = 'Pengaturan dasar'; +$lang['Can\'t connect to server'] = 'Tidak dapat terhubung ke server'; +$lang['Congratulations, Piwigo installation is completed'] = 'Selamat, Instalasi piwigo telah selesai'; +$lang['Connection to server succeed, but it was impossible to connect to database'] = 'Koneksi ke server berhasil, tetapi koneksi ke database tidak memungkinkan.'; +$lang['Creation of config file local/config/database.inc.php failed.'] = 'Pembuatan berkas pengaturan local/config.database.inc.php gagal.'; +$lang['Database configuration'] = 'Pengaturan database'; +$lang['Database name'] = 'Nama database'; +$lang['Database table prefix'] = 'Prefiks tabel database'; +$lang['Don\'t hesitate to consult our forums for any help : %s'] = 'Jangan ragu untuk berkosultasi ke forum kami untuk bantuan apapun: %s'; +$lang['Download the config file'] = 'Unduh berkas pengaturan'; +$lang['Hope to see you back soon.'] = 'Berharap akan bertemu anda kembali.'; +$lang['Installation'] = 'Pemasangan'; \ No newline at end of file diff --git a/language/ro_RO/admin.lang.php b/language/ro_RO/admin.lang.php index 042c186a8..cb978a0f5 100644 --- a/language/ro_RO/admin.lang.php +++ b/language/ro_RO/admin.lang.php @@ -992,4 +992,6 @@ $lang['No recipient selected'] = 'Nu a fost selectat nici un destinatar'; $lang['For security reason, authentication keys do not work for administrators.'] = 'Din motive de securitate, cheile de autentificare nu funcţionează pentru administratori'; $lang['Recipients'] = 'Destinatari'; $lang['Edit user'] = 'Editează utilizatorul'; -$lang['Y Repeat'] = 'Y Repetare'; \ No newline at end of file +$lang['Y Repeat'] = 'Y Repetare'; +$lang['Delete %d orphan photos'] = 'Sterge %d fotografii orfane'; +$lang['Orphans'] = 'Orfane'; \ No newline at end of file -- cgit v1.2.3