fixes #1574 good message when unlocking the gallery

This commit is contained in:
Matthieu Leproux
2021-11-30 13:55:21 +01:00
parent efd0d06e47
commit f744028fdb
3 changed files with 8 additions and 1 deletions

View File

@@ -10,7 +10,12 @@ const unit_MB = "{"%s MB"|@translate}"
let selected = [];
$(".lock-gallery-button").each(function() {
const gallery_tip = '{"A locked gallery is only visible to administrators"|@translate|@escape:'javascript'}';
let title = '{"Are you sure you want to lock the gallery?"|@translate}';
{if (isset($U_MAINT_LOCK_GALLERY))}
let title = '{"Are you sure you want to lock the gallery?"|@translate}';
{else}
let title = '{"Are you sure you want to unlock the gallery?"|@translate}';
{/if}
let confirm_msg_gallery = '{"Yes, I want to lock the gallery"|@translate}';
let cancel_msg_gallery = '{"Keep it unlocked"|@translate}';
$(this).pwg_jconfirm_follow_href({

View File

@@ -1068,6 +1068,7 @@ $lang['Are you sure you want to delete the plugin "%s"?'] = 'Are you sure you wa
$lang['Are you sure you want to restore the plugin "%s"?'] = 'Are you sure you want to restore the plugin "%s"?';
$lang['Are you sure you want to delete all sizes?'] = 'Are you sure you want to delete all sizes?';
$lang['Are you sure you want to lock the gallery?'] = 'Are you sure you want to lock the gallery?';
$lang['Are you sure you want to unlock the gallery?'] = 'Are you sure you want to unlock the gallery?';
$lang['Are you sure you want to delete the language "%s"?'] = 'Are you sure you want to delete the language "%s"?';
$lang['Are you sure you want to delete the theme "%s"?'] = 'Are you sure you want to delete the theme "%s"?';
$lang['Are you sure you want to update all extensions?'] = 'Are you sure you want to update all extensions?';

View File

@@ -1066,6 +1066,7 @@ $lang['Are you sure you want to delete the plugin "%s"?'] = 'Êtes-vous sûr de
$lang['Are you sure you want to restore the plugin "%s"?'] = 'Êtes-vous sûr de vouloir restaurer le plugin "%s"&nbsp?';
$lang['Are you sure you want to delete all sizes?'] = 'Êtes-vous sûr de vouloir supprimer toutes les tailles&nbsp?';
$lang['Are you sure you want to lock the gallery?'] = 'Êtes-vous sûr de vouloir verrouiller la galerie&nbsp?';
$lang['Are you sure you want to unlock the gallery?'] = 'Êtes-vous sûr de vouloir déverrouiller la galerie&nbsp?';
$lang['Are you sure you want to delete the language "%s"?'] = 'Êtes-vous sûr de vouloir supprimer la langue "%s"&nbsp?';
$lang['Are you sure you want to delete the theme "%s"?'] = 'Êtes-vous sûr de vouloir supprimer le thème "%s"&nbsp?';
$lang['Are you sure you want to update all extensions?'] = 'Êtes-vous sûr de vouloir mettre à jour toutes les extensions&nbsp?';