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.

This topic contains 6 replies, has 2 voices.

Last updated by dejanP-5 1 year, 11 months ago.

Assisted by: Andreas.

Author Posts
November 18, 2022 at 3:35 pm #12491435

dejanP-5

I am trying to:
Translate strings, we entered php functions that wpml requre for strings to be translated, problem is when I translate some string, it stays translated for few hours and then it bring back the old content from original language. When it bring the old original language to other language (same content on both) I just need to go and save just 1 string and then all strings is again translated for few hours, after that, same issue is happening for last 2 weeks.

Another issue is with pages, we have original page on main language and then we translated that page to another language but we are not able to see it, it throws 404 error, I have screenshots so I will send you everything. When you hover link on de page it showing English url.

Link to a page where the issue can be seen:
When it comes to string translation, its on the whole website, but I will send you one case where you can see it -> hidden link

When it comes to pages, it happening here -> hidden link

I expected to see:
Translated strings without reverting original lang content after few hours.
Working pages without issues.

page-image-2.png
page-image-1.png
page-image-2.png
page-image-1.png
November 19, 2022 at 11:47 am #12495473

Andreas

Hello there

Thank you for contacting us. I am happy to help you.

First of all, based on our policy we are limiting each topic ton one issue.

So I will start with your first question, see if it is related also to the second one and if it is not , I will create a new ticket and continue from there.

Now for the first question.

You wrote :

"we entered php functions that wpml require for strings to be translated, the problem is when I translate some string, it stays translated for a few hours and then it brings back the old content from the original language"

My understanding is that you added some php gettext functions to some strings, then the strings appear correctly in String Translation, you translated them , but after a few hours there is no translation in your String Translation ?

May I ask you to give me more information about this in order to understand better your issue and find a proper way to fix it? Any details you might have will help.

Regards,
Andreas

November 21, 2022 at 9:42 am #12502411

dejanP-5

Hello Adnreas, thank you for reaching out.
Yes that correct, I will send you functions that we use to put the string in String Translations, it always bringing back old content from origin language.

<?php _e('See my price', 'tiska'); ?> ---- This is function for getting strings and assigning them to tiska theme name.

I will send you wpml error log (communication log), I wasnt able to send it as this website is registered on another account that we dont have access to it, other crew did it that we are working with.

DELETED BY SUPPORTER

November 21, 2022 at 10:24 am #12502805

Andreas

Thank you for the message but I deleted the end of your message with log.

Now you added for example this :

<?php _e('See my price', 'tiska'); ?>

Then you went to WPML > Themes & Plugins , you scan for ne strings on the theme, you found that string and you added the translation and then you cannot see the translation in frontend?

Can you please tell me exactly the process?

Regards,
Andreas

November 22, 2022 at 8:59 am #12509561

dejanP-5

Oh ok, I didnt found it not relevant.

Yes after adding this, i go to WPML > Themes & Plugins Localization > select tiska Theme and run Scan, after that I navigate myself to String translation and find that string, I translate it ad translation is good for next few hours and then WPML brings the old content from original language by it self.

When I want to fix this, i just come to WPML > String translation and then just save one single sting again and after that all string are fixed for next few hours and all around.

November 22, 2022 at 11:31 am #12510751

Andreas

Thank you for the explanation.

It is the first time I am reading something like this.

May I ask you something?

When you added the translatiosn and everything is ok, can you please go to WPML > Support > Troubleshooting > and at the end there are some buttons.

Click :
1) Cleanup and optimize string tables
2) Show custom MO Files Pre-generation dialog box

After this, check if the strings are ok.

If yes wait and see if they will change after some hours.

Share the results.

Regards,
Andreas

November 23, 2022 at 8:32 am #12517113

dejanP-5

This actions solved my issue, its translated now for 24 hours almost, so I think that the problem wont be back, Thank you so much for your help :).