Translating Strings with line-breaks in Typoscript

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
pixls
Posts: 26
Joined: 21 Nov 2016, 10:46

Translating Strings with line-breaks in Typoscript

Post by pixls » 04 Apr 2017, 08:17

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

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Translating Strings with line-breaks in Typoscript

Post by aimeos » 04 Apr 2017, 12:49

Did you try to replace the new line characters by the "\n" escape sequence?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply