This thread is resolved. Here is a description of the problem and solution.
Problem: You are unable to translate the words 'ingredients' and 'advice' on your product page. Solution: If you're experiencing this issue, we recommend you follow these steps: 1. Go to WPML -> String Translation. 2. Enable the Auto-register strings option. 3. Visit a product in the default language. 4. Return to String Translation. 5. Disable the Auto-register strings option. 6. Search for the 'Ingredients' string and translate it.
This solution might be irrelevant if it's outdated or not applicable to your case. We 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. If the issue persists, please open a new support ticket 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.
Background of the issue:
I am trying to translate specific words on my product page using WPML. The site I need help with is hidden link, and the product page in question is hidden link.
Symptoms:
I am unable to translate the words 'ingredients' and 'advice' on the product page.
Questions:
How do I translate the words 'ingredients' and 'advice' on the product page?
Thanks for contacting WPML forums support. I'll be glad to help you today.
1) Please try the following steps:
1- Go to WPML-> Theme and plugins localization, select your theme/plugin, and scan
2- Go to WPML-> String Translation
3- Scroll down and click on the "Translate texts in admin screens »" link
4- Search for the needed strings
5- Select the strings
6- Click on the "Add to String Translation" button
7- Then click on the "« Return to String Translation" link
8- Translate the strings, clear the cache, and check the front end
2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.
The gettext function in WordPress is used to translate strings dynamically. It is commonly used with the __() and _e() functions, as well as _x(), _n(), and related translation functions.
Here’s a simple example demonstrating how to use gettext in a WordPress plugin or theme:
1- Go to WPML-> String Translation
2- Enable the "Auto-register strings" option
3- Visit a product in the default language
4- Go to String Translation
5- Disable the "Auto-register strings" option
6- Search for the "Ingredients" string and translate it
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.