Hi,
Which version of Events Manager and WPML are you using?
Events Manager 5.5.6
WPML Translation Management 1.9.11
neither say there are any updates
Is that the only WPML plugin you have installed?
I have:
WPML Media
WPML Multilingual CMS
WPML Sticky Links
WPML String Translation
WPML Translation Management
Events Manager and WPML Compatibility
I have got the Months translating when I updated wordpress but the days don’t translate.
For the Main events list I want to change a word in Welsh, can php be added to this as I seem to break it everytime
`<?php
/*
* Default Events List Template
* This page displays a list of events, called during the em_content() if this is an events list page.
* You can override the default display settings pages by copying this file to yourthemefolder/plugins/events-manager/templates/ and modifying it however you need.
* You can display events however you wish, there are a few variables made available to you:
*
* $args – the args passed onto EM_Events::output()
*
*/
$args = apply_filters(’em_content_events_args’, $args);
if( get_option(‘dbem_css_evlist’) ) echo “<div class=’css-events-list’>”;
echo EM_Events::output(array(‘format’=> ‘
<div class=”event-item”>
{has_image}#_EVENTIMAGE{400, 300}{/has_image}
{no_image}<img src=”/wp-content/themes/CMF/images/logo400x300v2.jpg” alt=”cowbridge music festival”/>{/no_image}
<div class=”concert”>#_EVENTLINK
</div>
<div class=”e-date”>#_EVENTDATES,
#_EVENTTIMES
</div>
<div class=”e-more”>
<?php if
(ICL_LANGUAGE_CODE == ‘cy’
) { ?>
<?php echo ‘Mwy > ‘; ?>
<?php } else { ?>
<?php echo ‘More > ‘; ?>
<?php } ?>
</div>
<div class=”conc-ex”>#_EVENTEXCERPT{15,…}</div>
</div>
‘, ‘limit’=>20, ‘pagination’=>1));
if( get_option(‘dbem_css_evlist’) ) echo “</div>”;
Try adding the code snippet below to the functions.php file of your theme, swapping OLD and NEW for the old and new words:
function my_em_text_rewrites($translation, $orig, $domain) {
str_replace('OLD','NEW', $translation);
return $translation;
}
add_action ( 'gettext', 'my_em_text_rewrites', 1, 3 );