Перейти к содержимому Перейти к боковой панели

Open

Topic Tags: Compatibility

Overview of the issue

You might encounter issues with The Events Calendar plugin where specific default strings such as ‘Upcoming’, ‘Previous Events’, and ‘Next Events’ do not display in their translated forms on the Event Archive page when using non-block themes like Twenty Twenty-One.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open …/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.php file.
  • Look for line 1602.
  • Replace:
    		if ( empty( $this->repository_args ) ) {
    
  • With:
    		load_plugin_textdomain('the-events-calendar', false, plugin_basename(dirname(__FILE__)) . '/languages/');
    		if ( empty( $this->repository_args ) ) {
    

3 комментария к “The Events Calendar - Translation Issues for Certain Strings with Non-Block Themes”

Оставить ответ

Пожалуйста, придерживайтесь темы и уважайте других. Если вам нужна помощь по вопросам, не связанным с этим сообщением, используйте наш Форум поддержки, чтобы начать чат или отправить заявку.

Вы можете использовать эти теги:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>