From bb3966b189425623966fcc9c1bf0e5fa1e9a73b4 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 12 Sep 2021 23:01:19 +0200 Subject: [PATCH] add more help on phpheader module, and fix typo --- inc/lib.improve.action.dcstore.php | 2 +- inc/lib.improve.action.phpheader.php | 14 ++++++++- locales/fr/main.lang.php | 43 +++++++++++++------------ locales/fr/main.po | 47 +++++++++++++--------------- 4 files changed, 57 insertions(+), 49 deletions(-) diff --git a/inc/lib.improve.action.dcstore.php b/inc/lib.improve.action.dcstore.php index 994dd5d..c797052 100644 --- a/inc/lib.improve.action.dcstore.php +++ b/inc/lib.improve.action.dcstore.php @@ -46,7 +46,7 @@ class ImproveActionDcstore extends ImproveAction form::field('dcstore_pattern', 160, 255, $this->getPreference('pattern')) . '' . '

' . '

' . - sprintf(__('You can use widcards %s'), '%author%, %type%, %id%, %version%.') . + sprintf(__('You can use wildcards %s'), '%author%, %type%, %id%, %version%.') . '
' . __('For exemple on github https://github.com/MyGitName/%id%/releases/download/v%version%/%type%-%id%.zip') . '
' . diff --git a/inc/lib.improve.action.phpheader.php b/inc/lib.improve.action.phpheader.php index 78f6894..3d71254 100644 --- a/inc/lib.improve.action.phpheader.php +++ b/inc/lib.improve.action.phpheader.php @@ -13,6 +13,17 @@ class ImproveActionPhpheader extends ImproveAction { + private static $exemple = " +@brief %module_id%, a %module_type% for Dotclear 2 + +@package Dotclear +@subpackage \u%module_type% + +@author %module_author% + +@copyright %user_cn% +@copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html"; + private $bloc_wildcards = [ '%year%', '%module_id%', @@ -90,7 +101,8 @@ class ImproveActionPhpheader extends ImproveAction sprintf( __('You can use wildcards %s') , '%year%, %module_id%, %module_name%, %module_author%, %module_type%, %user_cn%, %user_name%, %user_email%, %user_url%' - ) . '
' . __('Do not put structural elements to the begining of lines.') . '

'; + ) . '
' . __('Do not put structural elements to the begining of lines.') . '

' . + '

' . __('Exemple') .'

' . self::$exemple . '
'; } public function openModule(string $module_type, array $module_info): ?bool diff --git a/locales/fr/main.lang.php b/locales/fr/main.lang.php index 5a18019..c894a7e 100644 --- a/locales/fr/main.lang.php +++ b/locales/fr/main.lang.php @@ -1,7 +1,7 @@