Skip Navigation

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

Problem:
The client needed to translate a link on a button to English, but encountered a message indicating that the string could not be translated automatically because it was not in the site's default language.
Solution:
We recommended the following steps:
1. Go to WPML String translations and scroll to the bottom, then click on "Translate texts in admin screens »".
2. Search for the ID of the theme option button URL, which in this case is

"btn_link_v1"

.
3. Click on "Add to String Translation" button to add it to the string translation list.
4. Return to WPML String Translation and switch the default language as previously indicated.
For more detailed instructions, please refer to our documentation on Finding strings that don’t appear on the String Translation page.
We have added the string for the client, and the website should now display the translation correctly.

If this solution doesn't look relevant, please open a new support ticket in our support forum.

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.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 5 replies, has 2 voices.

Last updated by Marsel Nikolli 11 months, 3 weeks ago.

Assisted by: Marsel Nikolli.

Author Posts
November 27, 2023 at 12:50 pm #14929999

colourI

Hi

We have a link on a button that we need to translate to EN and the string appears on the string translation but we can't translated because it shows this message "Selected strings are not in the site's default language and will not be translated automatically if you're using the "Translate Everything Automatically" mode. Instead, after sending them for translation here, you need to go to the WPML -> Translations page and translate them manually."

string_wpml.JPG
string_theme_wpml.JPG
string_link_wpml.JPG
November 27, 2023 at 1:51 pm #14930665

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will be happy to help you today.

It seems that the default language on that string is set to English and that’s why you are seeing that text message.

Please while checking the checkbox next to the string, click on the button “Change the language of selected strings” and search for Portuguese and click on the the version you are using as a default language on your website. (check image attached

Please check also: https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings

After, try translating the string and see if the issue persists and let me know.

Looking forward to your reply,
Marsel

November 27, 2023 at 2:15 pm #14930917

colourI

Hi

We can't do this because as you can see by the print sent the only option enabled is "Apagar strings relacionadas"

November 27, 2023 at 2:49 pm #14931523

Marsel Nikolli

I am sorry for the misunderstanding.

I noticed from the screenshots that you are adding that button from a theme option and not from an Elementor.

I would need to look closely 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 can access it in order to provide the login details.

Note: Please make sure you have a full backup (database and files) of your website before sending any access details.

Looking forward to your reply,
Marsel

November 27, 2023 at 3:02 pm #14931775

colourI

Hi

Follows temporary access,

hidden link

November 27, 2023 at 3:22 pm #14932053

Marsel Nikolli

Thank you for providing the access.

Given that it was a theme option, you needed to check for the sting in:

- WPML String translations -> scroll to bottom and click "Translate texts in admin screens »"
- then search for the ID of the theme option button url (which checked from the chrome developer tools it is "btn_link_v1")
- click "Add to String Translation" button which adds it to the string translation list
- then go back to WPML String Translation and switch the default language as shown in my previous message

More info can be found: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#scan-the-theme-or-plugin

Please check the website, it should be showing correctly as I already added the string for you.

Let me know if you have any other questions,
Marsel

November 30, 2023 at 9:19 am #14959955

colourI

Hi

Solved. Thanks for the help.