Marco
I am trying to: get the privacy page link translated
I expected to see: both link and page title translated
Instead, I got: just the link translated, the text remains in the original page language
I fixed this with this piece of code, but I think this is a bug that should be fixed:
/* Privacy link text translation */
add_filter( 'option_wp_page_for_privacy_policy', 'wpml_option_wp_page_for_privacy_policy' );
function wpml_option_wp_page_for_privacy_policy( $value ) {
return apply_filters( 'wpml_object_id', $value, 'page', true );
}
Bruno Kos
Supporter
Languages:
English (English )
German (Deutsch )
French (Français )
Timezone:
Europe/Zagreb (GMT+01:00)
Hi,
Thank you for contacting WPML support!
May I ask how do you output (and where) this privacy link, through menu, or?
Privacy Policy Page should take the title of the translated page.
Regards,
Bruno Kos
Marco
You just <?php echo get_the_privacy_policy_link(); ?> anywhere and you'll get the translated link but not the translated page title.
Bruno Kos
Supporter
Languages:
English (English )
German (Deutsch )
French (Français )
Timezone:
Europe/Zagreb (GMT+01:00)
Hi,
I see that this has been brought up about two years ago.
https://wpml.org/forums/topic/bug-report-woocommerce-privacy-page-selection-is-not-translated-like-others-are/#post-2836279
However I'm not sure why, but I can see that development team did not handle that case, even though there were discussions about it.
For me this is clearly a bug because the function returns to wrong title (wrong page title).
That's why I escalated this case once again to our developers, but with a bit more clear explanations, I'll get back to you as soon as I have any news or questions for you.
Regards,
Bruno Kos
Marco
I saw that post.
Perfect, I'll wait for your feedback.
In the meantime, my workaround is fixing it.
Bruno Kos
Supporter
Languages:
English (English )
German (Deutsch )
French (Français )
Timezone:
Europe/Zagreb (GMT+01:00)
Hi,
This issue has been escalated to WPML developers.
I will keep this thread updated as soon as I get any new information from them!
In the meantime you can use workaround, nothing else to suggest.
Regards,
Bruno Kos
gierand
Hi,
The problem still exists.
Regards
carmenS-26
And so on the Problem still exists please Help us