Please make sure to update to WPML 4.3.4 before reporting any issue

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

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 thread is resolved. Here is a description of the problem and solution.

Problem: I am trying to synchronise German and Polish version. Hero content and Portfolio cannot be synchronised between these two languages. I get either the German version on the Polish version of the site or the opposite.

Solution:Th cause of the issue is that the theme uses a transient to retrieve the Hero content. WPML can't translate it. But the theme checks if the transient exists, and if it does not uses the theme options, which are translated, and retrieves the content again.

So, as workaround, add this in functions.php: if (class_exists('sitepress')) { add_action( 'decree_before_content', function () {delete_transient( 'decree_hero_content' );}, 29 ); //add a line for each transient }

Relevant Documentation:

This topic contains 34 replies, has 2 voices.

Last updated by Carlos Rojas 2 months ago.

Assigned support staff: Carlos Rojas.

Author Posts
September 13, 2019 at 2:06 pm #4569255

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi,

I added some changes to the code in functions.php file which is within the theme's folder.

I kindly ask you to double check if there is still any string without translation in the homepage in German.

Regards,
Carlos

September 16, 2019 at 7:26 pm #4583647

pawelZ-11

Well, everything looks perfect now! 🙂 How did you manager to do it? Why was it that difficult? How stable it is now? Can I add the English version or we will have the same problem? I feel anyway so much happier now! :-):-) 🙂

September 17, 2019 at 10:23 am #4587659

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi,

The cause of the issue was that the theme uses transients to save the translations and WPML couldn't fetch those transients so we removed them using the code added in functions.php and now WPML can fetch the translations correctly.

Although this is a solution, I recommend you to contact the theme's authors and let them know about this issue so they can add a fix to the theme's code in future releases.

Best regards,
Carlos

September 17, 2019 at 1:19 pm #4588773

pawelZ-11

My issue is resolved now. Thank you!

September 17, 2019 at 3:44 pm #4589851

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi there,

I'm glad to hear that the issue is solved 🙂

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.
Best regards,
Carlos