Skip Navigation

Resolved

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;
	}
}

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

  1. Hi there,
    I think I am having the same issue where the calendar strings are being displayed in Portuguese even though English is my default language and English is the only available language on the calendar page.

    Hopefully, the fix will come soon.

    Thanks