Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E-Mails übersetzen #92

Open
tyrant88 opened this issue Aug 9, 2023 · 0 comments
Open

E-Mails übersetzen #92

tyrant88 opened this issue Aug 9, 2023 · 0 comments

Comments

@tyrant88
Copy link
Contributor

tyrant88 commented Aug 9, 2023

Hast du mal überlegt per Option die Übersetzung der gesendeten E-Mails (Frontend) zu unterstützen?

Code wäre so ähnlich wie hier:

if (rex::isFrontend()) {
    rex_extension::register('YFORM_EMAIL_BEFORE_SEND', function ($ep) {

        $subject = $ep->getSubject();
        $template = $subject['template'];
        $template['subject'] = sprogdown($template['subject']);
        $template['body'] = sprogdown($template['body']);
        $template['body_html'] = sprogdown($template['body_html']);
        $subject['template'] = $template;
        $ep->setSubject($subject);

    });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant