Skip to content

Commit

Permalink
Merge pull request matecat#11 from vincy/master
Browse files Browse the repository at this point in the history
eq words count in email
  • Loading branch information
Ostico authored May 30, 2018
2 parents 4c20aa8 + 9c42ecd commit 07ea5ce
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class ConfirmedQuotationEmail extends AbstractEmail {
protected $internal_project_id;
protected $internal_job_id;
protected $external_project_id;
protected $project_words_count;


public function __construct( $templatePath ) {
Expand All @@ -43,11 +44,16 @@ public function setExternalProjectId( $id ) {
$this->external_project_id = $id;
}

public function setProjectWordsCount( $count ) {
$this->project_words_count = $count;
}

protected function _getTemplateVariables() {
return [
'internal_project_id' => $this->internal_project_id,
'internal_job_id' => $this->internal_job_id,
'external_project_id' => $this->external_project_id
'external_project_id' => $this->external_project_id,
'project_words_count' => $this->project_words_count,
];
}

Expand Down
6 changes: 6 additions & 0 deletions lib/Features/Microsoft/Utils/Email/ErrorQuotationEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ErrorQuotationEmail extends AbstractEmail {
protected $internal_project_id;
protected $internal_job_id;
protected $external_project_id;
protected $project_words_count;


public function __construct( $templatePath ) {
Expand Down Expand Up @@ -49,11 +50,16 @@ public function setExternalProjectId( $id ) {
$this->external_project_id = $id;
}

public function setProjectWordsCount( $count ) {
$this->project_words_count = $count;
}

protected function _getTemplateVariables() {
return [
'internal_project_id' => $this->internal_project_id,
'internal_job_id' => $this->internal_job_id,
'external_project_id' => $this->external_project_id,
'project_words_count' => $this->project_words_count,
'message' => $this->message
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ <h1>Project created successfully on Translated!</h1>

<p>Matecat Project ID: <?= $internal_project_id ?></p>
<p>Matecat Job ID: <?= $internal_job_id ?></p>
<p>Words Count: <?= $project_words_count ?></p>
<br/>
<p>Translated Project ID: <b><?= $external_project_id ?></b></p>
<br/>
1 change: 1 addition & 0 deletions lib/Features/Microsoft/View/Emails/error_quotation.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ <h1>Error in Project creation on Translated!</h1>

<p>Matecat Project ID: <?= $internal_project_id ?></p>
<p>Matecat Job ID: <?= $internal_job_id ?></p>
<p>Words Count: <?= $project_words_count ?></p>
<br/>
<?php if(!empty($external_project_id)){ ?>
<p><b>Error in HTS Confirm</b></p>
Expand Down

0 comments on commit 07ea5ce

Please sign in to comment.