Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1141028
    maghrabi42
    Participant

    Hello,
    I can’t translate the shipping on the checkout page find in attachment please
    thank you

    #1141045
    Paul R
    Moderator

    Hi,

    You can add this in your child theme’s functions.php file.

    
    function my_text_strings( $translated_text, $text, $domain ) {
    	switch ( $translated_text ) {
    		case 'Shipping' :
    			$translated_text = __( 'ADD YOUR TRANSLATION HERE', 'woocommerce' );
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'my_text_strings', 20, 3 );
    

    Change ADD YOUR TRANSLATION HERE with your text

    Hope that helps

    #1141076
    maghrabi42
    Participant

    nothing happen please see it in attachment
    thank you

    #1141122
    Christian
    Moderator

    Hey there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1141180
    maghrabi42
    Participant
    This reply has been marked as private.
    #1141187
    maghrabi42
    Participant

    Hello,
    if you can also translate please the (Your cart is currently empty) (Return To Shop)
    because i translate the spot file but nothing change exactly like the shipping
    thank you

    #1141245
    Christian
    Moderator

    The code given previously works (see attachment).

    I’ve also added

    		case 'Your cart is currently empty.' :
    			$translated_text = __( 'سلة مشترياتك فارغة حاليًا.', 'woocommerce' );
    			break;

    to the code which also works (see attachment).

    For more translations, please seek help from a web developer. You might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/

    Thanks.

    #1141582
    maghrabi42
    Participant

    thank you so much for your help

    #1141709
    Rahul
    Moderator

    Glad we could help you.

    If you have anything else, let us know. We’d be happy to assist you with everything.

    Thanks for using X.

  • <script> jQuery(function($){ $("#no-reply-1141028 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>