Author Topic: Add task, milestone and workspace names in email notification  (Read 1772 times)

brg

  • Freshman
  • *
  • Posts: 22
    • View Profile
Add task, milestone and workspace names in email notification
« on: December 07, 2009, 04:29:44 am »
I can`t get these variables in translation. Changing 2 lines fix this problem:
Code: [Select]
--- application/models/notifier/Notifier.class.php
+++ application/models/notifier/Notifier.class.php
@@ -398,7 +398,7 @@
  return self::queueEmail(
  self::prepareEmailAddress($milestone->getAssignedTo()->getEmail(), $milestone->getAssignedTo()->getDisplayName()),
  self::prepareEmailAddress($milestone->getCreatedBy()->getEmail(), $milestone->getCreatedByDisplayName()),
- lang('milestone assigned to you'),
+ lang('milestone assigned to you', $milestone->getName(), $milestone->getProject()->getName()),
  tpl_fetch(get_template_path('milestone_assigned', 'notifier'))
  ); // send
 
@@ -434,7 +434,7 @@
  self::queueEmail(
  array(self::prepareEmailAddress($task->getAssignedTo()->getEmail(), $task->getAssignedTo()->getDisplayName())),
  self::prepareEmailAddress($task->getUpdatedBy()->getEmail(), $task->getUpdatedByDisplayName()),
- lang('task assigned to you'),
+ lang('task assigned to you', $task->getTitle(), $task->getProject()->getName()),
  tpl_fetch(get_template_path('task_assigned', 'notifier'))
  ); // send
 

I am attach path to 1.6 RC