New Landing How can we help? Themeforest Theme Support Dante Translate "Related products" into german

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #130275
    brebber
    Member
    Post count: 122

    Hi,
    where can I chnage the text phrase “Related products” into german language.
    I did not find the right place for that.

    Can you help me with that?

    Attachments:
    You must be logged in to view attached files.
    #130389
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    
    function sf_text_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case 'Related Products' :
    $translated_text = __( 'German', 'woocommerce' );//please change German with your text
    break;
    }
    return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );

    Thanks
    Mohammad

    Thanks
    Mohammad

    #133195
    brebber
    Member
    Post count: 122

    Thanks, that works fine!

    #133198
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. Thanks Mohammad.
    -Rui

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register