diff --git a/htdocs/langs/en_US/projects.lang b/htdocs/langs/en_US/projects.lang index bb42bff3c87..e145647baa4 100644 --- a/htdocs/langs/en_US/projects.lang +++ b/htdocs/langs/en_US/projects.lang @@ -115,7 +115,7 @@ ChildOfTask=Child of task TaskHasChild=Task has child NotOwnerOfProject=Not owner of this private project AffectedTo=Allocated to -CantRemoveProject=This project can't be removed as it is referenced by some other objects (invoice, orders or other). See referers tab. +CantRemoveProject=This project can't be removed as it is referenced by some other objects (invoice, orders or other). See tab '%s'. ValidateProject=Validate projet ConfirmValidateProject=Are you sure you want to validate this project? CloseAProject=Close project diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php index 6af779a2295..c9007dc6d8a 100644 --- a/htdocs/projet/card.php +++ b/htdocs/projet/card.php @@ -106,7 +106,7 @@ if (empty($reshook)) else { dol_syslog($object->error, LOG_DEBUG); - setEventMessages($langs->trans("CantRemoveProject"), null, 'errors'); + setEventMessages($langs->trans("CantRemoveProject", $langs->transnoentitiesnoconv("ProjectOverview")), null, 'errors'); } } if ($backtopage) diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index 417a825a77d..449050d94c5 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -764,7 +764,7 @@ class Project extends CommonObject $resql = $this->db->query($sql); if (!$resql) { - $this->errors[] = $langs->trans("CantRemoveProject"); + $this->errors[] = $langs->trans("CantRemoveProject", $langs->transnoentitiesnoconv("ProjectOverview")); $error++; } }