New Landing How can we help? Cardinal Cart strings partial translation

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Cardinal
  • #216299
    Kirsten
    Member
    Post count: 192

    Hey guys,

    Somehow, in all my websites I have an issue with the translation of “Shipping and Handling”. None of the websites translate it to Dutch, I have this issue for some while now and after updating the .po file with PoEdit everytime an update for Cardinal was available didn’t solve the problem. I can’t translate it with Realtime Find and Replace plugin because that one doesn’t translate the same string on the checkout page so the issue is still partially there.

    See screenshots, I’m sure this is the right stringline in the .po file. I use a child theme with the .po and .mo in /language
    Also when I overwrite the original .po and .mo in the parent theme the strings don’t translate.

    Any idea on what’s going on? Don’t want to keep hard coding the string to keep it translated.

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

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

    #219677
    Kirsten
    Member
    Post count: 192
    This reply has been marked as private.
    #220116
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    To resolve this, simple add this to your child theme functions.php file.

        function swift_translate_text_strings( $translated_text, $text, $domain ) {
    		switch ( $translated_text ) {
    			case 'Shipping and Handling' :
    				$translated_text = __( 'Verzenden/afhalen', 'swiftframework' );
    				break;
    			}
    		return $translated_text;
    	}
    	add_filter( 'gettext', 'swift_translate_text_strings', 20, 3 );

    Thanks,
    David.

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 the following item
Login and Registration Log in · Register