release 2022.12.23

This commit is contained in:
Jean-Christian Paul Denis 2022-12-23 18:23:30 +01:00
parent 7954de4037
commit c602942e41
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
4 changed files with 31 additions and 44 deletions

View File

@ -1,3 +1,7 @@
2022.12.23
- fix permissions
- use anonymous function
2022.11.28 2022.11.28
* Use SVG icon * Use SVG icon
* Update to Dotclear 2.24 * Update to Dotclear 2.24

View File

@ -21,14 +21,14 @@ if (!dcCore::app()->auth->check(dcCore::app()->auth->makePermissions([dcAuth::PE
dcCore::app()->addBehavior('adminPostsActions', function (dcPostsActions $pa) { dcCore::app()->addBehavior('adminPostsActions', function (dcPostsActions $pa) {
$pa->addAction( $pa->addAction(
[ [
__('Comments') => [ __('Comments') => [
__('Mark as opened') => 'commentsopen', __('Mark as opened') => 'commentsopen',
__('Mark as closed') => 'commentsclose', __('Mark as closed') => 'commentsclose',
__('Delete all comments') => 'commentsdelete', __('Delete all comments') => 'commentsdelete',
], ],
__('Trackbacks') => [ __('Trackbacks') => [
__('Mark as opened') => 'trackbacksopen', __('Mark as opened') => 'trackbacksopen',
__('Mark as closed') => 'trackbacksclose', __('Mark as closed') => 'trackbacksclose',
__('Delete all trackbacks') => 'trackbacksdelete', __('Delete all trackbacks') => 'trackbacksdelete',
], ],
], ],

View File

@ -25,8 +25,8 @@ $this->registerModule(
dcAuth::PERMISSION_ADMIN, dcAuth::PERMISSION_ADMIN,
]), ]),
'type' => 'plugin', 'type' => 'plugin',
'support' => 'https://github.com/JcDenis/postslistOptions', 'support' => 'https://github.com/JcDenis/' . basename(__DIR__),
'details' => 'https://plugins.dotaddict.org/dc2/details/postslistOptions', 'details' => 'https://plugins.dotaddict.org/dc2/details/' . basename(__DIR__),
'repository' => 'https://raw.githubusercontent.com/JcDenis/postslistOptions/master/dcstore.xml', 'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml',
] ]
); );

View File

@ -1,42 +1,25 @@
<?php <?php
/** /**
* @brief postslistOptions, a plugin for Dotclear 2
*
* @package Dotclear * @package Dotclear
* @subpackage Plugin
* *
* @author Jean-Christian Denis and Contributors * @copyright Olivier Meunier & Association Dotclear
* * @copyright GPL-2.0-only
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/ */
// Language: Français #
// Module: postslistOptions - 0.1 # DOT NOT MODIFY THIS FILE !
// Date: 2010-09-09 23:05:58 #
// Translated with dcTranslater - 1.5
#_admin.php:27 l10n::$locales['Mark as opened'] = 'Ouvrir';
#_admin.php:30 l10n::$locales['Mark as closed'] = 'Fermer';
$GLOBALS['__l10n']['Mark as opened'] = 'Ouvrir'; l10n::$locales['Delete all comments'] = 'Supprimer tous les commentaires';
l10n::$locales['Delete all trackbacks'] = 'Supprimer tous les rétroliens';
#_admin.php:28 l10n::$locales['Comments successfully opened.'] = 'Commentaires ouverts avec succès.';
#_admin.php:31 l10n::$locales['Comments successfully closed.'] = 'Commentaires fermés avec succès.';
$GLOBALS['__l10n']['Mark as closed'] = 'Fermer'; l10n::$locales['Delete posts comments'] = 'Supprimer les commentaires des billets';
l10n::$locales['Are you sure you want to delete all comments?'] = 'Êtes-vous sûr de vouloir supprimer tous les commentaires ?';
#_admin.php:29 l10n::$locales['Comments successfully deleted.'] = 'Commentaires supprimés avec succès.';
$GLOBALS['__l10n']['Delete all comments'] = 'Supprimer tous les commentaires'; l10n::$locales['Trackbacks successfully opened.'] = 'Trackbacks ouverts avec succès.';
l10n::$locales['Trackbacks successfully closed.'] = 'Trackbacks fermés avec succès.';
#_admin.php:32 l10n::$locales['Delete posts trackbacks'] = 'Supprimer les trackbacks des billets';
$GLOBALS['__l10n']['Delete all trackbacks'] = 'Supprimer tous les rétroliens'; l10n::$locales['Are you sure you want to delete all trackbacks?'] = 'Êtes-vous sûr de vouloir supprimer tous les rétroliens ?';
l10n::$locales['Trackbacks successfully deleted.'] = 'Trackbacks supprimés avec succès.';
#_admin.php:38
$GLOBALS['__l10n']['Are you sure you want to delete all comments?'] = 'Êtes-vous sûr de vouloir supprimer tous les commentaires ?';
#_admin.php:39
$GLOBALS['__l10n']['Are you sure you want to delete all trackbacks?'] = 'Êtes-vous sûr de vouloir supprimer tous les rétroliens ?';
#_admin.php:46
$GLOBALS['__l10n']['Confirm action'] = 'Confirmation';
#_admin.php:112
$GLOBALS['__l10n']['You are not allowed to change this entry option'] = 'Vous n\'êtes pas autorisé à changer cette option';