Skip Navigation

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 topic contains 13 replies, has 2 voices.

Last updated by Long Nguyen 2 months, 4 weeks ago.

Assisted by: Long Nguyen.

Author Posts
August 8, 2024 at 8:54 am #16051291

harveyB

Background of the issue:
Hi, I am trying to translate translate the entries in the prices tables on the page hidden link. The tables are created using the Divi Table Maker from Elegant Themes. We have an issue to report and we have one question.

1. For some reason the table is showing messed up on the Dutch and Portuguese version of the page.
2. Where in WPML can we translate the entries for all the tables?

We have saved the tables as global in the Divi Library, but when we try to translate the entries, it only show the title above the table to be translated. No table entries.

Symptoms:
The price table on the other language versions are showing messed up.

Questions:
1. For some reason the table is showing messed up on the Dutch and Portuguese version of the page.
2. Where in WPML can we translate the entries for all the tables?

August 8, 2024 at 12:49 pm #16052753

harveyB

Hi Long Nguyen, thanks for reaching back on this ticket. Unfortunately you did not gave me the time to give an answer on your mentioning so you closed the ticket and Itamar had to reopen it.

Anyway..

You mentioned that you did not see the messed up table. If you scroll down a little bit more, you'll see it. The section is called: Pitches & rates. See screenshots.

You can see it better if you put the differences of the pages next to each other. The Dutch version of the page hidden link and the default hidden link or the Portuguese version hidden link

As you can see in the screenshots, the entries of the table needs be entered in stacked order within the editor, so it will show the entries in the table in the correct seperate order in each cell. For some reason, the Dutch and Portuguese showing all the entries in one cell.

Let me know your thoughts.

I hope we can work this out before you close the ticket.

Thanks!

Screenshot 2024-08-07 at 16.18.03.png
Screenshot 2024-08-07 at 16.16.56.png
August 9, 2024 at 1:22 am #16054603

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for more information.

It looks like this issue https://wpml.org/errata/line-breaks-are-ignored-when-using-the-advanced-translation-edior/

please use the workaround in the documentation or use the previous version of the translation editor and see if it helps.

Looking forward to your reply.
Thanks

Advanced Translation Editor - WPML 2024-08-09 08-20-40.jpg
August 9, 2024 at 11:47 am #16056287

harveyB

Hi Long Nguyen, unfortunately, we were not able to fix it by following the mentioned documentation and steps.

1. In screenshot 1 you see that we have tried to perform the steps as described in article: https://wpml.org/errata/line-breaks-are-ignored-when-using-the-advanced-translation-edior/ Forcing the text to reappear on the translator, that did not work.

2. In screenshot 2, you see that we have also tried to enable the use of the previous version of the translation editor. That also did not make the table entries visible in the translation function.

3. The XML trick as described in this article: https://wpml.org/documentation/support/language-configuration-files/?utm_source=plugin&utm_medium=gui&utm_campaign=wpmlcore , that is still something we have to try. Unfortunately, our developers are not available at the moment so this tryout have to wait until they will be back again.

4. I have put the English version of the Pitches price table back to the Dutch and Portuguese version on page hidden link so at least it is acceptable to read.

Please leave this ticket open, so when we try number 3, we can let you know if that works or not.

Screenshot 2.png
Screenshot 1.png
August 12, 2024 at 1:30 am #16060240

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Sure, this ticket will be open for two weeks. If you don't have a chance to try the XML configuration code, you can post your reply here to open the ticket.

In the meantime, can you share the site credentials (wp-admin and FTP)? I will help you to create a custom XML configuration code to translate the Divi module. Your next reply is set to private to share the info.
❌ IMPORTANT: Please backup your database and website before proceeding ❌

Looking forward to your reply.
Thanks

August 12, 2024 at 9:26 am #16061287

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

The WordPress admin user isn't correct. Can you please recheck this?

Thanks.

August 12, 2024 at 10:58 am #16061835

harveyB

Dear Long,

I'm so sorry, don't know what went wrong. Could you please try again, with the same credentials? I edited them and after that I logged in myself succesfully.

Yours sincerely,
Silvia

August 13, 2024 at 2:43 am #16064210

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I can translate the table maker content on your site to second languages and keep the same layout as in the English language. Here are steps I've done:

1. Add this custom XML configuration code to WPML > Settings > Custom XML Configuration to register the table maker content for translation:

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>dvmd_table_maker_item</tag>
      <attributes>
        <attribute>col_label</attribute>
        <attribute>col_content</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

2. In the ATE, disable the bigger segments https://wpml.org/errata/line-breaks-are-ignored-when-using-the-advanced-translation-edior/

3. Go to Divi > Library > Edit the layout entry and remove all br tags.

4. Translate the layout entry. Please check the attached screenshots.

Looking forward to your reply.
Thanks

Screenshot 2024-08-13 at 09.38.40 2024-08-13 09-39-09.png
Prijzen | Camping O Moinho 2024-08-13 09-33-35.png
August 20, 2024 at 6:13 am #16085695

harveyB

Dear Long,

I am still on it, but I'm not used to fixing items like this. I might have to consult my collegea, who is on vacation. (back in a few days).

Could you please not close this ticket yet?

Yours sincerely,
Silvia

August 20, 2024 at 7:29 am #16085853

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Yes, this ticket will be open for two weeks. If you come back later, you can post a reply here to open the ticket and so on.

Looking forward to your reply.
Thanks

August 26, 2024 at 9:45 am #16103735

harveyB

Hi Long, thank you for your patience on this one. After I did follow your steps, I stumbled on the following:

1. Where did you find the tag and attributes? We also have some small tables that needs to be included. See: hidden link

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>dvmd_table_maker_item</tag>
      <attributes>
        <attribute>col_label</attribute>
        <attribute>col_content</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

2. At the price layouts, the 'disable the bigger segments' were alle disabled in the ATE.

3. I was not able to remove the br tags on the tables. After removing them one by one, they returned. See also our page with all the price tables. And check each language Dutch, English and Portuguese. English don't show the br tags but the other languages do.

4. I was not able to translate the smaller tables. These tables are shown on multiple detail pages like: hidden link Please explain how to include this for translation as well.

Appreciate your help and support on this one.

We'll keep in touch!

August 27, 2024 at 3:18 am #16107114

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

1. If you access the database > table wp_posts > edit the post, you can see the post content that is built with Divi builder has the shortcode like this

[dvmd_table_maker tbl_responsive_break_by="row" tbl_responsive_display_as="accordion" tbl_frame_type="lines" tbl_frame_line_color="#FFFFFF" tbl_tcell_cell_color="#F5F5F5" tbl_chead_cell_color="#DD3333" tbl_rhead_cell_color="#DD3333" _builder_version="4.27.0" _module_preset="default" hover_enabled="0" tbl_tcell_text_font_size_tablet="" tbl_tcell_text_font_size_phone="10px" tbl_tcell_text_font_size_last_edited="on|phone" global_colors_info="{}" sticky_enabled="0"][dvmd_table_maker_item col_label="Accommodation" col_content="Accommodation<br />
Mobile Homes<br />
Mobile Homes<br />
Bungalow<br />" _builder_version="4.27.0" _module_preset="default" hover_enabled="0" global_colors_info="{}" sticky_enabled="0"][/dvmd_table_maker_item][dvmd_table_maker_item col_label="Pers" col_content="Pers<br />
4<br />
5<br />
4<br />
5<br />" _builder_version="4.26.1" _module_preset="default" global_colors_info="{}"][/dvmd_table_maker_item][dvmd_table_maker_item col_label="1 night" col_content="1 night<br />
€90<br />
€95<br />
€70<br />
...
**<br />
**<br />" _builder_version="4.26.1" _module_preset="default" global_colors_info="{}"][/dvmd_table_maker_item][/dvmd_table_maker]

there you can find the shortcode tag and attributes.

3, 4. For the accommodation post hidden link
I edit the Divi template and see that the price table is a Global module "Prices table small camper minivan". Then I go to Divi > Library > Edit the module > Remove the br tag from the content > Save > Update the translation module.
Now you can see the price table is translated as well.

Looking forward to your reply.
Thanks

Theme Builder ‹ Camping O Moinho — WordPress 2024-08-27 09-15-35.png
Screenshot 2024-08-27 at 10.11.29 2024-08-27 10-11-44.png
Camperbus | Camping O Moinho 2024-08-27 10-13-17.png
August 27, 2024 at 8:31 am #16108258

harveyB

Hi Long, thank you for this one. I tried your steps and it seems to be working. I still have to implement these on the other price tables as well, so please don't close this ticket yet.

See my video as well: hidden link

Once I managed to translate them all, I will let you know if everything was working.

August 28, 2024 at 1:03 am #16112331

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

I'm waiting for your feedback.

Thanks.

August 29, 2024 at 8:33 am #16118389

harveyB

Hi Long, the issue has been solved by following your steps.
Thank you so much for your support and patience on this one.

Appreciate your time. My team is grateful for this.

Harvey.