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.

Sun Mon Tue Wed Thu Fri Sat
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 20 replies, has 3 voices.

Last updated by Noman 6 months, 3 weeks ago.

Assisted by: Noman.

Author Posts
April 27, 2024 at 5:47 pm #15573145

hylderB-2

I have a top header on the top of the menu.
I used String Translation to find all instances where I should translate BECOME A GAME CHANGER to French. I found four and have added the translation to all.
But it doesn't work.
As the image shows, the French version still shows the Englosh text for BECOME A GAME CHANGER.
Thank you.

Screenshot 2024-04-27 at 1.44.38 PM.png
April 27, 2024 at 9:44 pm #15573247

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02: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.

IMPORTANT: Sometimes, there are even duplicates of the same string and only one of them is the correct one that needs to be translated.

Also, sometimes, simply removing the string (checking the box and removing it) and then re-registering it again by scanning for it (one of the methods below) and re-translating it resolves the issue (sounds like you did this already so let's focus on finding the duplicates that are still NOT translated).

In our situation here, I think method 2 is what you might be looking for in case method 1 can't detect the string (which would mean that the strings is added from the admin area and is considered to be an admin text string.

1. 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 in 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.

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

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/

Please let us know how that goes.

Kind regards,
Mihai Apetrei

April 28, 2024 at 2:54 am #15573324
hylderB-2

Hi Mihai,

Thanks for your help.
Nothing worked.
I ended up removing the string to re-translate later but it can't be found anymore.
If it helps, the header was created with Theme Builder. All menu items were translated automatically and correctly, only one doesn't use the translation, so it's wrong.
This menu item is RESOURCES (in English) and has the string translated to RESSOURCES (in French), but it's not shown.
And this other element I first talked about, BECOME A GAME CHANGER.

Thank you.

New threads created by Noman and linked to this one are listed below:

https://wpml.org/forums/topic/menu-custom-links-translation-issue/

April 28, 2024 at 3:16 pm #15574080

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support.

1. As you have added the “BECOME A GAME CHANGER” text using Elementor page builder template so you need to translate that template using WPML Translation Editor or default WordPress Editor and not from WPML >> String Translation page.

So, please try to follow the below doc for translating the Elementor templates: https://wpml.org/documentation/plugins-compatibility/elementor/#translating-elementor-templates and see if this resolves the issue.

If the issue persists, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private which means only you and I have access to it.

=== Please backup your database and website ===

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is really important.

2. For menu translation issue, it’s a different issue and will be handled separately as per our support policy. I've created new ticket for this at: https://wpml.org/forums/topic/menu-custom-links-translation-issue/ and we will continue working on the above ticket for it.

Thank you

April 29, 2024 at 1:48 pm #15577443

hylderB-2

Helo Norman,

Thanks for your reply.
I have done that and still doesn't show the translation.
I don't want to take any risk at this moment because there is a conference coming this weekend, so I'd rather uninstall/install anything after that.
For now, please check the image attached and it shoes the reference text as package-string-22-344.
Does it help?
Thank you.

Screenshot 2024-04-29 at 9.43.56 AM.png
April 29, 2024 at 5:02 pm #15578387

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for trying that out. I understand your concern about the conference this weekend. Let's not take any risks for now. Please try to follow the below steps:

1. Please open the default language header template in Edit mode.
2. Make a small change, for example, add a space or + sign in template title.
3. Update the page by pressing the “Update” button.
4. Now, please remove that small change that did in step #2.
5. Update the template again.
6. Now, please try to open the translated page in WPML Translation Editor and make sure the translation is 100% complete and press the complete button and see if this resolves the issue.

If the above steps don’t help, please try to translate the header template using default WP Editor by following this doc: https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/ and let me know how it goes.

Thank you for your cooperation

April 29, 2024 at 5:32 pm #15578431

hylderB-2

Hi Norman,

It didn't work.
The only difference is that now I see the translation when I edit the template. Everything is in French, even Elementor menu on the left, but the nav menu I have in my template.
Please, check the image: everything is in French, including the part I want to translate, but the menu is in English.
If you go to the live page in French, it's the opposite.
Tks.

Screenshot 2024-04-29 at 1.30.40 PM.png
April 30, 2024 at 7:37 am #15579695

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for the additional details. It seems the header template translation is fine. Can you please try to translate the header template post ID from WPML >> String Translation page as described here: https://wpml.org/documentation/getting-started-guide/string-translation/how-to-translate-theme-options/ and see if this resolves the issue.

Thank you

April 30, 2024 at 2:12 pm #15581687

hylderB-2

Hi Norman, it didn't work.
I'm able to see the page, check the translation correctly but the live page doesn't show it.
Even one item from the menu doesn't get translated as well, despite the fact it is translated.
Thank you.

April 30, 2024 at 3:45 pm #15582071

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

To troubleshoot this issue without affecting your live site, I have set up a fresh WP site on cloudways. Can you please migrate your site to the cloudways server so that we can debug this issue. I have shared the migration details in a previous private reply.

Thank you for your cooperation

April 30, 2024 at 4:16 pm #15582140

hylderB-2

Site has been migrated.
How do I send you the credentials privately, please?
tks.

April 30, 2024 at 4:23 pm #15582164

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for migrating the site. I've enabled a private input box for your next reply, thank you

May 1, 2024 at 7:49 pm #15584910

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Update so far: I logged in successfully and have done some debugging. Below are the some of the things I've tried and I will continue to debug this further:

- Re-saved both lang headers to re-sync data.
- Tried to assign from Appeance >> Customize section
- Tried to add template id translation from string translation page
- Tried to add conditions from header template settings
- Tried XML method
- Tried with parent theme

But the solutions I tried are not working at moment. I am off today as its Labor Day Holiday in most parts of the world (1st May). I will continue to debug both the issues tomorrow first thing in the morning and will update you after that.

Thank you so much for you cooperation and patience.

May 1, 2024 at 7:57 pm #15584912

hylderB-2

Hi Noman,

Thank you for your hard work!
We talk tomorrow.
Hopefully you'll be able to solve this.

Enjoy the holiday!

Thanks.

May 2, 2024 at 12:12 pm #15587086

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I’ve tried to check the issue in the minimal environment by deactivating all plugins except WPML, Elementor, and Jupiter X Core plugins but the issue still persists. Then I tried to create a new header template by following the JupiterX theme doc: hidden link and it works correctly for me.

Here are the steps which I followed:

1. Click on the Add New button from Jupiter X >> Layout Builder > Header page as you can see in the attached screenshot.

2. It open up a Blank Elmentor template, click on the “Add template” button, Inserted the exisiting header template as you can see in the attached screenshots.

4. For creating a French language header, switched to the French language using admin langauge switcher as you can see in the attached screenshot and followed the step #1 and #2.

5. Went to the Templates >> Theme Builder page: hidden link

6. Open up the newly created French header template in Edit mode and click on the “Connect with translations” link as you can see in the attached screenshot and connected with the newly created Header template and now it works correctly in both languages.

Default language: hidden link
Secondary language: hidden link

Here is a doc for more details:
https://wpml.org/faq/how-to-link-already-translated-pages/

Please let me know if this resolves your issue or if you need further assistance with this issue.

Thank you

translated header.png
default header 1.png
Layout builder - add new.png
Add template.png
Inserted header template.png
connect with translation.png
Switch to French language.png

The topic ‘[Closed] Top head (over the header)’ is closed to new replies.