Translate component parameter with WPML

Hello,

I have a Button that is a component, and it has title and URL as parameters. So when I use this component (a button) I only need to add the Title (the text in the button) and the URL.

When I translate a page containing these buttons with WPML, the link of the button gets automatically translated or updated to the correct translated page, BUT I can’t translate the text for the button.
It doesn’t appear in the WPML translation inteface, so I can’t translate the text of the button.

Thank you

Hey @llribas,

We would be happy to log in to your site and double check the translation of your page and components on the page in the builder. You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
– Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

image

Best Regards.

here you have the info, thank you

Hey @llribas,

Did you do your translation in WPML or in the Cornerstone builder? We have two ways to translate the page. Since you have a component that needs a parameter, you will need to duplicate the page use the builder to translate the page. Kindly check out this documentation first:

Best Regards.

Hello,
I did the translations using WPML, since it’s supposed now we can translate Cornerstone pages with WPML (after years waiting), so then we can use automated translation and also: if we do an layout or desing change we don’t need to do it multiple times (for each language), simplyfig a lot the process of maintaining the website.

For the rest it works fine, but not for components. In fact the link of the button is also a parameter, but it gets well translated automatically, just need a way to get the parameter “button text” translated!
Please, take note for this feature!

thanks

Hi,
i had/have the same problem. all works well with wpml except components. I contacted the support aswell and charlie wrote back to me (hope it is okay to post that here):

It’s a pretty serious rewrite of Components to get them translating. It would be nice to make progress on it by the end of the year.

When twig is enabled as well as the WordPress extension you can use the __ function directly.

{{ __('Your translated text') }}

Then with PoeEdit or some way to create translation files for WordPress, you can translate through WordPress. It’s not an ideal solution, but it works for advanced use cases or as a workaround for Components. Let me know if that helps.

i wrote charlie again, if he can give me an example. :slight_smile:

Hey @llribas,

I will forward this to our developer @Charlie. He might have something to add or suggest. And yes, it will be made as a feature request.

Best Regards.

Hello @ruenel,
Ok please, forward this issue and lets see.

thank you

You’re welcome, @llribas

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.