PRO - WPML ADVANCED TRANSLATION - Issue with Links

Hi there,

I’m in the process of translating this website:

https://apssolutions.hu/

I translated some of the webpages to english using WPML’s advanced translation editor. I kept getting warnings telling me not to use PRO’s interface, as making a change in the hungarian version will overwrite the translated english version each time it’s updated.

So, I went ahead and used the advanced translation editor included in WPML.
The issue is, that this method does not allow / support translating many elements. For example, subheadlines, and links.

  1. How can I fix this? I need these elements translated.

  2. Also, for the future, is there a workaround to just not use WPMLs advanced translation manager, and use just PRO like it used to be?

Thanks!

Hey @Pbalazs89,

  1. This will be fixed in one of the coming releases. All elements by that time have been fully audited and anything that needs to be translated can be translated.

  2. You can still do the old method of using the translation flags. Please just note that we’ll be discontinuing the support for it.

Hi there,

  1. When is this release happening? Should I wait or continue with Solution 2?

  2. In case of using solution 2, the issue is that if I translate it with this method, and then make a change in hungarian, the whole english translation will update as well. How can this be circumvented?

Hi @Pbalazs89,

You can turn on TWIG if you already haven’t, and use the string function instead: like {{ __('Your String Here', 'elements_domain') }}

With that, turn on WPML > String Translation > Translate Unregistered Strings temporarily, and browse the places where your strings are, to get them registered. Then turn the option off. Now you should find your strings to translate under the elements_domain.

Hope this helps (I’m not the official support, just saw your question).

1 Like

Hello @Pbalazs89,

Our Dev Team is currently testing for the next release. We do not have an ETA on the release date, though. You may check out @Misho’s suggested resolution.

Thanks.

Hi there, Thanks for the reply! Can you tell me how / where I can turn on TWIG?

Hi @ruenel!

On some pages, I also have a separate issue that I’d appreciate you helping me with:

https://apssolutions.hu/en/products/

For example, some subheadlines are not visible in WPML’s translation.

I tried adding this to Custom XML:

cs_content_seo _x_builder_json _cornerstone_data _cs_element_data _cs_meta_json _x_generated_css _cs_generated_css _cs_generated_js _x_post_css _edit_lock _edit_last cs_global_block

Is there something I can add to this xml editor so it recognizes these (subheadline) fields as well?

Hey @Pbalazs89,

That possibly could be resolved by the update. Please stay tuned.

I currently have no way of finishing the translation until the next update is released?

Hey @Pbalazs89,

Regretfully, yes. This currently requires custom coding which can be provided in our One service.

Hi there,

May I ask, is there a date yet for the new release?

Most likely Monday or sometime next week. Have a great day.

Hi @charlie. So I updated to 6.8 and this fixed 95% of my issues. Big thanks to the team.
However, one issue remains unfortuantely.

I don’t seem to be able to translate the links on the homepage.

So as an example:

https://apssolutions.hu/ -here, there are 4 boxes on the top of the page. They all link to a different page. If I switch over the english. I’m able to switch the text inside, but not the URL. I tried setting WPMLs translation editor to show all links, but it doesn’t help either. Can you help?

1 Like

Music to my ears most of your issues are gone. I am marking column hrefs as translatable links. I see WPML isn’t translating layout type data, only their children. Let me reach out to them and get that updated. If you have a staging environment, why don’t you double check for me that’s the issue. Place this in a child theme and it should let you translate those links.

    add_filter('wpml_cornerstone_layout_types', function() {
      return [];
    });
1 Like

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