with my custom module I try to prepare an email body containing hard coded plain text. The text should be translatable and formatted with line breaks for a nicer output. The text is prepared in my controller as following (for example):
$mail_body_plain['textpart'] = t('And much more...') . '\r\n';
php code sniffer gives me the warning:
Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders
In my opinion every unnecessary format should be avoided to get parsed by t() function, to keep the Drupal translation database cleaner. But it seems, that my approach violates Drupal's coding standards.
What is here the right solution?
Thanks in advance