From a0904ab8cbf0376b5a3995f4f4ffde09aa83607d Mon Sep 17 00:00:00 2001 From: Mikkel Ricky Date: Fri, 29 Sep 2023 13:06:56 +0200 Subject: [PATCH] Made link text translatable --- .../src/Controller/MaestroNotificationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/os2forms_forloeb/src/Controller/MaestroNotificationController.php b/modules/os2forms_forloeb/src/Controller/MaestroNotificationController.php index 0da7b32c..116f18ed 100644 --- a/modules/os2forms_forloeb/src/Controller/MaestroNotificationController.php +++ b/modules/os2forms_forloeb/src/Controller/MaestroNotificationController.php @@ -126,7 +126,7 @@ public function previewRender(Request $request, WebformInterface $webform, strin public function message(Request $request): Response { $content[] = '

' . $request->get('message') . '

'; if ($referer = $request->headers->get('referer')) { - $content[] = sprintf('Go back', $referer); + $content[] = $this->t('Back to preview', [':url' => $referer]); } return new Response(implode(PHP_EOL, $content));