Skip Navigation

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

Problem:
The client is experiencing issues with ACF field labels, titles, etc., appearing in the WPML Advanced Translation Editor despite setting the "acf-field-group" to "Not translate" in the WPML settings.

Solution:
We explained that as of Advanced Custom Fields Multilingual 2.0.0, the Group Fields Title and Labels are translatable by default. This is not a bug but a feature to help translate these labels with the Advanced Translation Editor. For more information, we directed the client to our documentation: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/#faq.

If the client prefers not to use this feature, we recommended adding the following line of code to the WordPress wp-config.php file:

define( 'ACFML_EXCLUDE_FIELD_GROUP_STRINGS_IN_POST_JOBS', true );

We also mentioned that if there are pending translation jobs with these strings, the client will need to cancel and recreate the jobs.

If this solution doesn't look relevant, please open a new support ticket at the WPML support forum.

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

Last updated by Mateus Getulio 1 year, 6 months ago.

Assisted by: Mateus Getulio.

Author Posts
November 8, 2023 at 4:32 pm #14759341

Paul Schmidt

I followed this guide: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/expert-translation-option/#field-group-translation-settings

I don't want the acf field labels, titles, etc. to be displayed in the wpml (advanced) translation editor. In the wpml -> settings tab under the post types translations, I have set the "acf-field-group" to "Not translate" but they still show up in the editor.

Screenshot 2023-11-08 172058.png
Screenshot 2023-11-08 172212.png
November 9, 2023 at 12:19 pm #14766399

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello there,

Thanks for your contact!

Since Advanced Custom Fields Multilingual 2.0.0 the Group Fields Title and Labels are now translatable by default. It is not a bug, but a new feature included with our latest release. The idea is to translate these labels easily and affordably with the Advanced Translation Editor and its automatic translation feature.

Please check more information in our documentation: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/#faq

If you prefer not to have this feature, you can disable it by defining this constant in your WordPress wp-config.php file:

define( 'ACFML_EXCLUDE_FIELD_GROUP_STRINGS_IN_POST_JOBS', true );

Note that if you have pending translation jobs with these extra strings, you will need to cancel it and re-create new jobs.

Please give it a try and let us know how it goes. Thank you.

Kind regards,
Mateus.

November 9, 2023 at 1:34 pm #14767475

Paul Schmidt

I saw this "fix" and it may work for translation jobs but not for the advanced translation editor, which opens if I click the plus or edit icon next to a post in a post list.

For what reason do you add this regardless of the user's choice to not translate acf-field-groups? You sell it as if it's better to force the user to translate the fields even if they don't want it. Why is this option "Not translate" still there at all?

The feature is not bad, but the user should be able to decide for themselves whether they want it or not.

November 9, 2023 at 4:39 pm #14770051

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hi there,

Thanks for your reply.

You would need to resend to translation these already translated/being translated pages and posts, so that the system recognize the change.

About your questions, I'm afraid it's just a design decision:

- With ATE's machine translation, these labels get translated easily (with a very limited cost)
- Most users will see their ACF labels translated on the frontend without even noticing it was translated by WPML
- Having a new and native option to enable/disable it might confuse more clients (all the ones that are satisfied with the feature)

Regardless, thanks for sharing your feedback. I’ll make sure to share it with our dev team.

Please let me know if you need further assistance on this.

Regards,
Mateus.