Page 1 of 1

Translating Strings with line-breaks in Typoscript

Posted: 04 Apr 2017, 08:17
by pixls
Hi

Im using the PrePay payment provider. In the mail the user receives there is a string about the order number which should be included in the transaction. Its this one here:

Code: Select all

$msg = $this->translate( 'client', 'Thank you for your order %1$s from %2$s.

The order is pending until we receive the final payment. If you\'ve chosen to pay in advance, please transfer the money to our bank account with the order ID %1$s as reference.' );
If you try to translate that normally via the TypoScipt field in the scheduler task you get a error about incorrect TypoScript code. But if you remove the new line it does not recognize it as a translatable string. So what can I do here?

Thanks

Re: Translating Strings with line-breaks in Typoscript

Posted: 04 Apr 2017, 12:49
by aimeos
Did you try to replace the new line characters by the "\n" escape sequence?