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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Kyiv (GMT+02:00)

This topic contains 5 replies, has 0 voices.

Last updated by Andrey 2 days, 11 hours ago.

Assisted by: Andrey.

Author Posts
November 21, 2024 at 9:14 pm #16431099

Giannis

Background of the issue:
I am working on a site under development and my company is doing some custom work. We need to change the URL parameter from "domain.com/?lang=en" to "domain.com/?culture=en".

Symptoms:
I have searched on Google but have NOT found something.

Questions:
How can I change the URL parameter from ?lang to ?culture using WPML?

November 21, 2024 at 9:55 pm #16431179

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for contacting WPML support.

With the current WPML settings, it is not possible to achieve this.

Let me share an article about Language URL format options in case you consider changing the URL format: https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/

November 24, 2024 at 6:10 pm #16437426

Giannis

Hello again,

Thank you very much for your reply.

I have seen the mentioned article, however, it is not clear how I can change the parameter.

There must be a way to do this.
Where is the word "lang" being formed? Is this a WP parameter/string or a WPML parameter/string.

Please explain.

I look forward to your assistance with this.

Thank you!
Giannis

November 25, 2024 at 2:24 pm #16440221

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Hello Giannis,

I apologize for not being clear. The parameter "?lang" is generated in the WPML plugin's code and cannot be altered in the WPML settings.

November 25, 2024 at 6:49 pm #16441800

Giannis

Hello and thank you for your reply.

I understand this (what you have mentioned), but I would appreciate it if you could tell me what parts I can modify to change this.
I am sure that if I alter some specific part this will change the path.

Please look into this.
Thank you!
Giannis

November 26, 2024 at 8:24 pm #16446870

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for your feedback, Giannis.

I cannot recommend any part of the code for direct changes, as it can lead to safety issues and unexpected problems. Unfortunately, we cannot provide support for this.

If you would like to access the developer information, you can find it here: https://wpml.org/documentation/support/.

I appreciate your understanding.