Hello,
I did not manage to translate two words:
I am using the following code which works fine for other translation but not those one - no idea why:
add_filter( 'gettext', 'translate_x_strings', 20, 3 );
function translate_x_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Search' :
$translated_text = __( 'Recherche', '__x__' );
break;
case 'Read More' :
$translated_text = __( 'Lire la suite', '__x__' );
break;
case 'Reply' :
$translated_text = __( 'Repondre', '__x__' );
break;
case 'at' :
$translated_text = __( 'a', '__x__' );
break;
}
return $translated_text;
}