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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 8 replies, has 1 voice.

Last updated by Waqas Bin Hasan 2 weeks, 6 days ago.

Assisted by: Waqas Bin Hasan.

Author Posts
March 8, 2025 at 10:53 pm #16792134

ericH-23

Background of the issue:
I am using a dynamic key in my WordPress site under development, but its name is being translated, for example, **{{Optionsschlüssel:shortcode_for_search_in_place}}**, which causes it to stop working (should be optionkey). I can manually correct this in the translations.

Symptoms:
The dynamic key's name is being translated, causing it to stop working.

Questions:
How can I ensure that the original page remains correctly translated while preventing the key from being altered?

March 9, 2025 at 12:44 am #16792223

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

To avoid the automatic translation you can make use of the Advanced Translation Editor's Glossary by adding your dynamic keys as "Names" to the Glossary:

https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/how-to-create-and-manage-glossary-entries/

In case you need further assistance It would be very helpful if you could send us the WPML debugging information.
More information here:
https://wpml.org/de/faq/provide-debug-information-faster-support/

Best regards
Andreas

March 9, 2025 at 8:08 pm #16793551

ericH-23

Hi,

Ok, I added the string to the glossary, but I can see it not in the list, please see my situation: hidden link

Question: how can I get an automatic update of the WPML plugins?

Thanks, kind regards
Eric

March 10, 2025 at 9:38 am #16795304

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting the support.

Can you please confirm if you added only "optionkey" to the Glossary or the full key (i.e. {{optionkey:shortcode_for_search_in_place}})? The later may not work correctly.

It'd be great if you can record your screen while adding the entry in Glossary, so I can then try repeating the same thing in my test site.

Regards.

March 10, 2025 at 4:58 pm #16797740

ericH-23

Hi,
Thanks for your message.
My situation is now:
- 2 entries in glossary in the translation management header shown
- but glossary empty
- "option key:shortcode_for_search_in_place" cannot be added
- "option key" is to general, I don't want to block the translation hereto for the site
What is your advice here please?
Thanks, kind regards
Eric

March 11, 2025 at 7:35 am #16799643

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Thank you for the updates.

I tried those terms by adding in the Glossary and can add using different formations. However, am not seeing these converted properly. Perhaps I'm trying that text directly in post content, instead of a "dynamic key".

Here's my screen recording: hidden link

I've created this test site (hidden link one-click login). Can you please login and try to reproduce the issue here? You can either try translating manually or can send for auto-translation from Translation Management dashboard.

Once you're able to reproduce, please note down the exact steps, including where and how you added that dynamic key in your content and please record your screen while adding this to the glossary.

March 11, 2025 at 8:50 am #16800007

ericH-23

Hi,
Thanks for the comprehensive testing, I am impressed. I tested the sandbox and see it working, unfortuately I can add also the whole string to the glossary but it is not possible in my system. I added them but I have an empty glossary list.
What can I do?
May be it has something to with my other problem?
https://wpml.org/forums/topic/my-data-base-is-too-large-with-icl_translate/
I have a huge translation list with 2.1 GB, here is something going wrong.
Thanks, kind regards
Eric

March 11, 2025 at 1:24 pm #16801946

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Thank you for the updates.

That can be a problem, if not a compatibility or conflict coming from elsewhere. I see that one of my colleagues has replied to you with a workaround.

Let's wait for that ticket to get resolved, so we can have one major problem ruled out.

Please keep this ticket with you and let me know when the other issue has been resolved and if problem continues to appear even after that. I'll try my best to further look into this.

March 12, 2025 at 8:37 pm #16809199

ericH-23

Hello,

Really unfortunate, but after the improvement by one of your colleagues, the issue is still not resolved. So, it doesn’t seem to be related to that. I have two entries, but I can’t see them.

Should I create a staging site so you can take a look? Maybe it’s just a small issue.

Thanks and best regards,
Eric

March 13, 2025 at 11:47 am #16811650

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Sure not a problem, we can continue here for this issue.

I tried to login using the information on your other ticket, for a quick check but looks like the access isn't working anymore.

So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

Also provide detailed steps to reproduce the issue and links to pages in the admin and on the frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

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

P.S.: If you don't see the section for providing access information, do not write in the message box or the information may appear as public.

March 14, 2025 at 8:06 am #16814918

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Thank you for the updates, I can see the entries in your test site. However, that error is happening even in my sandbox site but it is not preventing or breaking any fucntionality.

Are these terms working fine in your test site as expected? I mean since you've added these and can see these as well, do these now fulfil your purpose?

March 15, 2025 at 11:13 am #16819684

ericH-23

Hi,

Today, I started a new test, and the translation of the option key has been processed further.
However, it is not visible and cannot be deleted.

The error message I receive is:
*"fetchGlossaryAction saga: TypeError: Cannot read properties of undefined (reading 'search')"*

What should I do now? I am unable to use the Glossary.

Thanks,
Kind regards,
Eric

March 17, 2025 at 5:23 am #16822873

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Thank you for the updates.

However, I can see those entries, can delete, can add again and then can delete again. Please watch my hidden link" rel="noopener" target="_blank">screen recording.

Current, as per the screen recording, I've deleted these, so you'll need to add again.

I suspect something, like a cache, may be interfering in your browser. Please try clearing browser cache or check in another browser which you haven't used for this previously.

If issue still remains, then please deactivate all other plugins except WPML and String Translation, switch to a standard WordPress theme like 2021 or 2024 and record your screen while retrying. This 'll help me understand what exactly is happening and I'll try my best to follow your steps again.

March 18, 2025 at 3:45 pm #16831269

ericH-23

Hi,
I started a debugging in a older staging site and had no problem. In my main site the glossary is not shown, I added a further item to it but nothing changed. I tried to export them, but this freezes. How can the 4 items be deleted?

A fresh staging site is at the moment not possible, because of the big data table problem of WPML.

I enclosed the current error list of the glossary view. There are many errors, and as you wrote those errors are also shown in your sandbox, so probably those errors are gone in a next update?

So what now?
Thanks, kind regards
Eric

Bildschirmfoto 2025-03-18 um 16.16.00.png
March 18, 2025 at 4:38 pm #16831547

ericH-23

Hi,
Now I have the result of a fresh staging site. Here the glossary is working. So what can we do now with the live site? Is there an option in the troubleshooting?
Thanks, kind regards
Eric

The topic ‘[Closed] {{optionkey:shortcode_for_search_in_place}} may not be translated’ is closed to new replies.