Please make sure to update to WPML 4.3.4 before reporting any issue

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

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 27 replies, has 4 voices.

Last updated by Alejandro 1 month, 4 weeks ago.

Assigned support staff: Alejandro.

Author Posts
September 2, 2019 at 9:22 am #4495677

ilkaB

I am trying to:
I have created a page using Elementor. This page has a table created with Essential Elementor Addons (hidden link)
I am now trying to use WPML to translate the table content but the translation option on the page editor is only showing me the topic of the page but not the table.

Link to a page where the issue can be seen:
Page not online.

I expected to see:
Entries in rows and colums to be able to translate it

Instead, I got:
Only the page title to translate but nothing else.

I have created a short video showing the problem:
hidden link

How can I translate the table content with WPML?

September 4, 2019 at 3:58 pm #4512721

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

Hi,

please add this code to your theme's functions.php file, then update the page with the table and see if you can see it in the translation editor.

function your_functions_name($widgets) {
$widgets['eael-data-table'] = [
'conditions' => ['eael-data-table'],
'fields' => [
[
'field' => 'eael_data_table_header_col',
'type' => __('Controls_Manager::TEXT', 'sitepress'),
'editor_type' => 'AREA'
], 
[
'field' => 'eael_data_table_header_col_span',
'type' => __('Controls_Manager::TEXT', 'sitepress'),
], 
[
'field' => 'eael_data_table_header_col_icon_enabled',
'type' => __('Controls_Manager::SWITCHER', 'sitepress'),
'editor_type' => 'AREA'
], 
[	
'field' => 'eael_data_table_header_icon_type',
'type' => __('Controls_Manager::CHOOSE', 'sitepress'),
], 
	[
'field' => 'eael_data_table_header_col_icon_new',
'type' => __('Controls_Manager::ICONS', 'sitepress'),
], 
[
'field' => 'eael_data_table_header_col_img',
'type' => __('Controls_Manager::MEDIA', 'sitepress'),
], 
[
'field' => 'eael_data_table_header_col_img_size',
'type' => __('Controls_Manager::NUMBER', 'sitepress'),
], 
[
'field' => 'eael_data_table_header_css_class',
'type' => __('Controls_Manager::TEXT', 'sitepress'),
], 
[
'field' => 'eael_data_table_header_css_id',
'type' => __('Controls_Manager::TEXT', 'sitepress'),
], 
],
];

	return $widgets;
}
September 5, 2019 at 8:37 am #4516999

ilkaB

Hi Laura,

I have added your code at the end of /wordpress/wp-content/themes/onepress/functions.php
and tested with the advanced and classic translation editor.

Both are not working, sorry. There is still no table box.

September 5, 2019 at 10:00 am #4518171

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

Hi,

did you try to do a small update to the original page and only then edit the translation?

As you can see here hidden link

it's working with the Classic editor at least.

September 5, 2019 at 2:47 pm #4520249

ilkaB

Hi Laura,

I have edited the page title and also loaded the page in Elementor and updated the content of the table. Saved both but still I cannot translate.

September 5, 2019 at 4:00 pm #4520657

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

Hi,

would be possible for you to do a compatibility check?
- backup your site
- disable all plugin except Elementor, Essential Elementor Addons, WPML and its addons
- switch to a default theme like TwentySeventeen
- check if the issue is happening again
- if it's not, reactivate your plugins one by one, checking every time if the issue shows up again
- lastly, reactivate your theme

September 5, 2019 at 4:14 pm #4520711

ilkaB

Hi Laura,

the page I am running is a live company page. I do not see a way to disable everything and run a default theme 🙂

Is there another way we can test this?

Kind regards
ilkaB

September 6, 2019 at 11:43 am #4525051

ilkaB

Hi Laura, do you have any update here?

September 7, 2019 at 7:21 am #4528701

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Hello,
Laura is off so I'll take over this ticket if you don't mind.

Could you please recreate the problem in this sandbox site?

hidden link

You just need to add elementor in there and add the table widget on a page.

This widget is most likely coming from "essential add-ons for Elementor " and is probably not registered and since this is a dynamic table, it requires a more complex registration process so we will have to send it to our developers.

Please let me know when you did so and if you e counter any issue along the way, don't hesitate to let me know.

September 7, 2019 at 1:15 pm #4529343

ilkaB

Hi Alejandro,

I have installed Elementor, Elementor Essential Addons and our OnePress Theme.
Here you find a page with EA DATA TABLE Widget that I need and which does not show up if you try to translate it:
hidden link

I hope that helps.

Kind regards
ilkaB

September 9, 2019 at 9:24 am #4535259

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Ok, i think the problem was just some missing code:

please add this in your theme's functions.php (instead of the code laura gave you):

add_action('init', function (){
add_filter( 'wpml_elementor_widgets_to_translate', 'your_functions_name' );
});

function your_functions_name($widgets) {
$widgets['eael-data-table'] = [
'conditions' => ['eael-data-table'],
'fields' => [
[
'field' => 'eael_data_table_header_col',
'type' => __('Controls_Manager::TEXT', 'sitepress'),
'editor_type' => 'AREA'
], 
[
'field' => 'eael_data_table_header_col_span',
'type' => __('Controls_Manager::TEXT', 'sitepress'),
], 
[
'field' => 'eael_data_table_header_col_icon_enabled',
'type' => __('Controls_Manager::SWITCHER', 'sitepress'),
'editor_type' => 'AREA'
], 
[   
'field' => 'eael_data_table_header_icon_type',
'type' => __('Controls_Manager::CHOOSE', 'sitepress'),
], 
    [
'field' => 'eael_data_table_header_col_icon_new',
'type' => __('Controls_Manager::ICONS', 'sitepress'),
], 
[
'field' => 'eael_data_table_header_col_img',
'type' => __('Controls_Manager::MEDIA', 'sitepress'),
], 
[
'field' => 'eael_data_table_header_col_img_size',
'type' => __('Controls_Manager::NUMBER', 'sitepress'),
], 
[
'field' => 'eael_data_table_header_css_class',
'type' => __('Controls_Manager::TEXT', 'sitepress'),
], 
[
'field' => 'eael_data_table_header_css_id',
'type' => __('Controls_Manager::TEXT', 'sitepress'),
], 
],
];
 
    return $widgets;
}

make sure when you paste this code that the single quotes are correct and they look like this:
" ' " instead of looking like this: " ‘ " otherwise you risk breaking your site or just having an unusable code.

Regards.

September 9, 2019 at 10:32 am #4535963

ilkaB

Hi Alejandro,

I changed the file and uploaded it.
I have edited the page and saved it and then tried to use the translation function.
Still there is no table showing up to translate.

I am sorry but the code is not working for me 🙁

September 9, 2019 at 10:34 am #4535969

ilkaB

btw. did you update the sandbox page with the code above?
I do not see it working on the sanbox wp installation too.

September 9, 2019 at 2:03 pm #4537819

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

I was working on another sandbox (the one Laura had created before and that i had missed. sorry!)

but you're right. for some reason it worked before but then it stopped working. i tested it on the new sandbox and it stopped there as well.

Let me try something else and i'll update you when i have something.

September 9, 2019 at 5:07 pm #4539203

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

One of our team is taking a look at it with the new details i gave them and i hope to get an answer soon.

I'll update you as soon as i have something.