This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing issues with translating strings in THE EVENTS CALENDAR on their WordPress site. The string translation only functions correctly when the String Scan feature is enabled.
Solution:
We recommend the following steps to resolve the issue:
- Access your site's file system via FTP and navigate to the /wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Views/Traits/ folder.
- Open the List_Behavior.php file and locate line 39.
- Replace the existing code:
if ( ! isset( $this->context ) ) {
with:
load_plugin_textdomain('the-events-calendar', false, plugin_basename(dirname(__FILE__)) . '/languages/');<br />if ( ! isset( $this->context ) ) {
- Save the changes and clear the caches on your site and browser.
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 4 replies, has 2 voices.
Last updated by 7 months, 3 weeks ago.
Assisted by: Prosenjit Barman.