Better help

This commit is contained in:
Laurent Destailleur 2017-08-03 12:04:13 +02:00
parent 8cd2235b4b
commit 00a1893d93
3 changed files with 13 additions and 4 deletions

View File

@ -449,11 +449,18 @@ if ($mode == 'feature')
$text.='<br>';
$text.='<br><strong>'.$langs->trans("AddTriggers").':</strong> ';
$moreinfoontriggerfile='';
if (isset($objMod->module_parts) && isset($objMod->module_parts['triggers']) && $objMod->module_parts['triggers'])
{
$text.=$langs->trans("Yes");
$yesno='Yes';
}
else $text.=$langs->trans("No");
else
{
$yesno='No';
}
// TODO Try autodetection by scanning all triggers files for a file interface_99_modModule_xxx.class.php to set $moreinfoontriggerfile
$text.=$langs->trans($yesno).$moreinfoontriggerfile;
$text.='<br>';

View File

@ -45,6 +45,7 @@ class modNotification extends DolibarrModules
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "EMail notifications (push) on business Dolibarr events";
$this->descriptionlong = 'Module600Long';
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 1;

View File

@ -526,8 +526,9 @@ Module510Name=Payment of employee wages
Module510Desc=Record and follow payment of your employee wages
Module520Name=Loan
Module520Desc=Management of loans
Module600Name=Notifications
Module600Desc=Send EMail notifications (triggered by some business events) to users (setup defined on each user), third-party contacts (setup defined on each third party) or fixed emails
Module600Name=Notifications on events
Module600Desc=Send EMail notifications (triggered by some business events) to users (setup defined on each user), to third-party contacts (setup defined on each third party) or to fixed emails
Module600Long=Note that this module is dedicated to send real time emails when a dedicated business event occurs. If you are looking for a feature to send reminders by email of your agenda events, go into setup of module Agenda.
Module700Name=Donations
Module700Desc=Donation management
Module770Name=Expense reports