New Landing How can we help? Atelier Translation of checkout in cart hover

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Atelier
  • #242537
    jesper2109
    Member
    Post count: 18

    Hi I cant seem to find where i can translate the word checkout, in the pop-up of the cart. I tried Poedit and loco translate but i cant even find the word.. in wich file do i need to look? Its the only word isnt translated

    Hopefully you guys can help me!

    Cheers

    #242551
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

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

    <?php
    function sf_text_strings( $translated_text, $text, $domain ) {
    	switch ( $translated_text ) {
    		case 'Checkout' :
    			$translated_text = __( 'Afrekenen', $domain );
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    ?>

    Thanks
    Mohammad

    #242903
    jesper2109
    Member
    Post count: 18

    Thanx, but i get a server error when i paste that code in de functions.php.
    Any other options?

    #243373
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me login detail after installing WPIDE to check and resolve the issue.
    Thanks
    Mohammad

    #248019
    turetskam
    Member
    Post count: 9

    Hi,

    I have the same problem after latest update and the solution purposed do not work for me. Please advise.

    #248020
    turetskam
    Member
    Post count: 9

    Everything was fine before the update to the latest theme and Woocommerce versions.

    #248036
    David Martin – Support
    Moderator
    Post count: 20834
    #248188
    turetskam
    Member
    Post count: 9

    I’ve translated everything and everything was fine before the update. After latest update few words become untranslated, I’ve fixed them too. I have a problem with one word, “Checkout” in mini-cart. Please investigate this.

    #248205
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

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

    <?php
    function sf_text_strings( $translated_text, $text, $domain ) {
     switch ( $translated_text ) {
     case 'Checkout' :
     $translated_text = __( 'YOUR TEXT', $domain );// please change me
     break;
     }
     return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    ?>

    Thanks
    Mohammad

    #248230
    turetskam
    Member
    Post count: 9

    Could you please actually read what I’m saying? I’ve tried this solution, as mentioned above, and this does NOT work for me.

    #248235
    turetskam
    Member
    Post count: 9

    Tried once again and it worked this time. Strange, maybe some caching. Thanks.

    Still, I want to translate this though .po file, as I’m planning to add few languages in the nearest future. Please fix and update.

    #248238
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have read your message and sure that is only last solution. It should work 100%. Please recreate this translation in po file and generate new one mo file. Upload both files at server and check after delete the cache.
    Thanks
    Mohammad

Viewing 12 posts - 1 through 12 (of 12 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