This thread is resolved. Here is a description of the problem and solution.
Problema:
El cliente intenta traducir campos personalizados avanzados (ACF) y, aunque los ha traducido en las traducciones de cadenas, en el frontend siempre se muestran en el mismo idioma.
Solución:
Si estás experimentando esto, recomendamos que realices la traducción desde el editor de traducción. Este proceso solo es necesario hacerlo una vez, ya que las traducciones de las opciones se almacenan en la memoria de traducción. Hemos creado un video tutorial para guiarte en este proceso:
Video tutorial para la traducción de ACF
Además, puedes consultar la documentación correspondiente para obtener más detalles:
Documentación para traducir sitios construidos con ACF
Si esta solución no parece relevante, por favor, abre un nuevo ticket de soporte en nuestro foro de soporte de WPML.
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: Documentation request
This topic contains 22 replies, has 3 voices.
Last updated by bokeB 1 year, 6 months ago.
Assisted by: Paola Mendiburu.
Author | Posts |
---|---|
December 4, 2023 at 10:36 am #14985327 | |
bokeB |
Tell us what you are trying to do? In a simple product page, the custom fields are in summary. In link example, custom fields are these: (The first part, for example "Piel", is translated, because this label isn't a custom field, it's a text into code. The other part "Vacuno" is the part not translated and where I need to help) Is there any documentation that you are following? What is the link to your site? |
December 4, 2023 at 11:07 am #14985551 | |
bokeB |
I send you an image with the code where I display the custom fields. |
December 4, 2023 at 5:59 pm #14990393 | |
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hello, Thank you for sharing the information. As for the screenshot you sent, everything seems to be in order, as the strings are prepared to be translated. I noticed that your website does not meet the memory minimum requirements for WPML, which can lead to translations not showing on the Front End. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set WP Memory Limit in your wp-config.php file by adding following code: define( 'WP_MEMORY_LIMIT', '256M' ); define( 'WP_MAX_MEMORY_LIMIT', '512M' ); See https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php for details. Increasing WP Memory may help improve the performance and sometimes also help resolving such issues. You should re-save the translations to see if this solution will work. Please let me know if this helps resolve the issue. Or I'll try my best to further assist you on the matter. |
December 5, 2023 at 10:41 am #14995651 | |
bokeB |
Hi, I used this parameters, and as well I made the php.ini file to indicate memory limit of php server, because it had assigned the value -1, and the plugin didn't read it correctly. I changed translation string and it was saved, but in frontend translationt isn't showed yet. |
December 5, 2023 at 7:26 pm #15002423 | |
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hello, Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you. IMPORTANT - Please make a backup of site files and database before providing us access. hidden link |
December 6, 2023 at 5:17 pm #15010831 | |
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
It's probable that the code you sent has some issue when registering the strings. Could you please reproduce the issue on our SandBox (test) environment? I've already created one for you, with the languages set up. Please install your theme and the required plugins and recreate the issue. This way, our dev team can analyze it more efficiently 🙂 hidden link If necessary, I'll send it to our compatibility team so they can analyze it and maybe offer a workaround. I'm going to get back to you as soon as I have feedback from them. Thank you for your patience. |
December 7, 2023 at 9:45 am #15015159 | |
bokeB |
Really? Do you want to I recreate the problem? Can you derive me to someone in my timetable (UTC+2)? Its very unconfortable talk with 24h of delay... And more if each time i need to do more thinks about the problem. I'm very grateful with your help, but please I need to fix it asap, and furthermore I had to spend 1h in recreate the problem, installing plugins, customizing ACF, printing them, creating products... I sent you my admin panel not for do this now... I left everything set up for you as far as I could. Please, if we can agilize this issue, now I cant use 2 days more in read your reply and I reply again.... |
December 7, 2023 at 10:01 am #15015331 | |
bokeB |
Sorry, I wasn't using acf multilingual. Now I detected and transalated strings. Now you have product in spanish: hidden link |
December 7, 2023 at 10:03 am #15015369 | |
bokeB |
Same mistake. Fields writed and translated for me are translated, but custom fields as well translated by string translation plugin, but the translation isn't displayed. |
December 7, 2023 at 4:27 pm #15019181 | |
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hello, thank you for reproducing the issue in the Sandbox, I know it can be irritating. I apologize for not sending the FTP credentials, I assumed you were already editing the files via WP. Fortunately, it was really helpful, as I was able to test different configurations and was able to see that the problem wasn't in the code you wrote. I managed to resolve the issue, by following this documentation: In a nutshell, I did the following: Set the acf-field-group as not translatable; Enabled the expert mode on ACF; Set the individual custom fields as translatable; Translated the content on ATE; I translated a value as an example on hidden link so you can confirm that the issue is resolved — the rest of the content is still in Spanish, but you can translate it whenever you want. From now on, the ACF values can and must be translated via ATE, by editing the translation. Please let me know if you need any further assistance or if this solution suffices. |
December 8, 2023 at 11:31 am #15025295 | |
bokeB |
Sincerely, i didn't undestand nothing. I don't know what is "ATE"... |
December 8, 2023 at 11:32 am #15025313 | |
bokeB |
Sorry, i forgot the image. |
December 8, 2023 at 11:39 am #15025355 | |
bokeB |
and when I entry in product panel in english, i see the custom fields in spanish. This is OK, because they are being translated automatically. But, why in the rest of products the translation not is applicated??? Why all fields were translated and this not? |
December 8, 2023 at 11:58 am #15025465 | |
bokeB |
Ok, now I understanding more or less what you did and what is ATE. Please, this system isn't work for me, I need one alternative. I made this website thinking in the super automatically update of content, but this system is really uncomfortable. I need to translate ALL PRODUCT MANUALLY! And worse, I NEED TO TRANSLATE MANUALLY ALL FIELDS (including colors, that are same name to 2 languages). I can't use ATE. I only need that the ACF fields being displayed in the language corresponding. Please, bring me another solution or way to do this. If not my website won't serve and I will need to change completly all systems. |
December 8, 2023 at 11:59 am #15025469 | |
bokeB |
Please, if is possible let me with agent that speak spanish and have my time zone. I NEED TO FIND SOLUTION NOW. |