Skip Navigation

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

Problem:
The client was unable to translate specific headings in the footers section, copyrights section, and a CTA button in the headings from English to Arabic without affecting both language versions. The issue persisted even after translations were applied, affecting both language versions simultaneously.

Solution:
We recommended two methods to resolve the translation issues:
1. Enable the 'Look for strings while pages are rendered' option in WPML > String Translation. After enabling, visit the front end where the string appears, then return to WPML > String Translation to search for the string.
2. If the string is not found in WPML > String Translation, it might be added as an admin text string. For translating widgets, different methods such as using different widgets for different languages were suggested. Detailed steps can be found in our documentation:

If these solutions do not resolve the issue or seem outdated, we highly recommend checking related known issues at https://wpml.org/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 open a new support ticket at WPML support forum for further assistance.

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

Last updated by Mihai Apetrei 10 months ago.

Assisted by: Mihai Apetrei.

Author Posts
July 23, 2024 at 8:07 pm #15994369

Eslam Badr

Background of the issue:
I can't translate some headings in the footers section and copyrights section along with a CTA button in the headings. I tried to translate them from English to Arabic but when I do so it takes effect in both versions. The site is under development.

Symptoms:
Translations for headings in the footers section, copyrights section, and a CTA button are not working correctly. Changes in one language affect both versions.

Questions:
How can I translate headings in the footers section and copyrights section without affecting both language versions?
How can I translate a CTA button in the headings using WPML?

July 23, 2024 at 8:34 pm #15994540

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Before this ticket gets assigned to my colleagues, I will try to help.

The proper way to translate strings depends a lot on how they have been implemented inside the theme/plugin.

Please try both methods and see if any of them resolves the issue.

Method 1:

Go to WPML > String Translation and at the bottom of the page you will find a checkbox called "Look for strings while pages are rendered". You can enable (check) that and then go to the front end to a page where you have that string showing up and then go back to WPML > String Translation and search for that string and see if it now shows up.

Method 2: If you can't find them inside the WPML > String Translation, they might be added as admin text strings.

This should be the normal process to find and translate admin text strings:
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

PS: The sections seem to come from widget areas (as I can see in the code, they were probably added from inside the widgets area from the backend) - so, in order to translate widgets, please take a look at the available options in our documentation below:
https://wpml.org/documentation/getting-started-guide/translating-widgets/

I hope that you will find this information helpful.

Mihai Apetrei

July 23, 2024 at 9:00 pm #15994809

Eslam Badr

Hi, Mihai,

Thanks for your reply. You're right it comes from a widget.

I searched for the word, For example, "services" like the screen with the exact match I got all of these words and I made sure all of them were translated but I still had the same issue.!

Please let me know if there an easy way to solve that.

Regards

services.PNG
July 24, 2024 at 1:28 pm #15998730

Eslam Badr

Hi,

I still need help.

Thanks

July 24, 2024 at 8:32 pm #16000338

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

My preferred option to translate strings is the one mentioned here:
https://wpml.org/documentation/getting-started-guide/translating-widgets/#using-different-widgets-for-different-languages

Can you please let me know if you had the chance to try this option, too? This might be better for avoiding conflicts, too.

Please let me know how things go.

I will be waiting for your response.

July 25, 2024 at 2:57 pm #16004293

Eslam Badr

Hi, Thanks for your reply.

I tried searching for it using the method you suggested but didn't find the header name that I needed to translate.

But, As I mentioned before I tried to search for the required word with an exact match and I found all the words and already made sure that I translated it.

Just to confirm, The widget itself was already translated by the plugin but the heading of the widget is the one that I've an issue with. Please check the below screens.

Thanks

4- translation.PNG
3- Translation issue.PNG
2- Translation Issue.PNG
1- Translation Issue.PNG
July 25, 2024 at 6:11 pm #16005086

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Thank you for the update.

Maybe there is some caching active?

I would like to request temporary access (wp-admin and FTP) to your site so I can better examine the issue. The needed fields are below the comment area. When you log in to leave your next reply, the information you enter is private, meaning only you and I can see and access it.

Our Debugging Procedures

I will check various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to back up the site before providing us access. In the event that we do need to debug the site further, I will duplicate it and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please back up the site files and database before providing us access.

If you do not see the wp-admin/FTP fields, your post and website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box.

The private box looks like this: hidden link

I will be waiting for your response.

July 25, 2024 at 8:54 pm #16005526

Eslam Badr

Sorry, But I also have a concern about the translation widget , How it can be look like this cause the normal widget looks bad.

6.PNG
July 25, 2024 at 9:14 pm #16005581

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Unfortunately, I am not able to log into the site.

Also, that code might expire until I am able to see your reply so it would be great if we can disable that for this user or if we can find a way to disable that for now.

I will be waiting for your response.

Screenshot 2024-07-26 at 00.13.36.png
July 25, 2024 at 9:32 pm #16005644

Eslam Badr

Sure, I turned it off.

Please, try again.

July 26, 2024 at 8:48 pm #16009777

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi and thank you for the credentials.

I can confirm that I was able to log in successfully.

I am spending more time on this and I will get back to you as soon as I have more feedback.

I will leave the ticket assigned to myself for the moment.

PS: Please note that I won't be working over the weekend, but I will be able to get back to you at the beginning of next week.

July 27, 2024 at 4:49 am #16010137

louisC-7

I am facing the same problem, my site is using theme called “twenty twenty four” and twentig plugin, I added french translations for the footer, but some parts not working.

I can find the the domain corresponding to wordings in “string translation”, i added french translate but still not working.

IMG_9973.jpeg
July 29, 2024 at 9:24 am #16014847

Eslam Badr

Hi Mihai,

Is there any news?

I hope we can find a solution as soon as possible.

Regards

July 29, 2024 at 3:19 pm #16016877

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi Eslam, I'm back.

It seems that I was able to find the strings - I think those are the correct ones as they have the widget text domain:
hidden link

They should show up at the top of that link now as I registered them by using method 2 that I shared here:
https://wpml.org/forums/topic/i-cant-translate-some-headings-in-footers-section-and-copyrights-section/#post-15994540

So you have to click +, then click the button in the middle so that you can copy all the code from the left area to the right area, and then you can translate only the word used in the title: Services, Agency, Contact Us

Please let me know how things go.

---

Hi louisC-7.

Please open a new ticket so that we can handle that issue separately and properly investigate it.

Screenshot 2024-07-29 at 18.15.07.png
Screenshot 2024-07-29 at 18.11.31.png
Screenshot 2024-07-29 at 18.11.40.png
Screenshot 2024-07-29 at 18.11.46.png
Screenshot 2024-07-29 at 18.11.58.png
Screenshot 2024-07-29 at 18.14.49.png
Screenshot 2024-07-29 at 18.14.56.png
Screenshot 2024-07-29 at 18.12.33.png
July 29, 2024 at 8:56 pm #16017969

Eslam Badr

Hi, Hope you had a good holiday.

Thanks a lot it is worked 🙂

Just the last thing is the CTA button on the screen, I followed what you did and found that the string is locked. so can't add it to the string translation.

please check the screen.

Thanks again

2222.PNG
111.PNG