Skip Navigation

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

Problema:
El cliente tiene problemas con la traducción de los títulos de los acordeones generados por el plugin Essential Blocks. Aunque el contenido del acordeón está traducido, los títulos siguen apareciendo en inglés en el front-end, a pesar de haber sido traducidos tanto en el Advanced Translation Editor como en WPML > String Translation. El cliente ya ha intentado aumentar el límite de memoria y volver a traducir las cadenas, pero el problema persiste.

Solución:
Primero, sugerimos al cliente que:
1. Edite la página en el idioma predeterminado y realice un pequeño cambio, luego actualice.
2. Acceda a la traducción, asegúrese de que esté al 100% y publique.
3. Verifique si todo el contenido está listado y disponible para traducción en el editor de traducción.

Después, proporcionamos una configuración XML personalizada para que el cliente la agregue en WPML->Settings->Custom XML configuration:

<wpml-config><br />  <gutenberg-blocks><br />    <gutenberg-block type="essential-blocks/accordion-item" translate="1"><br />      <key name="title"/><br />      <xpath label="Accordion Title">//*[@class="eb-accordion-title"]</xpath><br />    </gutenberg-block><br />  </gutenberg-blocks><br /></wpml-config>

Luego, el cliente debe editar el título del acordeón y traducir la página de nuevo. Para registrar correctamente las cadenas en el Advanced Translation Editor, generalmente es necesario configurarlas a través de un archivo XML. Nuestros documentos sobre archivos de configuración de idiomas pueden proporcionar más detalles.

Además, hemos contactado al equipo de Essential Blocks y sugerimos al cliente que también los informe sobre el problema y los dirija a nuestro programa Go Global para ayudarlos a ser compatibles con WPML.

Si la solución proporcionada no es relevante debido a que está desactualizada o no se aplica a su caso, le recomendamos abrir un nuevo ticket de soporte. También recomendamos revisar los problemas conocidos, verificar la versión de la solución permanente y confirmar que ha instalado las últimas versiones de temas y plugins.

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

Last updated by Bobby 1 year, 4 months ago.

Assisted by: Bobby.

Author Posts
February 5, 2024 at 5:31 pm #15267817

helenC-4

We are having problems with translations for accordion titles, e.g. on this page: hidden link (password: translate24). As you'll see, the accordion titles are all still in English although the accordion content itself has been translated. The strings appear to have been translated in both the Advanced Translation Editor and via WPML > Strings but these don't appear on the front-end. We're using the Essential Blocks plugin to generate accordions.

Our developer has followed the steps outlined at https://wpml.org/faq/why-arent-my-translated-strings-showing-up-on-the-front-end-of-my-site/ - i.e. increased the memory limit, deleted the selected strings & re-translated them, but the problem persists.

Is there anything else that you can suggest?

Thanks.

accordion-translation.png
February 5, 2024 at 10:25 pm #15268497

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi,

Please try the following and let me know your results:

- Edit the page in the default language and make a small change then update

- Access the translation, make sure it's set to 100% and publish.

In the translation editor, do you currently see all the content listed and available for translation?

February 6, 2024 at 10:04 am #15270264

helenC-4

Thanks for your suggestion. Unfortunately, it has made no difference. (I've also checked in a different browser in case of caching).

I can confirm that the translation is set to 100% and that all the content, including the accordion titles, is visible and translated in the Advanced Translation Editor (as well as via WPML > String Translation).

February 6, 2024 at 9:50 pm #15273936

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

February 7, 2024 at 7:13 pm #15278687

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the access details!

Go to WPML->Settings->Custom XML configuration (tab at the top) and add the following:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="essential-blocks/accordion-item" translate="1">
      <key name="title"/>
      <xpath label="Accordion Title">//*[@class="eb-accordion-title"]</xpath>
    </gutenberg-block>    
  </gutenberg-blocks>
</wpml-config>

Then edit the title of the accordion and translate the page again.

To properly register strings in the Advanced Translation Editor, they usually need to be configured through an XML file. Your developers can dive deeper into how this works by checking out our documentation here:
https://wpml.org/documentation/support/language-configuration-files/

The XML configuration I've provided addresses the issue you're facing. Additionally, our team has contacted the Essential Blocks team regarding this matter. If you could also inform them about the issue and direct them to our Go Global program, we'd be eager to assist them in becoming WPML-compatible.
https://wpml.org/documentation/support/go-global-program/

February 8, 2024 at 10:37 am #15280534

helenC-4

Thank you so much. That has fixed the problem (and based on your code, our developer was able to fix the same issue for Essential Block 'advanced tabs' too).