Permalink
Browse files

translated mail from Project Manager to owner about update/create pro…

…ject
  • Loading branch information...
1 parent 50540ce commit 80c186ec23cc60dc17d24050fc5477e29130cca4 @greywolfs greywolfs committed Feb 28, 2013
Showing with 6 additions and 4 deletions.
  1. +5 −3 classes/w2p/Output/EmailManager.class.php
  2. +1 −1 modules/projects/projects.class.php
@@ -284,16 +284,18 @@ public function getProjectNotifyOwner(CProject $project, $isNotNew)
$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\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 .= (intval($isNotNew)) ? $this->_AppUI->_('Updater') : $this->_AppUI->_('Creator');
$body .= ': ' . $this->_AppUI->user_display_name;
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;
@@ -551,7 +551,7 @@ public function notifyOwner($isNotNew)
$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->overrideDatabase($this->_query);

0 comments on commit 80c186e

Please sign in to comment.