Commit 874b16a9 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Fixing translations for test mails

parent 82ed06c3
......@@ -34,6 +34,7 @@ use TYPO3\CMS\Core\Mail\MailMessage;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Object\ObjectManager;
use TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager;
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;
use TYPO3\CMS\Fluid\View\StandaloneView;
/**
......@@ -238,7 +239,9 @@ class MailTemplateService {
$previewMarker = [];
$markerArray = self::$registerArray[$this->extensionKey][$this->templateName]['marker'];
foreach ($markerArray as $marker) {
$previewMarker[$marker['marker']] = $marker['value'];
$previewMarker[$marker['marker']] = LocalizationUtility::translate(
$marker['backend_translation_key'], $marker['extension_key']
);
}
$this->setIgnoreMailQueue(TRUE);
$this->setMarkers($previewMarker);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment