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.

This topic contains 1 reply, has 2 voices.

Last updated by Noman 1 year, 8 months ago.

Assisted by: Noman.

Author Posts
August 3, 2022 at 8:39 am #11791367

sebastienB-10

I would like to translate this link?

August 3, 2022 at 10:44 am #11792453

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

So, you need to follow the below steps in order to translate the hardcoded URL:

1. Please take a backup of your site for security reasons.

2. Please replace the below line:

esc_url( '/boutique','woo-floating-cart'),

With:

esc_url(__('/boutique','woo-floating-cart')),

3. Please go to WPML >> Theme and plugins localization page and scan the theme/plugin in which you update the above code.

4. Please go to WPML >> String Translation and search this link “boutique'” and add the translation.

Here are docs for more details:
https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
https://wpml.org/documentation/support/enabling-text-translation-for-themes-not-compatible-with-wpml/

Please let me know if this resolves your issue or if you need further assistance with this issue.

Thank you

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.