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
- 8:00 – 15:00 8:00 – 15:00 8:00 – 15:00 8:00 – 15:00 8:00 – 15:00 -
- 16:00 – 17:00 16:00 – 17:00 16:00 – 17:00 16:00 – 17:00 16:00 – 17:00 -

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

This topic contains 4 replies, has 2 voices.

Last updated by Alejandro 10 months, 2 weeks ago.

Assisted by: Alejandro.

Author Posts
July 22, 2024 at 1:32 pm #15987072

jonathanB-74

Background of the issue:
I am trying to use the new WPML advanced editor to edit shortcode attributes on my site hidden link. For each language version, I have both an English phrase with a text-to-speech shortcode and the translation in that language with a similar shortcode. It is important that the first TTS is in English and the second TTS is in the target language. Previously, I used a placeholder attribute called 'targetlanguage' to translate to 'fr-FR', 'it-IT', etc. For example, hidden link

Symptoms:
I am no longer able to change the shortcode attribute to match the language, resulting in an English TTS voice trying to pronounce other languages badly.

Questions:
How can I revert to the previous editor?
How can I change the shortcode attribute to match the language in the new WPML advanced editor?

July 22, 2024 at 2:10 pm #15987336

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Hello! you can't revert to the other editor because it's the same.
However what you're experiencing is definitely not normal and we should investigate further.

Can you give me more information on the shortcode itself? how is it created? does it come from a plugin or something like that?

If the plugin or shortcode can be added and explained on hidden link">this site, then please do so and let me know how can i configure it so i can better understand how to solve the problem 🙂

Thanks in advance!

July 22, 2024 at 2:17 pm #15987354

jonathanB-74

Hi, I finally found the tab to use the old editor, because I couldn't change shortcodes with the new one!

Here's an example page: hidden link

I have effectively created variables that are placeholders for the translation.

The shortcodes look like this:

[sayit lang="en-GB" voice="en-GB-Wavenet-B"]Hello![/sayit]
[sayit lang="targetlanguage" voice="male"]Hello!*[/sayit]

For example, for the Italian translation (hidden link), I have the following translations:

targetlanguage = it-IT
male = it-IT-Wavenet-C (a Google TTS engine).

I also have a little image that serves as a placeholder of the target language flag (translation.png), and this becomes it.png

Anyway when I searched for the strings "targetlanguage", "male", I couldn't find them to translate!

I have resolved the problem for myself for now, by using the old editor, but I hope this helps you debug your system.

Thanks

July 22, 2024 at 2:20 pm #15987355

jonathanB-74

The shortcode comes from a TTS plugin called SayIt! However it became deprecated, so I actually asked the plugin developer to write some custom code to update the plugin for me.

Also it seems like the link you attached - hidden link points to a wp-admin sandbox, rather than some info about shortcode translations?

Thanks

Jonathan

July 22, 2024 at 2:56 pm #15987600

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

What you saw is not the "old editor" but the "shorter segments" configuration, It's the same editor with a different type of segmentation. However, that configuration should've not affected you as it did (at least not that i know of, but i wanted to confirm this).

The link that i added which is this: hidden link

Indeed goes to a website: a clean site where i wanted you to recreate the issue 🙂
That's why i asked if you could try to recreate it there so we can then understand why is it not working. For now, the fact that it works in the editor with "smaller segments" configuration and not with the "largest segments" is an indication that there might be something that we have to fix, but i can't confirm this until i see the problem myself and understand where is it coming from and why.

If you can, please add the plugin there and setup a page with content that would make the plugin work there. Ultimately write the steps of what you did to make it work and I'll do the rest (setup WPML and try to translate it in the newest version of the translation editor).

Thanks in advance.

The topic ‘[Closed] Unable to use the new WPML advanced editor to edit shortcode attributes’ is closed to new replies.