Skip Navigation

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

Problem:
The client is making a change to the default language widget and is confused why he has to update/add translation each time.

Solution:
Each time you make a change to the default language widget it is expected that you also need to add/update the translation of the widget via WPML String translation to keep the content in sync.

Otherwise, you can manually create different widgets per language.

Relevant Documentation:
- https://wpml.org/documentation/getting-started-guide/translating-widgets/

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

Last updated by Dražen 12 months ago.

Assisted by: Dražen.

Author Posts
January 12, 2024 at 1:24 pm #15179292

androklisT

Hello,
i'm developing a custom site and i have come across some issues.
The site is build using ACF Pro & WPML.
I have widgets displaying in the footer area.
The default language is Greek i can translate everything using the WPML String Translation but if i make a small edit to the Greek text all the translations disappear.

Another thing that i've noticed is even though i have completed the translations in all languages if i enter the page using the WPML Translation Editor the first field that is showing green and translated with the right content is turning into yellow and it has to be checked every time in order to complete the translation and reach the 100%. (see image attachment).
The fields have been created using the ACF Flexible content option and are set to Expert

I'm running the latest Wp Version 6.4.2
All plugin's including the WPML Version 4.6.8 are all up to date.

In the wp-config.php file i have added the below lines of code to match the plugin's criteria
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

I already Cleared the WPML cache
Removed Ghost Entries
Fix element_type collation
Fix WPML tables collation
Fix terms count
etc.

Thank you in advance

January 15, 2024 at 9:01 am #15183726

Dražen
Supporter

Languages: English (English )

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

Hello,

The default language is Greek i can translate everything using the WPML String Translation but if i make a small edit to the Greek text all the translations disappear.

Are you adding translation for pages and ACF content via WPML string translations? If so, you shouldn't do that and it is expected what you experience. String translation is used only for translating strings coming from theme files etc.

You should translate your pages via the WPML ATE editor or if you wish disable it and continue manually to translate.

Let me know if this helps and if any other doubts.

Regards,
Drazen

January 16, 2024 at 6:55 am #15187833

androklisT

Hello,
thank you for the reply.
No i'm not translating ACF content or pages using the string translation.
I'm using string translation in order to translate the widgets that come from the theme files.
The widgets are registered in functions.php and called in the footer.php.
The issue is that i can translate the widgets using string translation and it's working untill i have to make a change to the default language, then all translations are gone and on the front end everything is going back to Greek and on the string translation area the pencil icon has turned in to + icon again.

Thank you in advance

Screenshot-2024-01-16-at-8.52.40-AM.png
January 16, 2024 at 8:27 am #15188231

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for getting back.

Yes, as for widgets that is expected, you made a change to the widget and you need to add a translation / re-translate for 2nd language, as the old widget and new one do not match anymore.

As a workaround, you can create widgets specifically for each language and not translate them via WPML string translation.

- https://wpml.org/documentation/getting-started-guide/translating-widgets/#using-different-widgets-for-different-languages

Regards,
Drazen

January 18, 2024 at 9:03 am #15198739
androklisT

Hello,
the work around seems to be working.
I have another issue though.
As i mentioned the site is build using ACF with the Flexible Content option.
Flexible content is set to copy once and on Expert option.
When i create a page and save it then i'm using the WPML translation editor to procced with the translations.
So far everything is ok.
If i add or change the layout of the default language and proceed with the translation using WPML Translation editor i can see the additional content and translate it but it doesn't display on the front end. If i manually switch to the translated page from the back end the added layout is missing.

Another thing that i've noticed is even though i have completed the translations in all languages if i enter the page using the WPML Translation Editor the first field that is showing green and translated with the right content is turning into yellow and it has to be checked every time in order to complete the translation and reach the 100%.

Thank you in advance

Screenshot 2024-01-18 at 11.01.08 AM.png
January 18, 2024 at 9:24 am #15198803

Dražen
Supporter

Languages: English (English )

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

Hello,

great, glad to hear that.

Since we limit 1 issue per 1 ticket, to keep things clear and easy to follow, please open a new ticket for each of your issues, or if you wish I can open them for you.

Regards,
Drazen

January 18, 2024 at 12:39 pm #15199779

androklisT

Hello,
yes please go ahead and open other ticket.

Thank you

January 18, 2024 at 12:44 pm #15199788

Dražen
Supporter

Languages: English (English )

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

Hello,

I have opened 2 new tickets for you and will be closing this current one:

- https://wpml.org/forums/topic/split-layout-is-missing/
- https://wpml.org/forums/topic/split-content-is-turning-into-yellow-and-it-has-to-be-checked-every-time/

Regards,
Drazen