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.

This topic contains 11 replies, has 2 voices.

Last updated by Bruno Kos 6 months ago.

Assigned support staff: Bruno Kos.

Author Posts
April 16, 2019 at 6:02 am #3618329

Martin

I am trying to: Translate the fields in my ACF Pro options page.

Link to a page where the issue can be seen: This is in our admin.

I expected to see: When I save either the french or english options page it should save the fields in that language.

Instead, I got: Saving the options in one language will overwrite it in the other language.

April 16, 2019 at 7:53 am #3619347

Bruno Kos
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML support!

Can you tell me the following - does it work if you try to translate them using String Translation? Based on this - https://wpml.org/download/acfml/?section=changelog - Advanced Custom Fields Multilingual 1.2. which was published few days ago includes this:
- Fixed the translating ACF Options page (it can now be done using WPML String Translation).

There is also another approach that might work and is mentioned here, so have a look:
https://wpml.org/forums/topic/acf-option-page-fields-translate-field-values/#post-2969819

Regards,
Bruno Kos

April 16, 2019 at 3:16 pm #3623385

Martin

I tried the string translation route, but I can't see all of my option fields in there. Is there something I have to do in order to make them appear there?

April 16, 2019 at 3:45 pm #3623671

Bruno Kos
Supporter

Languages: English (English )

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

Hi,

There are couple of ways on how to do this, depending on how your theme options are coded. You can check how recognized strings are coded (which method are they using) and do it the same way:
https://wpml.org/faq/getting-string-translation-to-work/

After that go to WPML > Theme and Plugin localization and scan the theme/plugin and see if these appear within String Translation now.

Also see this - these may need to be extracted through this method:
https://wpml.org/documentation/getting-started-guide/string-translation/#admin_texts

Regards,
Bruno Kos

April 16, 2019 at 4:17 pm #3623963

Martin

Hey, I'm a little confused. I understand how to use __('string', 'domain') and stuff in my themes and those scan and work as expected. In this case I'm looking at translating the fields in my ACF options page. Shouldn't your ACFML plugin scan the field definitions for the options page and then pick those up in the string translation section automatically? Or is it looking for the get_field('FIELD_NAME', 'options') calls in the theme?

April 17, 2019 at 5:50 am #3627215

Bruno Kos
Supporter

Languages: English (English )

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

Hi,

In order to debug this issue further quickly, would you be willing to provide me with temporary WordPress admin username so I could investigate the issue directly? I have marked your next reply private so you can safely add this information.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Please make a full backup of your site before sharing this info!

You can use plugins such as UpdraftPlus WordPress Backup Plugin (https://wordpress.org/plugins/updraftplus/) or ask your host to perform a site backup.

Regards,
Bruno Kos

April 17, 2019 at 1:55 pm #3631473

Martin

I can give you WordPress access, but my FTP login doesn't have permission to modify plugin files if that's what you're thinking. My client also doesn't have backups on their server. I have asked them to enable a backup service, but they're still waiting to decide on a solution.

April 17, 2019 at 2:05 pm #3631579

Martin

I can confirm that if the WPML has indeed picked up the options settings, then if I translate them in the String Translations section, it will translate the strings for me. So the big issue is that it's not grabbing all of my fields.

April 17, 2019 at 2:15 pm #3631841

Martin

I did a little more testing of my own. The field I wanted to edit was an ACF "Link" field. I changed this to two text fields and now I could translate them in the string translations section. Hopefully we can get the standard options translations view working.

April 17, 2019 at 3:55 pm #3632483

Bruno Kos
Supporter

Languages: English (English )

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

Hi,

I can give you WordPress access, but my FTP login doesn't have permission to modify plugin files if that's what you're thinking.

You can fill in any dummy data into FTP field. As for WordPress access, I wouldn't change anything, but would simply like to check the backend of the site.

On a side note, do you see the missing fields among Admin texts perhaps? You can open this option on WPML -> String Translation -> Translate texts in admin screens.
https://wpml.org/forums/topic/translate-texts-in-admin-screens-select-some-apply-no-string-added/#post-814519

Regards,
Bruno Kos

April 17, 2019 at 4:53 pm #3633137

Martin

You can see the ACF options page here: hidden link. I didn't see the text under the "admin screens" section.

April 18, 2019 at 6:34 am #3636329

Bruno Kos
Supporter

Languages: English (English )

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

Hi,

I am comparing these now - I can see 16 fields within ACF Option domain within String translation and 24 fields overall on hidden link. But some of these fields are tabs e.g. that are not set to be translatable nor are meant to be. Which of the fields don't show up in ST?

Also, what do you mean by this?

Hopefully we can get the standard options translations view working.

Is this perhaps what you are after?
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/#translating-field-groups

Regards,
Bruno Kos

The topic ‘[Closed] ACF Pro Options page won't translate.’ is closed to new replies.