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
- 8:00 – 14:00 8:00 – 14:00 8:00 – 14:00 8:00 – 14:00 8:00 – 14:00 -
- 15:00 – 17:00 15:00 – 17:00 15:00 – 17:00 15:00 – 17:00 15:00 – 17:00 -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 3 replies, has 3 voices.

Last updated by Nigel 10 months, 4 weeks ago.

Assisted by: Nigel.

Author Posts
February 14, 2024 at 9:00 am #15300589

lrn-accountsP

if I select the "Don't translate" options for ACF then try to get an XLIFF file also the value of this option gets in the XLIFF file

What is the link to your site?
hidden link

February 14, 2024 at 9:20 am #15300684

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hi,

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps and try to help with the issue quickly.

1) Please update all WPML plugins to the latest version by going to the Plugins → Add New page, click the Commercial tab, and then click Check for updates.

- https://wpml.org/faq/install-wpml/#wpml-4-2-8

2) Make sure you are using ACFML addon:

- https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/

3) If you are using some custom code and setting ACF translation settings via code, you need to adjust it there:

- https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/setting-the-translation-preferences-for-acf-fields-created-using-php-code/

Let us know how it goes.

Regards,
Drazen

February 14, 2024 at 11:51 am #15301847

lrn-accountsP

all of the setup is complete. We used the clone field and set 'wpml_cf_preferences' => 0. However, when we export the file, the "Don't translate" field value appears in the XLIFF file.

February 15, 2024 at 11:49 am #15306752

Nigel
Supporter

Timezone: Europe/Madrid (GMT+01:00)

Hi there

I have tried to reproduce this issue on my local test site and I cannot, the ACF field I set as do not translate is not included in the XLIFF file (although the field label was; the first time a post using custom fields with labels is translated the labels are offered for translation along with the post, which is a one-time occurrence).

So I've set up a sandbox site we can work on together to try to reproduce the issue.

You can log in via this link: hidden link

If you check you'll see one ACF field group with one ACF field set to do not translate.

I created the first post and translated it: that included translating the field group name and field label (the one-time occurrence).

I then created a second post and created a translation job.

If you go to WPML > Translations you can download the XLIFF file and see that the custom field is not included.

Can you try to add a custom field with the same configuration as on your own site to reproduce the problem, then let me know so I can take a closer look.

The topic ‘[Closed] acf Don't translate field not working’ is closed to new replies.