{"id":18996040,"date":"2026-08-18T06:32:58","date_gmt":"2026-08-18T06:32:58","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/patch-for-multilanguage-plugins\/"},"modified":"2026-08-18T06:32:58","modified_gmt":"2026-08-18T06:32:58","slug":"patch-for-multilanguage-plugins","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/patch-for-multilanguage-plugins\/","title":{"rendered":"Patch for Multilanguage Plugins"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This Plugins has problems with Multilanguage installations. It don&#8217;t shows everywhere the translation of the event. With this patch you can fix that issue:<br \/><br \/><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Index: trunk\/eventpost.php<br \/>===================================================================<br \/>--- trunk\/eventpost.php\t(Revision 3652097)<br \/>+++ trunk\/eventpost.php\t(Arbeitskopie)<br \/>@@ -1021,7 +1021,7 @@<br \/> \t\t$rich_data = array(<br \/> \t\t\t'@context'=&gt;'https:\/\/schema.org',<br \/> \t\t\t'@type'=&gt;'event',<br \/>-\t\t\t'name'=&gt;$event-&gt;post_title,<br \/>+\t\t\t'name'=&gt;get_the_title($event-&gt;ID),<br \/> \t\t\t'datePublished'=&gt;str_replace(' ', 'T', $event-&gt;post_date_gmt).$gmt_offset,<br \/> \t\t\t'dateModified'=&gt;str_replace(' ', 'T', $event-&gt;post_modified_gmt).$gmt_offset,<br \/> \t\t\t'startDate'=&gt;$event-&gt;time_start ? date($time_format, $event-&gt;time_start) : null,<br \/>@@ -1830,7 +1830,7 @@<br \/> \t\t\t\t\t$this-&gt;get_post_color($event-&gt;ID, $this-&gt;settings&#091;'default_color'],true),<br \/> \t\t\t\t\t$event-&gt;permalink,<br \/> \t\t\t\t\t$thumbnail == true ? '&lt;span class=\"event_thumbnail_wrap\"&gt;' . get_the_post_thumbnail($event-&gt;root_ID, !empty($thumbnail_size) ? $thumbnail_size : 'thumbnail', array('class' =&gt; 'attachment-thumbnail wp-post-image event_thumbnail')) . '&lt;\/span&gt;' : '',<br \/>-\t\t\t\t\t$event-&gt;post_title,<br \/>+\t\t\t\t\tget_the_title($event-&gt;ID),<br \/> \t\t\t\t\t$event-&gt;post_type == 'product' ? $text_price : '',<br \/> \t\t\t\t\t$this-&gt;get_singledate($event, '', $context),<br \/> \t\t\t\t\t$this-&gt;get_singlecat($event, '', $context),<br \/>@@ -2645,8 +2645,8 @@<br \/> \t\t\t\t\t}<br \/> \t\t\t\t\t$ret.='&lt;li&gt;'<br \/> \t\t\t\t\t\t\/\/ Translators: %s is the event title<br \/>-\t\t\t\t\t\t. '&lt;a href=\"' . $event-&gt;permalink . '\" title=\"'.esc_attr(sprintf(__('View event: %s', 'event-post'), $event-&gt;post_title)).'\"&gt;'<br \/>-\t\t\t\t\t\t. '&lt;h4&gt;' . $event-&gt;post_title . '&lt;\/h4&gt;'<br \/>+\t\t\t\t\t\t. '&lt;a href=\"' . $event-&gt;permalink . '\" title=\"'.esc_attr(sprintf(__('View event: %s', 'event-post'), get_the_title($event-&gt;ID))).'\"&gt;'<br \/>+\t\t\t\t\t\t. '&lt;h4&gt;' . get_the_title($event-&gt;ID) . '&lt;\/h4&gt;'<br \/> \t\t\t\t\t\t. '&lt;span class=\"event_price\"&gt;' . $price . '&lt;\/span&gt;'<br \/> \t\t\t\t\t\t.$this-&gt;get_single($event)<br \/> \t\t\t\t\t\t. (!empty($thumbnail) ? '&lt;span class=\"event_thumbnail_wrap\"&gt;' . get_the_post_thumbnail($event-&gt;ID, $thumbnail) . '&lt;\/span&gt;' : '')<br \/>@@ -3334,7 +3334,7 @@<br \/> \t\t\t\t\t'BEGIN:VEVENT',<br \/> \t\t\t\t\t'CREATED:'.$this-&gt;ics_date(strtotime($event-&gt;post_date)).'Z',<br \/> \t\t\t\t\t'LAST-MODIFIED:'.$this-&gt;ics_date(strtotime($event-&gt;post_modified)).'Z',<br \/>-\t\t\t\t\t'SUMMARY:'.$event-&gt;post_title,<br \/>+\t\t\t\t\t'SUMMARY:'.get_the_title($event-&gt;ID),<br \/> \t\t\t\t\t'UID:'.md5(site_url().\"_eventpost_\".$event-&gt;ID),<br \/> \t\t\t\t\t'LOCATION:'.str_replace(',','\\,',$event-&gt;address),<br \/> \t\t\t\t\t'DTSTAMP:'.$this-&gt;ics_date($event-&gt;time_start).(!empty($vtz)?'':'Z'),<br \/>Index: trunk\/inc\/export\/ics.php<br \/>===================================================================<br \/>--- trunk\/inc\/export\/ics.php\t(Revision 3652097)<br \/>+++ trunk\/inc\/export\/ics.php\t(Arbeitskopie)<br \/>@@ -59,7 +59,7 @@<br \/> \t\t\/\/ Event<br \/> \t\tarray_push($props,<br \/> \t\t\t'BEGIN:VEVENT',<br \/>-\t\t\t'SUMMARY:'.stripslashes($event-&gt;post_title),<br \/>+\t\t\t'SUMMARY:'.stripslashes(get_the_title($event-&gt;ID)),<br \/> \t\t\t'UID:'.$event-&gt;permalink,<br \/> \t\t\t'LOCATION:'.stripslashes($event-&gt;address),<br \/> \t\t\t'DTSTAMP:'.$date_start.(!empty($timezone_string)?'':'Z'),<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-18996040","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18996040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18996040\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18996040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}