diff --git a/admin/themes/default/template/maintenance_actions.tpl b/admin/themes/default/template/maintenance_actions.tpl index 51c03d2d1..badbacdbf 100644 --- a/admin/themes/default/template/maintenance_actions.tpl +++ b/admin/themes/default/template/maintenance_actions.tpl @@ -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({ diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php index f1d9cc2a4..8228509f7 100644 --- a/language/en_UK/admin.lang.php +++ b/language/en_UK/admin.lang.php @@ -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?'; diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php index 39f865231..f2419616b 100644 --- a/language/fr_FR/admin.lang.php +++ b/language/fr_FR/admin.lang.php @@ -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" ?'; $lang['Are you sure you want to delete all sizes?'] = 'Êtes-vous sûr de vouloir supprimer toutes les tailles ?'; $lang['Are you sure you want to lock the gallery?'] = 'Êtes-vous sûr de vouloir verrouiller la galerie ?'; +$lang['Are you sure you want to unlock the gallery?'] = 'Êtes-vous sûr de vouloir déverrouiller la galerie ?'; $lang['Are you sure you want to delete the language "%s"?'] = 'Êtes-vous sûr de vouloir supprimer la langue "%s" ?'; $lang['Are you sure you want to delete the theme "%s"?'] = 'Êtes-vous sûr de vouloir supprimer le thème "%s" ?'; $lang['Are you sure you want to update all extensions?'] = 'Êtes-vous sûr de vouloir mettre à jour toutes les extensions ?';