Skip to content

Commit 7858771

Browse files
ctaverneNyholm
authored andcommitted
Correct translation fallback edition (#158)
I solved this error by using message key from query parameter instead of current locale wich are different in case of the fallback translation, contrary to normal edition.
1 parent 0136bbb commit 7858771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Controller/SymfonyProfilerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function editAction(Request $request, $token)
5050

5151
return $this->render('@Translation/SymfonyProfiler/edit.html.twig', [
5252
'message' => $translation,
53-
'key' => $message->getLocale().$message->getDomain().$message->getKey(),
53+
'key' => $request->query->get('message_id'),
5454
]);
5555
}
5656

0 commit comments

Comments
 (0)