[Resolved] want to translate a widget but cannot find it
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is unable to find the translation for a widget in the String Translation. They have tried placing ads in different sidebars and setting one widget per language, but the translations are not appearing as expected. Solution: 1. Navigate to WPML >> String Translation and click on the Translate texts in admin screens » link at the bottom of the page. 2. Use the search box to find the widget text or URL and enable its translation. 3. Return to the WPML >> String Translation page to add the translation for the widget. For more detailed instructions, please refer to our documentation: Translating strings that don’t appear on the String Translation page
100% of people find this useful.
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.
I cannot find the translation of my widget in String Translation. I have put an English ad image (for a quiz) in my second sidebar and would like to have it translated to Dutch, or the other way around (which I also tried and which did not work as well).
I also tried putting the Dutch ad in the first sidebar, and the English version of the ad in the second sidebar, but somehow that did not work as well , which I thought very strange.
I have tried all the solutions suggested in the threads, including setting one widget per language. So 1 widget for your default language and 1 for your translation, which also does not work.
So now I have a Dutch ad of a different design in the widget above the page, and an English ad in the second sidebar. Not ideal. But I would like the Dutch version of my second sidebar ad to appear when visitors go to the Dutch version of the site.
Thank you for contacting WPML Support. Sorry for having issues in widgets translation, could you please try to follow the below steps and see if this resolves your issue:
1. Go to WPML >> String Translation page and click on the Translate texts in admin screens » link at the bottom of the page.
2. Search for your widget text/url in the search box and enable the translation.
3. Then go to WPML >> String Translation page and add the translation.
I found some strings (a great many belonging to this image, do I need to translate them all? It seems overjill, I never used to have to do this). Anyway, nothing has changed.
I found some strings (a great many belonging to this image, do I need to translate them all? It seems overkill, I never used to have to do this). Anyway, nothing has changed.
Tried sth else. Put the ad in custom html and gave it a title. Put in the Dutch ad in the widget. The title appeared in the String Translation as Dutch. The actual ad appeared only in the admin section as an English text. So changed the language to Dutch. Translated the ad and it seems to functioning properly. Stiil, I would appreciate if things worked properly. Is there any solution to this very roundabout way of doing things?
I don't believe it, the Dutch ad in the second sidebar just changed back to English. And the language switcher in the menu has disappeared again (another problem I wanted to address).
It seems English seems to wish to manifest itself as the dominant language on my site, and seems to have full control (for changes back a Dutch ad to an English one by itself). Any suggestions?
2. When you put content in a widget, WPML remembers it on the "String Translation" page. Even if you remove the widget, the content stays there. When you add the widget again, it registers the content once more, causing duplicate instances. Checking the source code of widgets shows which one is active on the website. Alternatively, you can translate all instances.
4. If the language switcher disappears, try removing it from "WPML >> Languages" page by pressing the little trash icon and then add it again. Let me know how it goes. If the issue comes back, observe the steps that cause the switcher to disappear so we can investigate further.
5. If the issue persists, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.
Your next answer will be private, meaning only you and I can access it.
=== Please backup your database and website ===
✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.
✙ Please provide me with a page links/screenshots where I can see the untranslated widgets
I have removed all old string translations and then everything worked as it should. Still strange that I have to find my string translations in the admin section, but at least it works now. Still haven't found out why my language switcher keeps disappearing but will try to find out when it occurs. Thank you very much for the help!
Manage Cookie Consent
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.