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

Last updated by hannesH-9 3 years, 4 months ago.

Assisted by: Osama Mersal.

Author Posts
September 22, 2021 at 6:03 am #9633561

hannesH-9

I am trying to:
Keep main menu in sync

Link to a page where the issue can be seen:
All pages

I expected to see:
The menu translated

Instead, I got:
Duplicate menu entries

Please take a look at the video hidden link it contains all the details

September 22, 2021 at 9:04 am #9635221

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I’ll be glad to help you today.

Thanks for the video. I would need to take a closer look at your site. So I would need to request temporary access (WP-Admin and FTP)
– preferably to a test site where the problem has been replicated if possible –
in order to be of better help and check if some configurations might need to be changed

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

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.

✙ I would also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Thanks for your cooperation

Regards,
Osama

September 22, 2021 at 12:48 pm #9637763

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I've installed a local copy of your site in order to debug it without affecting your site.

I've found that you have many menus in the translated languages. (Kindly check this hidden link)

So I've deleted all the menus from all languages, created a new English menu, and translated it without issues.

Also, I've duplicated the blog pages because it wasn't translated to all languages.

The above steps fixed the issue on my local installation. Could you please try them on your site and let me know if that fixed your issue?

Thanks,
Osama

September 22, 2021 at 2:07 pm #9638655

hannesH-9

Hi Osama,

did you touch the test.agreedo.com environment. Because it now looks just like your screenshot 🙂

Furhtermore I see this on the WPML Sync screen:

I fear that when I again hit WPML Menu Sync it will duplicate the menu items.

So where would I need to delete menus? (There is just the primary menu?) Or should I also delete this?

How did you duplicated the blog pages? Do I need to check the duplicate checkbox (see screenshot) for every blogpost. I am only asking because it will take a lot of effort 🙂

chrome_2021-09-22_16-06-59.png
chrome_2021-09-22_16-04-59.png
chrome_2021-09-22_16-04-06.png
September 22, 2021 at 2:15 pm #9638753

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

1) I didn't change anything on your site. I've just installed a local copy of it to debug the issue.

2) On my local copy, I deleted all the menus from all languages. (Kindly check this video hidden link)

3) In order to duplicate the page, you need to check the box on your screenshot and click on the duplicate button.

Please note that I've duplicated the blog page (Pages-> All pages-> Blog page), not the blog posts.

I hope this helps you. If you need further info, please let me know.

Best regards,
Osama

September 22, 2021 at 2:54 pm #9639271

hannesH-9

So to get the blog posts duplicated I need to duplicate all blog posts right?
Then why did you duplicated the blog page?

September 22, 2021 at 3:00 pm #9639285

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

1) You don't need to duplicate all of your blog posts, or at least it's not related to our issue.

2) I've duplicated the page because it's a menu item and needs to be translated in order to appear correctly on the translated menus. (Kindly check this hidden link)

I hope that clarifies the issue. If you need any further info, please let me know.

Kind regards,
Osama

September 22, 2021 at 3:25 pm #9639481

hannesH-9

Hi Osama,

first of all let me say thank you! You helped me a lot. The video was very helpful.
I reproduced the steps as advised in your video and it seems we are almost there.

After hitting "WPML Menu sync" it now says.

When I open up the String Translations I see:

Which is quite strange for the following reasons:

1) The table does not show all menu items
2) There are URLs visible which are set to # ... that is strange (not valid for our site)
3) It says that e.g. Login is not translated. But that's not true, e.g. hidden link shows that Login Button is translated. Ok it's not a menu but a button, but then why is that shown regarding menus?

So if you could help me here, too that would be great

chrome_2021-09-22_17-21-22.png
chrome_2021-09-22_17-20-42.png
September 22, 2021 at 3:33 pm #9639561

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I could see the menu is translated correctly in the front end. If you use custom links on the menu, you would need to translate them using the WPML-> String Translation, for example, the login URL and the login string.

If you visit this page, you will see the login button is not translated. (hidden link)

Kindly check our guide about translating menus to know more about that. (https://wpml.org/documentation/getting-started-guide/translating-menus/)

I hope this helps you. If you need further info, please let me know.

Best regards,
Osama

September 22, 2021 at 6:03 pm #9640077

hannesH-9

Hi Osama,

it happened what I already expected.
The menu does not (!) use custom menus.

Thus after translating of all the texts:

and returning to WPML Menu Sync, it still says there is the need to translate custom strings:

Can you please investigate what causes this problem?

chrome_2021-09-22_20-03-10.png
chrome_2021-09-22_20-02-23.png
chrome_2021-09-22_20-01-41.png
September 22, 2021 at 7:09 pm #9640637

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

The message on the Sync Menu page is like a notification, not an error message. If you changed anything in the English menu, you would be able to Sync the menus correctly.

The button is greyed out because the menus are synced correctly now.

Thanks,
Osama

1.jpg
September 24, 2021 at 6:20 am #9651679

hannesH-9

Hi Osama,

now I deleted all menu* translations in string translations. The notification has vanished.

Now my problem is:
I changed (to test whether the sync works) the Name of "Features" Menu item (in english) to "Features 1".

Then I opened the WPML Menu Sync menu:
It says there is nothing to sync. Why is that?

(btw. you still got admin access).

Furthermore you can see on the screenshot that blog is _not_ translated in Russian language. But it actually appears translated in the website:

I understood WPML Menu sync to work as follows:
It takes all strings from the menu items from the original language and creates entries in the string translation table if they aren't already existing.

But the string translations table is empty (regarding the domain menu):

So my questions are:

1.) Where is the Russian translation for blog defined?
2.) Why didn't WPML Menu Sync actually created a translation entry for the changed label "Feature 1". It should do it, right (after all what does "sync" mean)
3.) Where is the actual translation of all menu items if the String Translations doesn't show entries for menu (i would have expected that WPML Menu sync would create them again, after I deleted them)

chrome_2021-09-24_08-19-00.png
chrome_2021-09-24_08-16-53.png
chrome_2021-09-24_08-15-37.png
September 24, 2021 at 8:06 am #9652411

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

1) The notification has vanished because you don't use any custom links in the menu. If you use custom links, you will see the notification again.

2) When you changed the label to featured 1, it doesn't change the menu sync because it's a label, not a new item. In order to translate the label, kindly click on the "pen" icon to translate it. (Kindly check this hidden link)

3) The Russian blog label is defined in the Russian menu. (Kindly check this hidden link)

4) WPML would create the strings after deleting them if you use custom links or HTML blocks in the menu (Some themes use that). For testing, I've added a custom link and deleted it from the menu. (Kindly check this hidden link)

I hope that answers your questions. Would you please let me know if you need more info?

Regards,
Osama

September 24, 2021 at 8:56 am #9652793

hannesH-9

Hi,

thanks again for your fast response:

reg. 1.) We never used custom links. Thus this link should have never appeared. I am almost 100% sure that it vanished in the moment when I removed the menu entries in string translations. But ok, it is now as it should be

reg 2.) Ok, so I misunderstood what "sync" actually means. Fine foreme. Thanks

reg. 3) same as 2.) thanks

reg. 4.) Thanks. I removed the test item, but editing the original menu, then synced, then removed the strings from the string translations. Correct?

Best regards
Hannes

September 24, 2021 at 9:03 am #9652863

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Hannes,

I'm glad I was able to answer your questions.

Yes, that's the correct order of actions.
1- Edit the original menu
2- Sync menus
3- Edit/Delete/Translate the custom links items

Kind regards,
Osama