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.

Sun Mon Tue Wed Thu Fri Sat
- 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 -
- 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 -

Supporter timezone: America/Lima (GMT-05:00)

Tagged: 

This topic contains 7 replies, has 3 voices.

Last updated by Nicolas V. 1 year, 10 months ago.

Assisted by: Nicolas V..

Author Posts
May 22, 2023 at 6:12 am #13686295

jaakI

Tell us what you are trying to do?
I want to translate Block Editor CoBlock Accordion Heading

The main language is Estonian and English is translation.

The page is: hidden link

In the EN page: accordion headings are not translated: hidden link

In the WPML Classic Editor: Accordion headings are translated
hidden link

How to fix this.

May 22, 2023 at 6:24 am #13686413

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Before assigning your ticket to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

By looking at the debug info you have attached, I see that your server WP Memory Limit is set to 40M. Our recommendations are to have the following as minimal requirements:

- PHP 5.6 and above (this OK with your installation) with a WP Memory Limit of at least 128MB while 256MB is recommended.

MySQL 5.6 and above.

Please follow this link for detailed documentation:

https://wpml.org/home/minimum-requirements/

Is it possible for you to change those to the minimum requirement?

You may need to contact your hosting provider for that. Meeting those baseline requirements is most critical before debugging and sometimes solves issues you experience. The most important thing is to raise the WP Memory Limit. Please try to raise it before you contact your hosting company. You can do it from the wp-config.php file in your WordPress installation. Insert this code in that file:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Add it before this line:

/* That's all, stop editing! Happy blogging. */

Could you please perform that procedure and see if it helps?

Regards,
Itamar.

May 22, 2023 at 9:10 am #13687539

jaakI

Memory limit is increased. This didn't make difference.

May 22, 2023 at 4:33 pm #13692851

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

My name is Nicolas and I will be happy to help you today.

Thanks for increasing the memory. If it didn't solve the issue then you probably need to register those blocks for translation as I couldn't find that plugin in our list of compatible plugins (https://wpml.org/plugin/).

1. The first thing you can check is if the block appears in "WPML > String Translation" and check if you can translate the block from here.

2. The second thing would be to register those blocks for translation in your Custom XML configuration file.
Ref: https://wpml.org/documentation/support/language-configuration-files/#gutenberg-blocks

If you need help with the second point, please provide me with a temporary admin access (wp-admin) – preferably to a test site where the issue has been replicated – so I can have a look.

I will activate a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting.

IMPORTANT: Before we proceed, please backup your site and database.

Thanks,
Nico

May 29, 2023 at 6:45 pm #13734905

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

I tried different solutions but unfortunately I couldn't solve the issue. It seems that CoBlock is not fully compatible (this plugin is not listed here: https://wpml.org/plugin/).

As a quick workaround, you can use the WordPress editor to modify those texts in your translations.

I will escalate this ticket to our compatibility team. However, please note that compatibility is a 2-way collaboration between the plugin authors and our team. Could you please contact the plugin authors on your end and report this issue?

Nico

June 2, 2023 at 11:16 pm #13763681

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

FYI, we found a solution for works for text but you are using HTML markers in this block title and that's why it's not working for you.
- Go to "WPML > Settings > Custom XML configuration
- Add the following code and save

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="coblocks/accordion-item" translate="1">
      <xpath>//summary[@class="wp-block-coblocks-accordion-item__title"]</xpath>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

I have reported that finding to the second tier support. I'm waiting their feedback.

Nico

June 5, 2023 at 5:32 am #13767337

jaakI

Hello,
Thank you for your feedback.
Unfortunately, this XML snippet doesn't help. The accordion headings are not translated (screenshot: hidden link). The screenshot is taken from the test.pannjakook.ee site.

June 5, 2023 at 3:02 pm #13772433

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

As I mentioned this XML snippet will work only for text. However you are adding HTML markup.

Our team is still investigating this issue. But maybe you could try to simply your HTML by removing some of the styling and add it directly in your CSS. Let me explain:
Your content looks like that:

<strong>Pannkoogitort - 2kg <mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-white-color">25€</mark></strong>

Maybe you can try to change it for :

Pannkoogitort - 2kg <mark>25€</mark>

And then in CSS:

.wp-block-coblocks-accordion-item__title {
    font-weight: bold;
}
.wp-block-coblocks-accordion-item__title mark {
    float: right;
   background-color:rgba(0, 0, 0, 0);
}

Let me know if it works.
Nico

The topic ‘[Closed] Translation doesn't appear’ is closed to new replies.