Background of the issue:
I am trying to set up notification translation for Gravity Forms on a site under development. I've translated all the notifications and added a field to store the language in which the form was sent. I am using the following code to switch the language: add_filter('gform_pre_send_email', 'set_notification_language', 10, 4); function set_notification_language($email, $message_format, $notification, $entry) { if (isset($entry['9999'])) { $submission_lang = $entry['9999']; do_action('wpml_switch_language', $submission_lang); $email['subject'] .= " (" . strtoupper($submission_lang) . ")"; } return $email; }
Symptoms:
Notifications are still being sent in English despite attempting to switch to the form's submission language.
Questions:
How can I ensure that notifications are sent in the correct language for Gravity Forms?
Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned.
Sorry for the late response because of the holidays and the high support load. It is not normal here. Thank you for your kind understanding.
This will be related to the following ticket. So the workaround suggest there will help in your case also.
The topic ‘[Closed] How to properly set up notification translation for gravity forms?’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.