Commit 203f26d8 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] No Translations needed for default marker values

parent d8c5fc35
......@@ -294,9 +294,13 @@ class MailTemplateService {
$previewMarker = [];
$markerArray = self::$registerArray[$this->extensionKey][$this->templateName]['marker'];
foreach ($markerArray as $marker) {
$previewMarker[$marker['marker']] = LocalizationUtility::translate(
$marker['backend_translation_key'], $marker['extension_key']
);
if ($marker['backend_translation_key']) {
$previewMarker[$marker['marker']] = LocalizationUtility::translate(
$marker['backend_translation_key'], $marker['extension_key']
);
} else {
$previewMarker[$marker['marker']] = $marker['value'];
}
}
$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