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
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+01:00)

Tagged: 

This topic contains 5 replies, has 0 voices.

Last updated by Bigul 2 days, 6 hours ago.

Assisted by: Bigul.

Author Posts
February 13, 2025 at 6:33 pm #16704132

paulP-61

Background of the issue:
My default site language is Czech (CZ) and my secondary language is German (DE). Automatic translation works fine when content is created in Czech, but when posts are created or updated in German, they are not automatically translated. I understand that WPML only automatically translates content from the primary language (CZ) to other languages, and that users must switch to CZ using the language switcher to trigger the translation. I reviewed the documentation here: https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/ but couldn’t find any hook that would create a translation for content that originates in a non-primary language.

Symptoms:
Automatic translation does not occur when posts are created or updated in the secondary language (German).

Questions:
Is there any possible solution or hook to enable automatic translation from a non-primary language?

February 14, 2025 at 5:48 pm #16707729

Bigul
Supporter

Languages: English (English )

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

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

To help you faster, I've enabled debug information for this support ticket. Please see this link for how to get this information from your site and give it to us: http://wpml.org/faq/provide-debug-information-faster-support/

There are limitations to automatically translating from secondary languages. So I will consult about this with our team for an expert opinion and get back to you as early as possible (most probably on Monday because of the weekend). Thank you for your understanding. Please wait.

--
Thanks!

Bigul

February 19, 2025 at 9:29 pm #16726887

paulP-61

Hello, do you have any updates? Thank you

February 20, 2025 at 9:36 am #16728391

Bigul
Supporter

Languages: English (English )

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

Hello,

Sorry for the late response. We were trying different workarounds to achieve it. Because as of now there are no WPML hooks that support your requirement. But you can achieve it by following workarounds.

Steps 1

- Visit the Posts>>All Posts page
- Switch to German via the Dashboard language switcher (of top header)
- Click on the + icon of the Post that you want to translate
- Translate it Automatically from the WPML Advanced Translation Editor screen by clicking the *Translate Automatically* button

Steps 2

- Visit WPML>>Translation Management Dashboard
- Choose German as the Source language
- Select the Post
- Select the languages and Translation Method (*Translate automatically*)
- Click on the Translate button

Refer to the attached images and the following documentation for more details. After a site backup, please try it and let us know your feedback.

https://wpml.org/documentation/automatic-translation/#sending-content-to-automatic-translation

--
Thanks!

Bigul

2025-02-20_15h00_47.png
2025-02-20_15h00_13.png
2025-02-20_14h47_30.png
February 20, 2025 at 5:01 pm #16730811

paulP-61

Hello,

unfortunately, this is manual work and I don´t think this is maintainable for my client.
Since the page needs to be in czech, this option is not the best.

Would it be possible to get another way by coding? At leats if there are other ways like other filters and hooks that is WPML using for creating translation page etc.?

Younghee

February 21, 2025 at 7:33 am #16732306

Bigul
Supporter

Languages: English (English )

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

Hi Younghee,

Thank you for the feedback. To make sure, are you trying to achieve the following? Please confirm.

1) Most of the Posts & Pages are created in Czech language
2) It is automatically translated into German
3) But few of the posts/pages are created in German
4) You want to translate the posts/pages created in German automatically into Czech (without any manual actions)

We hope you are not manually updating the German posts/pages (which are translated into German from Czech) from the WordPress editor.

--
Thanks!

Bigul