This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing issues with their multilingual website where the WordPress admin interface changes to the language of the first front-end visitor, affecting the language of emails sent, which do not match the user's preferred language. All Theme-Options strings are registered under the domain admin_texts_jws_option, and translating a string causes the admin UI to switch languages and remain in that language.
Solution:
To address the issue of the admin interface changing languages and affecting email language settings, follow these steps:
1. Ensure you have a full backup of your website.
2. Navigate to Plugins > Plugin File Editor and select the "LoveDate Core" plugin.
3. Open the file "redux-core/inc/classes/class-redux-options-constructor.php".
4. Locate the following code:
public function __construct( $parent ) {<br /> parent::__construct( $parent );<br /> add_action( 'admin_init', array( this, 'register' ) );<br />}5. Replace it with:
public function __construct( $parent ) {<br /> parent::__construct( $parent );<br /> add_action( 'current_screen', array( this, 'register' ) );<br />}6. Save the changes.
This modification should prevent the admin interface from switching languages based on the front-end visitor's language, thereby ensuring emails are sent in the correct language. Note that this solution involves custom code modification, which is not officially covered by WPML support.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 16 replies, has 0 voices.
Last updated by 4 months, 1 week ago.
Assisted by: Lucas Vidal de Andrade.