diff --git a/CHANGELOG.md b/CHANGELOG.md index 925bfd4..13c05e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +1.7 - 2023.04.25 +- require dotclear 2.26 +- use namespace + 1.6 - 2022.12.15 - update to dotclear 2.24 diff --git a/README.md b/README.md index a2d6e33..cea269b 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Release](https://img.shields.io/github/v/release/JcDenis/lunarPhase)](https://github.com/JcDenis/lunarPhase/releases) [![Date](https://img.shields.io/github/release-date/JcDenis/lunarPhase)](https://github.com/JcDenis/lunarPhase/releases) [![Issues](https://img.shields.io/github/issues/JcDenis/lunarPhase)](https://github.com/JcDenis/lunarPhase/issues) -[![Dotclear](https://img.shields.io/badge/dotclear-v2.24-blue.svg)](https://fr.dotclear.org/download) +[![Dotclear](https://img.shields.io/badge/dotclear-v2.26-blue.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/lunarPhase) [![License](https://img.shields.io/github/license/JcDenis/lunarPhase)](https://github.com/JcDenis/lunarPhase/blob/master/LICENSE) diff --git a/_define.php b/_define.php index a9feab3..3e1d826 100644 --- a/_define.php +++ b/_define.php @@ -7,23 +7,23 @@ * * @author Tomtom, Pierre Van Glabeke and Contributors * - * @copyright Jean-Crhistian Denis + * @copyright Jean-Christian Denis * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html */ -if (!defined('DC_RC_PATH')) { +if (!defined('DC_RC_PATH') || is_null(dcCore::app()->auth)) { return null; } $this->registerModule( - 'lunarPhase', + 'Moon phases', 'Display the moon phases on a widget', 'Tomtom, Pierre Van Glabeke and Contributors', - '1.6', + '1.7', [ - 'requires' => [['core', '2.24']], + 'requires' => [['core', '2.26']], 'permissions' => dcCore::app()->auth->makePermissions([ - dcAuth::PERMISSION_USAGE, - dcAuth::PERMISSION_CONTENT_ADMIN, + dcCore::app()->auth::PERMISSION_USAGE, + dcCore::app()->auth::PERMISSION_CONTENT_ADMIN, ]), 'type' => 'plugin', 'support' => 'http://forum.dotclear.org/viewtopic.php?pid=332971#p332971', diff --git a/dcstore.xml b/dcstore.xml index ddf78fb..f1477f3 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -1,12 +1,12 @@ - lunarPhase - 1.6 + Moon phases + 1.7 Tomtom, Pierre Van Glabeke and Contributors Display the moon phases on a widget - https://github.com/JcDenis/lunarPhase/releases/download/v1.6/plugin-lunarPhase.zip - 2.24 + https://github.com/JcDenis/lunarPhase/releases/download/v1.7/plugin-lunarPhase.zip + 2.26 https://plugins.dotaddict.org/dc2/details/lunarPhase http://forum.dotclear.org/viewtopic.php?pid=332971#p332971 diff --git a/locales/fr/main.lang.php b/locales/fr/main.lang.php new file mode 100644 index 0000000..ce46260 --- /dev/null +++ b/locales/fr/main.lang.php @@ -0,0 +1,41 @@ +