Debug notifications on browser

This commit is contained in:
Laurent Destailleur 2020-09-12 04:12:39 +02:00
parent 2ffe84b5f5
commit 4b525f6826
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,7 @@ function user_prepare_head($object)
$head = array(); $head = array();
$head[$h][0] = DOL_URL_ROOT.'/user/card.php?id='.$object->id; $head[$h][0] = DOL_URL_ROOT.'/user/card.php?id='.$object->id;
$head[$h][1] = $langs->trans("UserCard"); $head[$h][1] = $langs->trans("User");
$head[$h][2] = 'user'; $head[$h][2] = 'user';
$h++; $h++;
@ -129,6 +129,7 @@ function user_prepare_head($object)
dol_print_error($db); dol_print_error($db);
} }
$langs->load("mails");
$head[$h][0] = DOL_URL_ROOT.'/user/notify/card.php?id='.$object->id; $head[$h][0] = DOL_URL_ROOT.'/user/notify/card.php?id='.$object->id;
$head[$h][1] = $langs->trans("NotificationsAuto"); $head[$h][1] = $langs->trans("NotificationsAuto");
if ($nbNote > 0) $head[$h][1] .= '<span class="badge marginleftonlyshort">'.$nbNote.'</span>'; if ($nbNote > 0) $head[$h][1] .= '<span class="badge marginleftonlyshort">'.$nbNote.'</span>';

View File

@ -125,7 +125,7 @@ TagMailtoEmail=Recipient Email (including html "mailto:" link)
NoEmailSentBadSenderOrRecipientEmail=No email sent. Bad sender or recipient email. Verify user profile. NoEmailSentBadSenderOrRecipientEmail=No email sent. Bad sender or recipient email. Verify user profile.
# Module Notifications # Module Notifications
Notifications=Notifications Notifications=Notifications
NotificationsAuto=Notifications (Auto) NotificationsAuto=Notifications Auto.
NoNotificationsWillBeSent=No automtic email notifications are planned for this event type and company NoNotificationsWillBeSent=No automtic email notifications are planned for this event type and company
ANotificationsWillBeSent=1 automatic notification will be sent by email ANotificationsWillBeSent=1 automatic notification will be sent by email
SomeNotificationsWillBeSent=%s automatic notifications will be sent by email SomeNotificationsWillBeSent=%s automatic notifications will be sent by email