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

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

Tagged: 

This topic contains 12 replies, has 2 voices.

Last updated by Dražen Duvnjak 3 hours, 10 minutes ago.

Assisted by: Dražen Duvnjak.

Author Posts
September 20, 2024 at 10:30 am #16202368

lauraN-17

Background of the issue:
We have a staging version of this website with many changes which we would like to push live. We have translated all the content and strings but the translations are not displayed.

Symptoms:
Some of the translations are not being displayed on the frontend. For example, the Polish version of this page shows German (the original language) instead of Polish: hidden link

Questions:
Why are some translations not being displayed on the frontend?
What steps can we take to ensure that all translations are displayed correctly?

September 20, 2024 at 11:21 am #16202625

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons, and themes.

You can access the WordPress dashboard using the link below:

- hidden link

Try to replicate the issue with a simple example page / block, same as the one you have, you can also import export that page if you wish. Just make sure to install Stackable plugin.

This will help us to report the probable issue to the compatibility team and solve the possible problem faster.

Regards,

Drazen

September 30, 2024 at 8:31 am #16234883

lauraN-17

Hi Drazen,

the sandbox has expired, can you please create a new instance for us? do you need the whole website on our staging environment to your sandbox-instance for investigation?

Alternatively, we could also offer you a complete development environment on a separate server with access credentials, which you can use independently.

Regards

September 30, 2024 at 9:54 am #16235331

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

here is the new link:

- hidden link

No, I do not need whole website, I just need you to add the same block on the new page, so I can confirm this block is not translatable, and then escalate this case to our compatibility team. So simple dummy page with 1-2 block / same example structure as on your page, so we can confirm it is not translatble,

Thanks,
Drazen

September 30, 2024 at 1:43 pm #16236551

lauraN-17

Hi Drazen

we added some block on the new page for you to investigate.

Please let us know in case you need more.

Thanks, Laura

October 1, 2024 at 7:13 am #16238551

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

thanks for getting back.

I see you created a pattern and added it to the page. So I have translated the page and pattern from Translation Management, and it translated fine: hidden link

Is this the same block and issue you have on your website? If yes, please share staging site access and let me have another look.

Regards,
Drazen

October 1, 2024 at 8:15 am #16238878

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

thanks, I am checking but I am not sure if you have used or created the same pattern/block as the one you have issued on your website. It looks different, as your pattern has only title + text.

Can you please try to create the same on the sandbox website, and share the steps with me on how you do that?

Thanks,
Dran

October 1, 2024 at 8:54 am #16239090

lauraN-17

Yes, I have selected a different element, but it is the same problem. The translations are not displayed here either... I have now also created the header element in the sandbox. It looks a bit different which is due to the theme, fonts etc.

My approach:
1. create pattern
2. insert pattern in Gutenberg
3. customise the text of the pattern

October 1, 2024 at 12:52 pm #16240503

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

but translation works just fine on the test site. You are adding a pattern on the page, so you need to translate the pattern first, and then the pages.

It is a bit confusing, if you can please show me the same example on the test site, you can export / import the page if that is easier for you. That way I can confirm the same issue and see if or why it is not translating.

Please do that on the new test page so I can check and add code that we can adapt to your website and then make the block translatable.

I am trying to do the same but I do not see "block title" as on your staging site. Please note we can check the issue on test site, but I can not guarantee that will fix also issue from your website, that is why we need to you to reproduce same issue / case.

Regards,
Drazen

October 1, 2024 at 1:16 pm #16240681

lauraN-17

We have translated everything possible in staging, but it still doesn't work.

Of course, it looks different in the sandbox because not all plugins are installed in exactly the same way. Why do I have to rebuild everything now? Why don't you just check the problem in our staging? Now almost all plugins are deactivated in our staging, I think that was you?

I honestly don't know how I can help you right now. Copying the elements from our staging into yours seems pointless to me.

October 1, 2024 at 1:50 pm #16240925

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

since I suspect this is a bug with the mentioned plugin, we need to be able to reproduce on the new website, to escalate it to our compatibility team.

If you agree, that the issue is reproduced on the sandbox website, I can escalate that case to our compatibility team and we can check and try to fix that?

I might be wrong that is why I am trying to confirm with you that this is the same case and block you use on your website.

Thanks,
Drazen

October 1, 2024 at 2:07 pm #16241072

lauraN-17

I have looked at what you have created in the sandbox. Just so I understand correctly: It is not possible to translate texts in patterns, we have to create the patterns for each language separately? That would be very complicated. Because I think we have also seen and translated some of the texts in WPML, but they are not displayed in the different languages.

October 1, 2024 at 2:23 pm #16241143

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

it is possible to translate patterns and text in it, but in your case, you are adding H1 tag in the pattern and then in page text to that pattern, I think this is what is causing the issue and might not yet be supported.

Usually, you translate the pattern and then the page and it works fine.

Can you please recheck and confirm the sandbox case so I can escalate further?

Thanks,
Drazen