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

Added ability to translate the labels of the field keys in the generated content template. #161

Closed
wants to merge 1 commit into from

Commits on Apr 19, 2019

  1. Update Mailer.php

    Added ability to translate the labels of the field keys in the generated content template.
    
    Keys are prefixed with `contact_form.`, so you can define something like `contact_form.name` for the label in the `site.php` translations file.
    Also a check, if the translation doesn't exist, it returns the generated-key, then it falls back to the original key (as it was before).
    Bert Oost authored Apr 19, 2019
    Configuration menu
    Copy the full SHA
    492e5ec View commit details
    Browse the repository at this point in the history