diff --git a/core/modules/saturne/modules_saturne.php b/core/modules/saturne/modules_saturne.php
index d2620c2a..7808c23a 100644
--- a/core/modules/saturne/modules_saturne.php
+++ b/core/modules/saturne/modules_saturne.php
@@ -226,9 +226,10 @@ abstract class CustomModeleNumRefSaturne extends ModeleNumRefSaturne
/**
* Return description of module
*
- * @return string Texte descripif
+ * @param String $mode Either "standard" for normal prefix or "custom"
+ * @return String Descriptive text
*/
- public function info(): string
+ public function info($mode = 'standard'): string
{
global $conf, $langs, $db, $moduleNameLowerCase;
@@ -238,8 +239,21 @@ public function info(): string
$form = new Form($db);
$className = get_class($this);
- $modName = str_replace('mod_', '', $className);
- $confName = strtoupper($moduleNameLowerCase . '_' . $modName . '_ADDON');
+ if ($mode == 'custom') {
+ $modName = explode('_', $className);
+ $type = dol_strtoupper($modName[1]);
+ $confName = strtoupper(dol_strtoupper($moduleNameLowerCase) . '_' . $type . '_CUSTOM_ADDON');
+
+ $tooltip = $langs->trans("GenericMaskCodes", $langs->transnoentities(ucfirst($modName[1])), $langs->transnoentities(ucfirst($modName[1])));
+ $tooltip .= $langs->trans("GenericMaskCodes2");
+ $tooltip .= $langs->trans("GenericMaskCodes3");
+ $tooltip .= $langs->trans("GenericMaskCodes5");
+ } else {
+ $modName = str_replace('mod_', '', $className);
+ $confName = strtoupper($moduleNameLowerCase . '_' . $modName . '_ADDON');
+
+ $tooltip = $langs->trans("SaturneGenericMaskCodes");
+ }
$texte = $langs->trans('GenericNumRefModelDesc')."
\n";
$texte .= '