Skip Navigation

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

Problem:
The client is unable to see the translated ACF labels in English on their website despite adding translations and following a tutorial. The labels are still displayed in Polish.
Solution:
We recommend the following steps to resolve the issue:
1. Ensure you have a full backup of your website.
2. Access your database via DB Adminer or a similar tool.
3. Execute the following SQL query to remove incorrect translations from the database:

DELETE FROM 8VfaM1p_icl_translations WHERE element_type = 'post_acf-field-group';

Note: Replace '8VfaM1p' with your actual table prefix.
4. Rename all Field Labels within the 'NowePortfolio' field group temporarily, then revert them to their original names.
5. Make a minor edit to the portfolio item 'Zaprawieni – Case Study działania marketingowe', such as adding a space, and save the changes.
6. Check if the labels are now available for translation.
If these steps are too complex, please contact us for further assistance.
Additionally, if the labels are hard-coded in your theme, you will need to consult with your theme developer to apply the necessary changes according to our developer documentation.

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.

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 Lucas Vidal de Andrade 1 month ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
October 24, 2024 at 12:11 pm

szymonN-2

Background of the issue:
I want to change ACF labels when I open hidden link instead of hidden link. I followed the tutorial from YT and see correct translations in String Translation. hidden link

Symptoms:
Despite adding translations, I still see Polish ACF labels instead of English ones. I tried changing different settings and cleared the session, but I still do not see translated labels.

Questions:
Why are the ACF labels not displaying in English on the hidden link site?
What additional steps can I take to ensure ACF labels are translated correctly?

October 24, 2024 at 12:57 pm
October 24, 2024 at 12:59 pm #16326397

szymonN-2

WPML - registration and update of plugins done

October 24, 2024 at 1:17 pm #16326465

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Thank you, I'm checking your issue and will get back as soon as I have new information.

October 24, 2024 at 5:07 pm #16327542

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

I'm getting a second opinion with my developer colleagues and will get back to you as soon as I have new information.

Thank you.

October 25, 2024 at 3:12 pm #16331337

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

I got feedback from our devs, and was able to fix the issue in a copy of your website (partially, but I'll explain that later). Please make a full website backup and:

1. Go to your DB Adminer;
2. Run the following query:

DELETE FROM 8VfaM1p_icl_translations 
WHERE element_type = 'post_acf-field-group';

Please note that the table prefix, in this case "8VfaM1p" can change from website to website. Make sure you're using the proper one. You can check it and substitute according to the prefix you have on your tables;
3. Rename all the Field Labels inside the NowePortfolio field group. You can change "Kategoria" to "Kategoria 02", for example. Save.
4. Change all the labels back to their original name;
5. Edit the portfolio item "Zaprawieni – Case Study działania marketingowe", making a small change and save. You can add a blank space somewhere;
6. Check the translation of the portfolio item mentioned. Now, the Labels will be available to translation;

It seems there were some previous misconfigurations that led to this problem. It should be solved now. If that's too advanced for you, please let me know, so I can help you in more detail.

You'll notice, though, that the labels will still show untranslated in the Front End. That's because the labels were hard-coded in the page template, inserted in your child theme (check the image attached). Unfortunately, we cannot directly help with custom code. This needs to be fixed, in order for the translated texts can be shown properly. You should reach out to the child theme developer, so he can follow our documentation for developers:
https://wpml.org/documentation/support/

image.png