Skip Navigation

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

Problem:
The client is trying to translate the "Log in" and "Sign Up" buttons into Italian in the mobile menu, but even after translating the strings in WPML, the buttons still display in English.

Solution:
1. We recommend checking for duplicates of the strings in WPML > String Translation, as sometimes only one of the duplicates is the correct one that needs translation.
2. Try removing the string by checking the box next to it and clicking 'remove', then re-register the string by scanning for it again. This can be done by:
- Going to WPML > String Translation.
- At the bottom of the page, find and check the option "Look for strings while pages are rendered".
- Visit the front end page where the string appears.
- Return to WPML > String Translation and search for the string again.
3. If the strings are not found in WPML > String Translation, they might be registered as admin texts. Follow the process outlined in our documentation to find and translate admin text strings: Translating strings that don’t appear on the String Translation page.

If this solution does not seem relevant to your situation, please open a new support ticket here.

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 1 reply, has 2 voices.

Last updated by Mihai Apetrei 1 year, 5 months ago.

Assisted by: Mihai Apetrei.

Author Posts
November 15, 2023 at 5:02 pm #14819093

estefanyS

I am trying to: translate the buttons of "Log in" and "Sign Up" into Italian in the mobile menu

Link to a page where the issue can be seen: hidden link

I looked up the String Translations in WPML and translated all the "Log In" and "Sign Up" strings but the buttons haven't changed. They're still in Italian.

<div class="single-mobile-header-info">
                    <a href="<em><u>hidden link</u></em>" class="btn btn-sm one">Sign Up</a>
                </div>

I expected to see the Italian translation.
Instead, I got: "Login" and "Sign Up" in English (no change)

mobile-menu-uelatino.png
November 15, 2023 at 5:08 pm #14819137

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.

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.

1. Please try this:

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