N°918 - Translate placeholders in notifications (#506)

- Localization of date & time formats
- Use of DataLocalizer (if present)
- All placeholders can be used in the uploaded HTML template as well as in the notification "message"
This commit is contained in:
Denis
2023-06-13 09:51:32 +02:00
committed by GitHub
parent 58a20e9a11
commit fed149dc66
6 changed files with 530 additions and 118 deletions

View File

@@ -569,9 +569,22 @@ While editing, click on the magnifier to get pertinent examples',
'Class:ActionEmail/Attribute:importance/Value:normal+' => '',
'Class:ActionEmail/Attribute:importance/Value:high' => 'High',
'Class:ActionEmail/Attribute:importance/Value:high+' => '',
'Class:ActionEmail/Attribute:language' => 'Language',
'Class:ActionEmail/Attribute:language+' => 'Language to use for placeholders ($xxx$) inside the message (state, importance, priority, etc)',
'Class:ActionEmail/Attribute:html_template' => 'HTML template',
'Class:ActionEmail/Attribute:html_template+' => 'Optional HTML template wrapping around the content of the \'Body\' attribute below, useful for tailored email layouts (in the template, content of the \'Body\' attribute will replace the $content$ placeholder)',
'Class:ActionEmail/Attribute:ignore_notify' => 'Ignore the Notify flag',
'Class:ActionEmail/Attribute:ignore_notify+' => 'If set to \'Yes\' the \'Notify\' flag on Contacts has no effect.',
'Class:ActionEmail/Attribute:ignore_notify/Value:no' => 'No',
'Class:ActionEmail/Attribute:ignore_notify/value:yes' => 'Yes',
'ActionEmail:main' => 'Message',
'ActionEmail:trigger' => 'Triggers',
'ActionEmail:recipients' => 'Contacts',
'ActionEmail:preview_tab' => 'Preview',
'ActionEmail:preview_tab+' => 'Preview of the eMail template',
'ActionEmail:preview_warning' => 'The actual eMail may look different in the eMail client than this preview in your browser.',
'ActionEmail:preview_more_info' => 'For more information about the CSS features supported by the different eMail clients, refer to %1$s',
'ActionEmail:content_placeholder_missing' => 'The placeholder "%1$s" was not found in the HTML template. The content of the field "%2$s" will not be included in the generated emails.',
));
//