This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This thread is resolved. Here is a description of the problem and solution.

Problem:
Salient WPBakery Page Builder not translating image alt tags

Solution:
- Please open the following file wp-content/plugins/salient-core/includes/vc_templates/image_with_animation.php.
- Find this code:

extract(shortcode_atts(array(
  "animation" => 'Fade In',
  "delay" => '0', 
  "image_url" => '', 
  'alt' => '', 
  'margin_top' => '', 
  'margin_right' => '', 
  'margin_bottom' => '', 
  'margin_left' => '', 
  'alignment' => 'left', 
  'border_radius' => '', 
  'img_link_target' => '_self', 
  'img_link' => '', 
  'img_link_large' => '', 
  'box_shadow' => 'none', 
  'box_shadow_direction' => 'middle', 
  'max_width' => '100%',
  'el_class' => ''), $atts));

- Add this code just after:

$image_url = apply_filters('wpml_object_id', $image_url, 'attachment');

Tagged: 

This topic contains 15 replies, has 2 voices.

Last updated by basv-25 3 months, 2 weeks ago.

Assigned support staff: Andrés.

Author Posts
July 1, 2019 at 9:12 am

basv-25

Hi There,

Last Januari Bruno helped me with solving the issue that my Alt Tags didn't show up in the correct language (they stay in English).

Here a link to the previous (solved) issue: https://wpml.org/forums/topic/media-translation-23/

Now Salient did an update (10.5) and this solution doesn't work anymore because the file which I need to adjust isn't there anymore.

Can you help me with a fix?

I have created a staging site for you,

Thanks,

July 1, 2019 at 9:38 am #4117179

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Hello there,

Welcome to WPML support forum.

I've checked your situation and it seems that the last update of your theme moved the file nectar/tinymce/shortcode-processing.php, thus, the solution is not longer working.

At the moment I'm contacting our Compatibility team to check this situation again, could you contact your theme support and see if it possible to downgrade your theme on the meantime?

Best regards,
Andrés

July 1, 2019 at 9:50 am #4117487

basv-25

Hi Andres, thank you for your prompt reply, hereby the debug information.

I have reported this problem also to Salient. Would be nice if WPML and Salient find a solution that is future proof.

Thanks for helping!

July 1, 2019 at 9:52 am #4117539

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Thank you for your help, I'll keep you posted. 🙂

July 1, 2019 at 3:28 pm #4120841

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Hello again,

I have received a feedback and we need to replicate this situation. That's why I have created a test website with a clean WordPress install. You can access it through this link:
hidden link

Please upload your Salient WPBakery Page Builder and Salient theme. to this test install and setup it the same way as in your website. In this way we can check if this is a compatibility issue.


Please note that we only need these extensions and the related functionality, you don't need to setup a entire website or clone your existing site.

Thank you for your help!
Andrés

July 2, 2019 at 8:27 am #4124955

basv-25

Hi Andres, I added Salient to the test environment. Good luck!

July 2, 2019 at 11:40 am #4126397

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Hello there,

Thank you again, I was able to reproduce it again. It seems Envato has moved this in another section. I will forward the details to our Themes & Plugins Compatibility Team and they will contact the author.

Regards,
Andrés

July 2, 2019 at 11:50 am #4126501

basv-25

Hi Andres, hope they will find a fix.
Thank you for your help

July 2, 2019 at 1:04 pm #4127211

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Perfect, I'll keep you updated!

July 3, 2019 at 1:57 pm #4137139

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Hello there,

I got a new feedback! 🙂

- Please open the following file wp-content/plugins/salient-core/includes/vc_templates/image_with_animation.php.
- Find this code:

extract(shortcode_atts(array(
  "animation" => 'Fade In',
  "delay" => '0', 
  "image_url" => '', 
  'alt' => '', 
  'margin_top' => '', 
  'margin_right' => '', 
  'margin_bottom' => '', 
  'margin_left' => '', 
  'alignment' => 'left', 
  'border_radius' => '', 
  'img_link_target' => '_self', 
  'img_link' => '', 
  'img_link_large' => '', 
  'box_shadow' => 'none', 
  'box_shadow_direction' => 'middle', 
  'max_width' => '100%',
  'el_class' => ''), $atts));

- Add this code just after:

$image_url = apply_filters('wpml_object_id', $image_url, 'attachment');

Does it work this time?

July 3, 2019 at 2:18 pm #4137261

basv-25

Hi Andres,
Can you help me with this? Where do I need to paste the code? Please see attachment. If I place the code there, the site crashes. Thanks

July 3, 2019 at 2:19 pm #4137295

basv-25

ps in the first message I have added my SFTP details of our staging area, maybe you can test it there if it works?

July 3, 2019 at 2:21 pm #4137315

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

The error is caused by a copy/paste issue. In your screenshot I can see some special characters (&#39) that shouldn't be there.

Could you try to type them this time or eliminating the wrong characters instead?

Regards

July 3, 2019 at 2:28 pm #4137339

basv-25

Hi Andres,

You're right, it now works perfect, super!

How is this handled in the long-term? I think once a new Salient comes out the problem is the same, or not?

Thanks!

July 3, 2019 at 3:42 pm #4137981

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

I'm glad to know that it works fine this time. 🙂
The author has been contacted and he should include this fix in his code.

Regards,
Andrés