Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Lee Willis

    (@leewillis77)

    Hi;

    What specifically are you looking to be able to do – to set up different replacements in different languages?

    Thread Starter b2bcherry

    (@b2bcherry)

    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 ?

    Plugin Author Lee Willis

    (@leewillis77)

    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.

    Thread Starter b2bcherry

    (@b2bcherry)

    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 );

    Plugin Author Lee Willis

    (@leewillis77)

    I’ll consider the feedback in future releases.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WPML’ is closed to new replies.