Skip Navigation

[Resolved] Layouts items not showing up in String translation (in WPML)

This thread is resolved. Here is a description of the problem and solution.

Problem:
Strings of Layouts previously translated in Strings Translations are not appearing anymore as translated on the front end, and cannot be translated in String Translation anymore

Solution:
https://wpml.org/errata/translating-layout-with-wpml/

This support ticket is created 5 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 32 replies, has 3 voices.

Last updated by garenM 4 years, 12 months ago.

Assisted by: Beda.

Author
Posts
#1372879

Hey I am trying to translate pieces of content that are listed in Layouts, normaly they would be listed under straing translation in wpml, but after recent updates they are not there anymore.

#1372921

Nigel
Supporter

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

Timezone: Europe/London (GMT+00:00)

Can you show me an example (e.g. screenshot) of the kind of content you are trying to translate, and I'll try with old and new plugin versions on a local test site to try to reproduce.

#1372927
Untitled-1.jpg

For example i want to translate from layout home the row 6 (attached the screenshot). You can see that the page is translated hidden link but you cant find the translations in back-end so you can update them. In translation management didn't show the translation that i have before on string translation section and i have to translate again all layouts.

#1372939

Nigel
Supporter

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

Timezone: Europe/London (GMT+00:00)

Did you attach the right screenshot?

I need to see your Layout, to know what kind of content you are trying to translate. Where are the strings to be translated coming from?

#1372947
Untitled-2.jpg

attached the layout cell

#1372963

Nigel
Supporter

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

Timezone: Europe/London (GMT+00:00)

WPML 4.3 introduced major changes to how string translation works, and I had thought that would be the issue, but I'm trying this on the last pre-4.3 plugin versions and can't see the strings in a Visual Editor cell to translate either.

Do you know when it stopped working (i.e. the plugin versions where it last worked)?

#1373001

we just update the plugin 2 days ago. I don't remember what version that i have before

#1373003

Nigel
Supporter

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

Timezone: Europe/London (GMT+00:00)

OK, don't worry.

I've confirmed that it is not working and escalated this to my colleagues in second tier, who can try and identify when it stopped working and—more importantly—determine what is required for a fix.

For the record, you translate these Layout cell contents with Translation Manager, not String Translation (https://toolset.com/documentation/translating-sites-built-with-toolset/translating-layouts/), but it is currently not working.

#1373025

thanks, do you know when it will be fix?

#1373105

Nigel
Supporter

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

Timezone: Europe/London (GMT+00:00)

I can't say just yet until the problem has been identified, my colleague is looking into it, I should be able to update you on what they find in the morning.

#1373115

Thanks

#1373705

Nigel
Supporter

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

Timezone: Europe/London (GMT+00:00)

Screenshot 2019-10-31 at 08.42.44.png

Hi Garen

It seems that the way to translate Layouts has changed.

If you create a new site with current plugin versions, when editing a Layout in the language switcher in the admin toolbar you will now see an option to send the Layout for translation (see screenshot).

However, on my test site, and on your site, that option doesn't seem to appear after upgrading WPML.

Can you first check when editing your Layouts whether you see such an option in the language switcher.

If you do, great, that's how to translate your Layouts.

If not, I found on my site that you simply need to re-save the Layout to trigger that option.

To be able to save the Layout you would need to make some trivial edit to it first.

Can you let me know what you find?

#1373737
Untitled-5.jpg

I follow the steps but i don't find out how to update strings that are currently translated on the frontend. The fields for translations are empty but actually is translated check the attachment

#1373747

Nigel
Supporter

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

Timezone: Europe/London (GMT+00:00)

Could I take a look at your site myself?

I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

Which Layout should I try to translate to see the problem?

#1373799

Nigel
Supporter

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

Timezone: Europe/London (GMT+00:00)

Screenshot 2019-10-31 at 09.56.48.png

OK, I can see the problem. The existing translations appear to work on the front end, but they are not recognised in Translation Management in the backend (see screenshot).

I've taken a copy of your site so that we can investigate this further.

I'm passing it back to my colleague to investigate further, and I'll keep you posted.