proper usage of translation parameters #1450
Labels
DX & Refactoring
Requests for DX improvements and refactorings
Stale
This issue have not been touched for some time and if it doesn't change, it will be closed soon.
What is happening
Sometimes (AFAIK in admin controllers very often), we define translation messages with twig parameters (using
{{ variableName }}
) which makes the messages almost unusable outside the Twig. E.g. if I wanted to access the proper translation in PHP, I would need to use TwigEngine - and this is just not right.I had to rewrite it e.g. in
PaymentController::editAction()
when I needed to use the translation inPaymentImageUploadCest::testSuccessfulImageUpload
in #1425Expected result
All translation messages use variables properly (
%variableName%
)The text was updated successfully, but these errors were encountered: