• Resolved MikaelG

    (@armbreaker)


    Hi.

    I don’t mind the Privacy Policy showing up in the footer, it actually is nice as I can remove it from menus and so on. But it is annoying that the link text is displayed in the wrong language. I use WPML, Woocommerce & Store Front(with Proshop child theme). And I can’t find the string anywhere in WPML so I guess somehow Storefront is using the default language for the link text. Can you please change this so it uses the correct translation depending on language used?

    Best regards,
    Mikael

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Mikael,

    I took a look at your site and I do see the privacy link in the footer. With a single language site, this is just a link to the selected privacy page with the page title as the text.

    Here’s the code that adds this to the footer:

    		
    if ( apply_filters( 'storefront_privacy_policy_link', true ) && function_exists( 'the_privacy_policy_link' ) ) {
    	$separator = '<span role="separator" aria-hidden="true"></span>';
    	$links_output = get_the_privacy_policy_link( '', ( ! empty( $links_output ) ? $separator : '' ) ) . $links_output;
    }
    

    It’s basically the same as what’s in the default Twenty Nineteen theme:

    
    if ( function_exists( 'the_privacy_policy_link' ) ) {
    	the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
    }
    

    I would reach out to the WPML team and see if they have any suggestions on how to translate this text. It’s a core WordPress function so they may already have a way to translate that ready to go.

    Take care,

    Thread Starter MikaelG

    (@armbreaker)

    Thanks, have reported this to the WPML support. Hopefully they will solve this issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘New Privacy Policy link in footer isn’t translated/using correct language WPML’ is closed to new replies.