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.

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: America/Argentina/Buenos_Aires (GMT-03:00)

Tagged: 

This topic contains 13 replies, has 2 voices.

Last updated by Otto 11 months, 1 week ago.

Assisted by: Otto.

Author Posts
October 14, 2024 at 2:44 am #16283773

eun-kwangH

Background of the issue:
In my WordPress site, I’m using Elementor for editor and WPML for translation. Also, I use a number of custom shortcodes. The main language of the site is Korean, and the contents are translated into English. I know that WPML ATE recognizes a shortcode when in the middle of a sentence as . However, if a sentence starts with a shortcode or if a sentence contains multiple shortcodes in the middle, it does not.

Symptoms:
WPML ATE does not recognize shortcodes at the beginning of a sentence or when multiple shortcodes are in the middle, causing translation issues.

Questions:
Do you have any idea how to make WPML ATE recognize shortcodes whether a sentence starts with a shortcode or a sentence contains multiple shortcodes in the middle?

October 14, 2024 at 3:41 am #16283906

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Eun-kwang,

Thank you for contacting WPML support, I’m happy to help you with this issue.

Based on your screenshot, I see the sentence is translated properly in ATE. Can you please replicate the issue on a clean installation of WordPress? You can access the admin area directly with this link
hidden link

Kindly follow the steps below:

- Don’t restore your site there.
- Install neccessary plugins.
- Try to replicate the issue with minimal steps.
- Then let me know the steps to replicate it.

Looking forward to your reply.
Thanks

October 14, 2024 at 6:46 am #16284099

eun-kwangH

Hi Long,

I just replicated the issue as directed, albeit simplified to focus on the issue itself.

Please check out the link below:
hidden link

Regards,

EK

October 14, 2024 at 7:23 am #16284209

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

The issue occurs on the sandbox site due to the plugin ACF Multilingual (ACFML) is missing. After I install/activate this plugin and re-translate the post, the shortcode content is displayed on the translation post as well.
Refer documentation https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/

Looking forward to your reply.
Thanks

Report Test – Sandbox 2024-10-14 14-22-48.png
October 14, 2024 at 7:56 am #16284305

eun-kwangH

Hi Long,

I forgot to mention that I was not able to install ACFML in the sandbox. Now it allows to translate ACF labels and show them. I do not have any issue with this as ACFML is up and running in my site as well.

However, the issue does not seem to be resolved in the post I added first. For example:

1. I would like "The area of Seoul" instead of "Seoul's area"
2. I would like "In 2023, the population of Seoul" instead of "2023, Seoul's population"

However, I do not know how to make it happen. If a sentence begins with ACF shortcode, ATE omits the shortcode. Therefore, I cannot move around the shortcode and translations of plain text.

Any thought?

October 14, 2024 at 8:12 am #16284343

eun-kwangH

Hi Long,

For clarification of the issue, I duplicated your test and tweaked it.

In Korean, it shows:
2023: year 1, when and where: 2023 서울

I would like to translate it as:
year 1: 2023, where and when: Seoul 2023

Check out hidden link

October 14, 2024 at 8:15 am #16284364

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I understand the issue. I'm discussing this with our 2nd tier support and update you here when I have more information.

Thanks.

October 24, 2024 at 2:09 am #16324029

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

After discussing this issue with our developer, we will implement a fix for this case. You will use the HTML tag to wrap the content with shortcodes in order to show them all in ATE, like this

<span ate_segment="false">[shortcode_text] Foo [shortcode_text] Foo [shortcode_text] Foo [shortcode_text]</span>

would it be convenient for you to use this solution? Let me know your feedback.

Thanks.

October 25, 2024 at 1:19 am #16328648

eun-kwangH

Hi Long,

Thanks for your follow-up which I have been waiting for. It works for certain cases but not for every case as I wanted.

1. It does not seem to work if I wrap a entire sentence. I have to wrap part of a sentence as in image #1 and #2.

2. However, the same approach does not work for another similar case, which I do not know the reason. It still segments in ATE as in image #3 and #4.

3. It does not seem to work properly for sequential shortcodes either. It still segments in ATE as in image #5 and #6.

Please note that I deleted the translations and WPML cache (WPML>Support>Troubleshooting>Delete WPML Cache) before trying the proposed solution.

I suspect WPML cache may not have been completely flushed, which I do not know how to. Also, I sometimes experienced time lags between modifications and reflections. If this is the case, can I know when I can try again? Other than that, I do not know the rule how the solution works yet.

Can you please look into this one more time?

Thanks.

EK

wpml-lobin-06.jpg
wpml-lobin-05.jpg
wpml-lobin-04.jpg
wpml-lobin-03.jpg
wpml-lobin-02.jpg
wpml-lobin-01.jpg
October 25, 2024 at 2:32 am #16328836

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

It doesn't work because the solution isn't implemented yet. If you think it is good to use, I will inform the developer to implement it and you can use the code in the future.

Looking forward to your reply.
Thanks

October 25, 2024 at 3:02 am #16328885

eun-kwangH

Hi Long,

I see. If it can work as you addressed, it would be great for me, as I can have more control over the translations. Please let me know the next steps.

Thanks.

EK

October 25, 2024 at 7:13 am #16329216

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Sure, I will inform the development to implement it and update you here when it's done.

Thanks.

June 2, 2025 at 4:21 am #17096203

eun-kwangH

Any update on this ticket? It's been quite a while but nothing heard back.

June 2, 2025 at 4:24 pm #17098758

Otto

Hello,

Please apologize for the delay. The issue has been queued for the next development cycle. I can't promise it will be released with it, but the dev team is taking care of it now.

Best Regards,
Otto