Skip to content

Commit

Permalink
Fix some fields (plain text and other simple fields) not having their…
Browse files Browse the repository at this point in the history
… labels correctly translated for email notifications
  • Loading branch information
engram-design committed Feb 19, 2021
1 parent 5a1c513 commit c4d5f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/FormFieldTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ public function getEmailHtml(Submission $submission, Notification $notification,
$hideName = $options['hideName'] ?? false;

if (!$hideName) {
$content = Html::tag('strong', $this->name) . '<br>' . $content;
$content = Html::tag('strong', Craft::t('site', $this->name)) . '<br>' . $content;
}

$html = Html::tag('p', $content);
Expand Down

0 comments on commit c4d5f57

Please sign in to comment.