Skip Navigation

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

Problem:
The client is experiencing issues with string translations not working correctly on their WooCommerce site, specifically with page headings/texts that have been added in the WPML String translations settings.

Solution:
We identified that the strings in question are managed by a YITH option page, categorized as "Texts in admin screens". Here are the steps we took to resolve the issue:
1. Navigate to WPML > String Translation and click on Translate texts in admin screens at the bottom left of the page.
2. Search for the strings, select them, and click on Add to String Translation.
3. Return to WPML > String Translation to translate the strings into Spanish.
The specific strings added were:

[yith_wcmap_endpoint_edit-account]label

(your endpoint label)

[yith_wcmap_endpoint_edit-account]content

(your endpoint content - the h2 title).
For further details on registering more fields from this plugin, please refer to the Translating Strings From Admin and Settings section of our documentation.

If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also 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. For further assistance, please visit our support forum at WPML 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.

This topic contains 3 replies, has 0 voices.

Last updated by Nicolas V. 1 month, 1 week ago.

Assisted by: Nicolas V..

Author Posts
November 14, 2024 at 1:26 pm #16402790

Nikhil Vishwanath

Hi,

There is another issue on our site now though, so instead of opening another support thread I want to ask it here.

ISSUE:
We have added some page headings/texts in the String translations settings in WPML.
For example on this page - hidden link

The Woocommerce My Account heading says "My Profile" on the Spanish page.

We have added string translations for the text in the settings page in WPML.
Screenshot for reference.

There are other such instances on our site where string translations are not working as they should even when we have added their translations.

Can you please check this and let us know how we can resolve this?

Thank you.

November 14, 2024 at 2:23 pm #16403377

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello again 😉

These strings of text are coming from a YITH option page, that makes them "Texts in admin screens".

- I went to "WPML > String Translation" and at the bottom left of the page I clicked on "Translate texts in admin screens"
- On the next page I search for these strings, selected them and clicked on "Add to String Translation"
- Then went back to "WPML > String Translation" to translate them in Spanish.

I have added two strings:
- [yith_wcmap_endpoint_edit-account]label (your endpoint label)
- [yith_wcmap_endpoint_edit-account]content (your endpoint content - the h2 title)

If you need to register more fields from this plugin, please refer to the "Translating Strings From Admin and Settings" section of this documentation: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#translate-admin-and-settings-strings

screenshot-2024_11_14-09_19_51.png
November 14, 2024 at 2:49 pm #16403508
Nikhil Vishwanath

Hi,

Thank you very much for sharing this info.

I checked the page and can see that it is now translated.

Another question regarding this:
We have a custom plugin on the site which shows a popup message with a heading text and button options "Yes" and "No".

How can we make the heading text translatable in other languages? If we use the same process you mentioned, what would we have to do in that case?

We have used esc_html__() inside the h2 tag in our custom code.

Looking forward to your response.

Thank you.

New threads created by Nicolas V. and linked to this one are listed below:

https://wpml.org/forums/topic/split-split-translated-page-content-is-reset-to-default-language/

Screenshot_1.png
November 14, 2024 at 3:43 pm #16403891

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi,

Thanks for your feedback, I'll close this ticket.

Let's continue the conversation on: https://wpml.org/forums/topic/split-split-translated-page-content-is-reset-to-default-language/