WPML translation job looses layout.

I am trying to use WPML with Beaver Builder.

I sent a page to a translation service via WPML translation management.

The translation was completed by the third party and returned to WPML.

The resulting translated page appears to be the text content Beaver Builder generates when downgrading to text only posts.

Is there a way to have the beaver builder post translated and maintain the layout and post_meta?

Hi Brain,

I am not familiar with the WPML plugin unfortunately. However, it is my understanding that Beaver Builder is compatible with the plugin, one of our developers replied to a topic which I have linked below.

However, from your description and my vague familiarity with the WPML plugin. I was of the assumption that the WPML plugin creates a duplicate of the page, post etc… which you can then translate.

If you have used a third party, then it is likely they have used a different method. Would it be possible for you to contact them and ask how they performed this translation, please?

Thanks,
Danny

This is not the regular local translation of pages.

In this case, the content is sent to a translation company, through a WPML feature. WPML offers the ability to have our pages translated by professionals and returned to WP…

It uses a format called XLIFF and it’s referred to here: https://wpml.org/documentation/translating-your-contents/using-desktop-cat-tools/configuring-xliff-file-options/

Hey Gerard,

Thanks for jumping in! :slight_smile:

Brain Bytes,

Can you share with us how that process works? Do they just translate the contents of the page using the XLIFF files, send it to you, and you upload the XLIFF files?

Ben

All of that is automated via WPML.
(This is the main reason we use WPML not for its ability to duplicate posts.)

But technically I believe it is doing that under the hood.
I know you can manually export the translation jobs to .xlf files.

Basically it boils down to the fl_builder_data post_meta is not getting translated and it is taking the text content of the post beaver builder generates when it is disabled.

One solution I thought of was:

  1. WPML requests the_content() of the post for translation.
  2. BB returns a special serialized version of the post_meta that can be deserialized into BB post_meta
  3. The translator translates the special serialized version of the post
  4. The translator returns the content of the post
  5. BB deserializes the response into post_meta.

I am using serialized in a strange way here because the serialized view would be readable by humans. So possibly it serializes to XML

Hey Brain Bytes,

Do you think you can send us a copy of a sample XLIFF file through hello [at] wpbeaverbuilder [dot] com so the guys can have a look? :slight_smile:

Ben

Hey Brain Bytes,

Sorry for the delayed reply. So our lead dev just checked the file you sent and it seems it would be a big project if we’re to implement it. He’s looking at working on it the future. If you’ve a minute, you can put this up as a feature request on our User Voice so we can keep track of it. :slight_smile:

Ben

[Content Hidden]

No worries! Let us know what you find and/or if you need anything further! :slight_smile: In the meantime, have fun with BB! :slight_smile:

Ben