Open

Topic Tags: Compatibility

Symptoms

When translating texts stored by The Events Calendar plugin in the wp_options table (Admin Texts), the original language versions are displayed on the front-end.

The Events Calendar Options

Workaround

The translation can be fixed by adding the following code to your theme’s functions.php file:

add_filter('tribe_get_single_option', 'tribe_options_multilingual', 20, 3);

function tribe_options_multilingual( $option, $default, $option_name ) {
	if (is_string($option)) {
		return apply_filters( 'wpml_translate_single_string', $option, 'admin_texts_tribe_events_calendar_options', '[tribe_events_calendar_options]' . $option_name);
	} else {
		return $option;
	}
}

2 Responses to “The Events Calendar – Admin Texts Do Not Translate”

Leave a Reply

Please leave here comments about this page only.
For technical support and feature suggestions, head to our forum. We are waiting there!

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>