[BUGFIX] Dialog messages cannot be translated

Change-Id: I254ba9c176d549377c1e5874b2e7f7491710f098
Fixes: #54771
Reviewed-on: https://review.typo3.org/26662
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers