Support

Home Forums Event Espresso Premium Translate 'Search' button

Translate 'Search' button

Posted: April 9, 2014 at 2:16 am


Gijsbert Vandeweerdt

April 9, 2014 at 2:16 am

Hello,

Sorry to come again with this small things, but I wan’t the translations to be correct for our customers.

Can’t get to ‘search’ button to be translated. Did make the translation in GlotPress but no change.

Screenshot:
http://sintjansberg.be/downloads/Agenda__Kasteelklooster_SintJansberg_20140409_101253_20140409_101315.png

Thank you


Dean

April 9, 2014 at 4:58 am

Hi,

That string is not translatable, I’ll raise a ticket to edit it in a future version.

The only way I can see to replace it is via a string replace

function replace_string( $content ) {
$x = get_the_ID();
	if($x == '12') {
    $content = str_replace('Search', 'Wibble', $content);
    return $content;
	}
	else {
		return $content;
	}
}

add_filter( 'the_content', 'replace_string', 100 );

Obviously replace 12 with the post or page ID. If the shortcode is in a widget, it may prove harder to do.

The support post ‘Translate 'Search' button’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso