Skip Navigation

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

Problem:
The client is trying to detect strings for translation within a Bricks Builder element named "code". The client attempted to use existing documentation for Elementor and HTML but found that these guides did not work for their specific case.

Solution:
We are currently in communication with the theme author to address this issue. In the meantime, we recommend a manual translation method.
https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/
If this solution does not seem relevant to your situation, please feel free to open a new support ticket with us.

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.

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by Dražen Duvnjak 10 months, 3 weeks ago.

Assisted by: Dražen Duvnjak.

Author Posts
January 11, 2024 at 11:37 am #15173812

kalleV-3

1. Tell us what you are trying to do?

I'm trying to detect Bricks Builder element (named "code") to detect strings for translations.
I tried playing around with configuration, but with no success.

2. Is there any documentation that you are following?
Tried to follow these 2 guides, but 1 is for elementor and the other one is just for HTML, neither of them work
- https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/
- https://wpml.org/forums/topic/translate-html-code/

Enabling the 'JSM Show Post Metadata' plugin I followed from the instructions in one of the articles and I see that:
Post metadata is inside the following part and I want to get the data from value field "code" for translations ...
--------------------
key: "_bricks_page_content_2"
value:
<omitted for brevity>
...
4 =>
array (
'id' => 'pmcvwx',
'name' => 'code',
'parent' => 'qtdefm',
'children' =>
array (
),
'settings' =>
array (
'code' => ' <p>No reliance on past performance:'
...
<omitted for brevity>
-------------------

January 12, 2024 at 8:03 am #15177497

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for contacting us.

Code elements should not be translatable as the code should be the same in both languages and not translated., but let me check it out and try to help.

I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons.

You can access the WordPress dashboard using the link below:
- hidden link

Kindly follow the steps below:
- Set up WPML
- Install Bricks
- Try to replicate the issue with simple example
- Share with me step by step guide on how can I check the issue

Regards,
Drazen

January 12, 2024 at 8:56 am #15177842

kalleV-3

Hey !
Thanks for helping us. Yes, I understand that translating the code element is not ideal, but since we have a lot of content which requires customization for lists for example, we need it to be effective in our job. Also can choose what pages we translate and what content from it. That being said, we try to minimize such usage where possible.

1. Configured WPML with a single language to translate to.
2. Added Bricks Builder as the theme.
3. Created a "TEST PAGE" with "code" element and content inside.

How to replicate:
When opening up the "TEST PAGE" translations, it doesn't detect anything beside the name of the page. Uploaded also picture which makes it clear what I'm talking about.

Kind regards,

Screenshot 2024-01-12 105229.png
January 12, 2024 at 9:29 am #15177959

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for taking the time and reproducing it.

I have escalated it to our compatibility team for them to check further.

Regards,
Drazen

January 15, 2024 at 7:26 am #15183150

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

our team checked and it is expected that code widgets are not translatable. Checking other themes like Divi, code widgets are also not translatable.

There is no easy workaround, other than using some other widget or using a manual method (https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/).

Regards,
Drazen

January 15, 2024 at 7:45 am #15183241

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

we are also contacting Bricks authors for an update and if possible to make the code block translatable.

I will update you when I have more news.

It would be good if you also contact the theme support as well and explain why is important to render that widget translatable.

Regards,
Drazen

January 15, 2024 at 10:11 am #15184115

kalleV-3

Alright thanks,
I've created this ticket to Bricks forum in regards to this issue and sent them an email regarding this ticket.
hidden link

January 15, 2024 at 10:30 am #15184215

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks, I will update you when I have some news.

Regadrs,
Drazen

January 15, 2024 at 2:22 pm #15185766

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

just to update you, we are in contact with the theme author and he will update you directly upon in support ticket for any new changes or new features in the code.

For now, we can only suggest a manual translation method.

Regards.
Drazen