[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
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.
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.
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.
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)?
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.
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.
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.
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
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?
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.