Browse Source

Debug notifications on browser

Laurent Destailleur 4 years ago
parent
commit
4b525f6826
2 changed files with 3 additions and 2 deletions
  1. 2 1
      htdocs/core/lib/usergroups.lib.php
  2. 1 1
      htdocs/langs/en_US/mails.lang

+ 2 - 1
htdocs/core/lib/usergroups.lib.php

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

+ 1 - 1
htdocs/langs/en_US/mails.lang

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