[Resolved] Translate button text in content template
This thread is resolved. Here is a description of the problem and solution.
Problem: I am trying to translate my Content Template using WPML's translation editor, but my translated content does not appear on the site.
Solution: Be sure to translate 100% of the template fields. Partial template translations will not appear on the front-end of the site. Only complete template translations will appear.
I have a pretty complicated content template made with block editor and there are some dynamic buttons which text should be translated to 2 extra languages. Languages are defined with WPML. I know how to create translatable strings with classic Toolset editor, but how can these button texts in Gutenberg editor be translated? WPML's String translation doesn't find them even though I've scanned with different options. I definetly wouldn't want to be forced to translate the whole content template because of this button text. Because there might still be changes in the content template and I should make the changes to 3 content templates instead of one.
Instead of using String Translation to translate individual texts, you send the entire template (or View, or Form, or custom archive) to the translation editor to translate all of the included texts in one place (and if using WPML's Advanced Translation Editor the interface is pretty slick and easy to use).
Send the template for translation, and translate the texts. You won't then maintain 3 different templates, but you will need to maintain the translations, i.e. if you make changes to the default language template you will need to update the translations as required. (Currently any changes to the template will require you to update the translations, we have an improvement coming where it is only changes that actually modify the included text which mean you need to update the translation, that was something of an oversight in the initial version.)
Thank you Nigel. I installed now WPML translation management and IMHO did what needed to be done, but still translations don't show in buttons. I also cleared the caches WP Rocket and WPML translation cache. In translation management buttons seem to be translated in frontend not, please check screenshots.
Hi, I completed the translation for English and now I can see the English button text appear here: hidden link
My guess is that you didn't complete the translation, so the originial text was still shown. You must complete the translation to show the translated text.
Hi Christian, thank you! Is there still another button I missed with this new workflow? I did activate all the buttons "translation is complete" as in screenshots and saved. The translation was about 50 % or so. I now opened the translation and it shows 100 % translated. Is this the reason why they show now and not before, translation has to be 100 %?