Hi;
What specifically are you looking to be able to do – to set up different replacements in different languages?
I am making replacements of English words of my default Jobify theme, and trying to find these replacements in WPML in order to translate them in French.
Do you have an alternative mind ?
Can’t you just translate the original string? Or does Say What? override them with the English replacement?
I don’t use WPML so I can’t really comment or test I’m afraid.
WPML prints the original at translation. So I translated the original. Nevertheless, the French page prints the SayWhat? replacement (in English of course)…
In the meantime, I solve this issue by using the following code in function.php, which works with WPML :
function change_my_theme_text( $translated_text, $text, $domain ){
if( $domain == ‘mydomain’ && $translated_text == ‘Alert me to jobs like this’ )
$translated_text = ‘Alert me to mandates like this’;
return $translated_text;
}
add_filter( ‘gettext’, ‘change_my_theme_text’, 20, 3 );
I’ll consider the feedback in future releases.
Thanks