Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

This topic contains 7 replies, has 4 voices.

Last updated by carmenS-26 3 years, 9 months ago.

Assisted by: Bruno Kos.

Author Posts
February 23, 2021 at 11:52 am #8153387

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 );
}
February 24, 2021 at 9:15 am #8160731

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

February 24, 2021 at 10:11 am #8161857

Marco

You just <?php echo get_the_privacy_policy_link(); ?> anywhere and you'll get the translated link but not the translated page title.

February 24, 2021 at 12:23 pm #8163299

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

February 24, 2021 at 12:55 pm #8163413

Marco

I saw that post.

Perfect, I'll wait for your feedback.
In the meantime, my workaround is fixing it.

February 28, 2021 at 8:48 am #8189759

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

July 7, 2021 at 12:40 pm #9148357

gierand

Hi,
The problem still exists.

Regards

September 4, 2023 at 9:07 pm #14339225

carmenS-26

And so on the Problem still exists please Help us