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.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 3 replies, has 2 voices.

Last updated by Rajeeb Banstola 3 months, 2 weeks ago.

Assigned support staff: Rajeeb Banstola.

Author Posts
July 3, 2019 at 12:26 pm #4136197

martinV-32

Hello support,

I wanted to translate "elementor-price-list-price", see the screen, but I do not have any option to do so, because these fields are not displayed for translation.

I added this code into my functions.php, but it did not make any chenges either.

class WPML_Elementor_Price_List extends WPML_Elementor_Module_With_Items {

/**
* @return string
*/
public function get_items_field() {
return 'price_list';
}

/**
* @return array
*/
public function get_fields() {
return array( 'title', 'item_description', 'link' => array( 'url' ), 'price' );
}

/**
* @param string $field
*
* @return string
*/
protected function get_title( $field ) {
if ( 'title' === $field ) {
return esc_html__( 'Price list: title', 'sitepress' );
}

if ( 'item_description' === $field ) {
return esc_html__( 'Pricing list: description', 'sitepress' );
}

if ( 'url' === $field ) {
return esc_html__( 'Pricing list: link', 'sitepress' );
}

if ( 'price' === $field ) {
return esc_html__( 'Pricing list: price', 'sitepress' );
}

return '';
}

/**
* @param string $field
*
* @return string
*/
protected function get_editor_type( $field ) {
if ( 'title' === $field ) {
return 'LINE';
}

if ( 'url' === $field ) {
return 'LINK';
}

if ( 'item_description' === $field ) {
return 'AREA';
}

if ( 'price' === $field ) {
return 'LINE';
}

return '';
}
}

Please hep me solve this. Thank you.

July 4, 2019 at 1:15 am #4139391

Rajeeb Banstola

Hi,

Thank you for contacting WPML!

When new text are added to the site, sometime they are not added automatically, so you need to follow the below steps:

1. Go under “WPML -> Theme and plugins localization”
2. Make sure that “Translate themes and plugins using WPML's String Translation only” is active
3. Scroll down to “Strings in the theme” and click on “Scan the theme for strings”
4. Scroll down to “Strings in the plugins”, select all plugins and click on “Scan the selected plugins for strings”
5. Once you followed the above steps go under “WPML -> String Translation”. All strings available for translation should display in the table you see there.

Now search for all the texts you want to translate and make sure all of those are translated and marked as complete.

Let me know how this goes!

July 4, 2019 at 5:24 am #4140365

martinV-32

Hello,

I did what you said but it did not helped.

I updated the site that uses "price list" in default language and then the fileds appeard so I was able to translate it.

But the "price table" is still not displayed for translation.

The code in functions.php is probably missing something.

Please help me solve that.

Thank you.

July 6, 2019 at 7:45 am #4155255

Rajeeb Banstola

Hi,

The price fields are set to copy to translation by default in Elementor and thus not available for translation. This is Elementor's expected behavior. If the above code didn't help, I suggest you to consider moving the request to custom development as these requests are out of scope for our support.

If you want to proceed with custom development, you can take a look here for WPML contractors:

https://wpml.org/contractors/

Best,