Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

gRey Keith Casey
gRey

...t

Keith Casey caseysoftware merged commit c07f55b into from
gRey greywolfs deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
8 classes/w2p/Output/EmailManager.class.php
View
@@ -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;
2  modules/projects/projects.class.php
View
@@ -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);
Something went wrong with that request. Please try again.