Skip to content Skip to sidebar

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.

Tagged: 

This topic contains 6 replies, has 3 voices.

Last updated by Bruno Kos 11 months, 1 week ago.

Assisted by: Bruno Kos.

Author Posts
September 2, 2024 at 9:23 pm #16133531

hesiquiaL

Background of the issue:
I need some help with Memberpress and WPML integration. I followed the instructions provided by Memberpress for translating. I scanned the plugins package to ensure I have access to all of the string translations. I created a custom account page and I have the languages setup for the URL parameter configuration.

Symptoms:
When I hover over certain links like My Profile, Payments or Subscriptions, the language URL parameter ?lang=es is not present. When I am switched to the Spanish language and I want to click on a link in the accounts section it always takes me back to the default English language because of the missing language URL parameter so it is not a good user experience.

Questions:
Why is the URL parameter ?lang=es not appearing on certain links like My Profile, Payments, or Subscriptions?
How can I ensure that when I switch to the Spanish language, the links in the accounts section do not revert to the default English language?

September 3, 2024 at 7:03 am #16134099

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Welcome to the WPML support forum. Before assigning your ticket to one of my colleagues, please allow me to guide you through some initial debugging steps to help speed up the support process.

In some cases, those strings may have been recognized but not associated yet with the String Translation panel for the translation. Please visit WPML>>String Translation and click on the *Translate texts in admin screens »* link at the bottom of the page.

Then search for the missing strings (URLs) in the *Admin Texts Translation* screen and check whether it is listed or not. If so, please add it for translation and translate it.

Refer to this doc for more details - https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#translate-admin-and-settings-strings

This may be related to the following tickets. Please refer to it for similar workarounds.

https://wpml.org/forums/topic/memberpress-string-translation/

https://wpml.org/forums/topic/translation-of-a-message/#post-15453592

Also, increase *WP Memory Limit* to *256* MB(the minimum required memory limit for WPML is *128*). Please check the following links for more details

https://wpml.org/home/minimum-requirements/

https://developer.wordpress.org/apis/wp-config-php/#increasing-memory-allocated-to-php

--
Thanks!

Bigul

September 4, 2024 at 4:25 am #16138252

hesiquiaL

I tried everything outlined and still it does not work. I tried translating every instance of the URLs and it is not appending the lang=es parameter as it should.

September 4, 2024 at 5:49 am #16138363

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Would you be willing to provide me with WordPress and FTP credentials so I could investigate the issue directly?

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

I marked your next reply as private so that you can safely add credentials.

September 5, 2024 at 10:06 am #16144124

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Can you please try the following:

**Switch to Language in Directory Mode**: Go to hidden link and change the WPML language settings to "Language in Directory" mode.

This change has resolved similar issues in the past where plugins were stripping parameters due to custom logic, which I believe Memberpress is doing also.

September 7, 2024 at 10:00 pm #16151831

hesiquiaL

Hello. Making the change to use directory mode got me closer to what I needed but there were other issues where certain links and text were not being translated correctly on the account page. I have decided not to use WPML for the site at this time. I appreciate the assistance. I may revisit at a later time if I move away from memberpress and integrate an LMS. Thank you for the support.

September 9, 2024 at 6:03 am #16153624

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Thank you for the update. If you decide to revisit this in the future or need any further support, please feel free to reach out.