Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translated mail from Project Manager to owner about update/create projec... #207

Merged
merged 1 commit into from
Apr 2, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions classes/w2p/Output/EmailManager.class.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -284,16 +284,18 @@ public function getProjectNotifyOwner(CProject $project, $isNotNew)


$status = (intval($isNotNew)) ? 'Updated' : 'Created'; $status = (intval($isNotNew)) ? 'Updated' : 'Created';


$body = $this->_AppUI->_('Project') . ": $project->project_name Has Been $status Via Project Manager. You can view the Project by clicking: "; $body = $this->_AppUI->_('Project') . ': ' . $project->project_name . ' ' . $this->_AppUI->_('has been') . ' ' . $this->_AppUI->_($status);
$body .= "\n" . $this->_AppUI->_('You can view the Project by clicking'). ':';
$body .= "\n" . $this->_AppUI->_('URL') . ': ' . w2PgetConfig('base_url') . '/index.php?m=projects&a=view&project_id=' . $project->project_id; $body .= "\n" . $this->_AppUI->_('URL') . ': ' . w2PgetConfig('base_url') . '/index.php?m=projects&a=view&project_id=' . $project->project_id;
$body .= "\n\n(You are receiving this message because you are the owner of this Project)"; $body .= "\n\n(" . $this->_AppUI->_('You are receiving this message because you are the owner of this Project') . ")";
$body .= "\n\n" . $this->_AppUI->_('Description') . ':' . "\n $project->project_description \n\n"; $body .= "\n\n" . $this->_AppUI->_('Description') . ':' . "\n $project->project_description \n\n";


$body .= (intval($isNotNew)) ? $this->_AppUI->_('Updater') : $this->_AppUI->_('Creator'); $body .= (intval($isNotNew)) ? $this->_AppUI->_('Updater') : $this->_AppUI->_('Creator');
$body .= ': ' . $this->_AppUI->user_display_name; $body .= ': ' . $this->_AppUI->user_display_name;


if ($project->_message == 'deleted') { if ($project->_message == 'deleted') {
$body .= "\n\nProject " . $project->project_name . ' was ' . $project->_message . ' by ' . $this->_AppUI->user_display_name; $body .= "\n\n" . $this->_AppUI->_('Project') . $project->project_name . $this->_AppUI->_('was deleted') . '.';
$body .= "\n" . $this->_AppUI->_('deleted by') . ': ' . $this->_AppUI->user_display_name;
} }


return $body; return $body;
Expand Down
2 changes: 1 addition & 1 deletion modules/projects/projects.class.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ public function notifyOwner($isNotNew)


$mail = new w2p_Utilities_Mail; $mail = new w2p_Utilities_Mail;


$subject = (intval($isNotNew)) ? "Project Updated: $this->project_name " : "Project Submitted: $this->project_name "; $subject = (intval($isNotNew)) ? $this->_AppUI->_('Project updated') . ': ' . $this->project_name : $this->_AppUI->_('Project submitted') . ': ' . $this->project_name;


$user = new CUser(); $user = new CUser();
$user->overrideDatabase($this->_query); $user->overrideDatabase($this->_query);
Expand Down