Skip Navigation

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

Problem:
The client has all strings translated for their theme, but they do not appear on the site unless 'Auto register strings for translation' is enabled.
Solution:
1. We suggested that the client should try to delete the registered string, register it again, and then run the translation.
2. We noticed that all the client's posts were marked as needing an update. We updated the translation of a specific post to ensure it was completed to 100% and revised the posts.
3. We confirmed that the string "< Back to Main List" was correctly translated to "< Retour à la liste principale" after the update.
4. We also pointed out that the option "Look for strings while pages are rendered" was not enabled, which could be related to the issue.
If the solution provided here does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please do not hesitate to open a new support ticket with us.

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

Last updated by Andreas W. 6 months, 4 weeks ago.

Assisted by: Andreas W..

Author Posts
May 2, 2024 at 2:32 pm #15588035

tinaM-8

I have all my strings translated for my theme, but they wont show on the site, unless I have turned on Auto register strings for translation

May 2, 2024 at 5:10 pm #15588600

Andreas W.
Supporter

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

Timezone: America/Lima (GMT-05:00)

Hello,

Is this request related to strings that are registered inside your Child Theme?

If so, I can offer a WPML test site incl. Divi on which you can install the Child Theme and I will take a closer look at the issue.

Please confirm and let me know if you can cooperate on this matter.

Best regards
Andreas

May 2, 2024 at 6:15 pm #15588740

tinaM-8

It's worth a shot.

May 2, 2024 at 6:37 pm #15588806

Andreas W.
Supporter

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

Timezone: America/Lima (GMT-05:00)

Hello,

Please export a zip Archive from your Child Theme and install it on the following test site:

One-Click-Login:
hidden link

Then try to recreate the issue and if you can recreate it, please name me exact examples.

If you can not confirm the issue on this test site, I can offer to have a look at your site.

Best regards
Andreas

May 2, 2024 at 6:57 pm #15588868

tinaM-8

Looks like it works on this site ok:

hidden link

The link at the bottom: Retour à la liste principale is a string.

I notice the WPML interface is different from what I see when translating.

May 2, 2024 at 7:16 pm #15588919

Andreas W.
Supporter

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

Timezone: America/Lima (GMT-05:00)

I can not locate such a string when scanning the Child Theme and revising WPML > String Translation.

I then reviewed your Child Theme and can not yet find where the string is coming from.

How exactly and where did you implement this string?

May 2, 2024 at 7:19 pm #15588922

tinaM-8

These are the 2 strings i'm testing with:

hidden link

The template file is "single-post.php" line 56.

May 2, 2024 at 7:24 pm #15588954

Andreas W.
Supporter

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

Timezone: America/Lima (GMT-05:00)

Thank you!

Indeed, this seems to work as expected on the test site.

Did you already try to delete the registered string, register it again, and then run the translation?

May 2, 2024 at 7:26 pm #15588959

tinaM-8

I did.

I have to log for the day soon. I could clone my site and provide you access tomorrow if you are willing to dive deeper.

I have that "Auto register" setting on which seems to make it work. Does that cause a performance hit to the site if I leave that on?

May 2, 2024 at 7:40 pm #15588974

Andreas W.
Supporter

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

Timezone: America/Lima (GMT-05:00)

Yes, this does impact performance and should not be enabled all the time.

If you agree, please allow me access to your site and I will take a copy with "All in One WP Migration".

I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

I have to install a plugin called "All In One WP Migration" to make a copy of the website where I can investigate the issue further.

The private response form looks like this:
hidden link

May 3, 2024 at 5:14 pm #15592404

Andreas W.
Supporter

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

Timezone: America/Lima (GMT-05:00)

Take note, that all your posts currently have the translation status that an update is needed.

I updated the translation of the post "Lupus and COVID-19". The translation was only completed to 89% so I made sure it was completed to 100% and revised the posts.

I do see a completely translated post and "< Back to Main List" is as expected translated to "< Retour à la liste principale".

The option "Look for strings while pages are rendered" is currently not enabled.

If you do have a different example, please name it to me and I will take another look.

May 6, 2024 at 2:52 pm #15598152

tinaM-8

Thanks, I did the same that that seemed to work too.