From 1de45dc8013ead59353e12f288d8add73b3db94d Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Fri, 9 Feb 2024 06:38:21 +0100 Subject: [PATCH] Skill: Re-introduce user-specific language in message sent to announce skill acquisition (removed erroneously through merge) - refs BT#21083 --- public/main/skills/assign.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/main/skills/assign.php b/public/main/skills/assign.php index 4dfc336c95..169d0ef8ec 100644 --- a/public/main/skills/assign.php +++ b/public/main/skills/assign.php @@ -325,9 +325,9 @@ if ($form->validate()) { foreach ($bossList as $boss) { $bossInfo = api_get_user_info($boss['boss_id']); - $subject = get_lang('A student has obtained the number of sub-skills needed to validate the mother skill.'); + $subject = get_lang('A student has obtained the number of sub-skills needed to validate the mother skill.', $bossInfo['locale']); $message = sprintf( - get_lang('Learner %s has enough sub-skill to get skill %s. To assign this skill it is possible to go here : %s'), + get_lang('Learner %s has enough sub-skill to get skill %s. To assign this skill it is possible to go here : %s', $bossInfo['locale']), $userFullName, $parentData['title'], $link