Skip Navigation

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

Relevant Documentation: https://toolset.com/2020/09/toolset-blocks-1-3-woocommerce-post-relationships-wpml/

This support ticket is created 4 years, 1 month 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 9 replies, has 3 voices.

Last updated by katjaL 4 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#1796373

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.

#1796537

Nigel
Supporter

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

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

The latest updates include new workflows for translating Toolset content (see announcement: https://toolset.com/2020/09/toolset-blocks-1-3-woocommerce-post-relationships-wpml/).

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

#1799267
Screenshot 2020-10-04 at 11.43.45.png
Screenshot 2020-10-04 at 11.43.35.png

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.

#1799381

Okay I'll be glad to take a closer look if you would like to provide login credentials in the private reply fields here.

#1800259

Hi, could I get the private message activated again so I can give the login. Sorry for the delay, now I have the login credentials.

#1800269

Sure, private reply fields are active again here.

#1800357

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.

#1800415

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 %?

#1800437

Yes that is correct, you must translate 100% of the content.

#1800439

My issue is resolved now. Thank you!