[Resolved] Strings do not appear in string translation
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was unable to find certain strings from the portfolio pages of the Hub theme in the WPML String Translation interface, even after using theme and plugin localization tools.
Solution: 1. We suggested enabling the "Look for strings while pages are rendered" option in WPML > String Translation, visiting the front end of the page where the string appears, and then searching for the string again in WPML > String Translation.
If the solution provided here is not relevant to your case, either because it's outdated or not applicable, 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 you still need assistance, please open a new support ticket with us.
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 am using hub theme on my site.
There are strings on portfolio pages that I am unable to find in string translations.
I have used theme and plugin localization but still they do not appear anywhere.
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.
1. Please let me know where I can find that text (share the URL)
2. I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Our Debugging Procedures
I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.
- Please make a backup of the site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box.
This takes longer to investigate than I initially estimated.
Also, there was a weekend so some of us, Supporters, don't work on the weekend.
Can you please let me know if these strings were manually created from custom code by you or a developer or if they came with a specific plugin or the active theme? You think they are coming with the "hub" theme or they were added separately to the site?
No, these strings are not manually added.
They are coming from the hub theme and these are called portfolio meta
When you edit a portfolio item in Elementor you can see them.
Please find the attached screenshot
So, after some deeper investigation, it seems that there are custom Elementor widgets that are being used on the portfolio pages.
It seems that these custom widgets/blocks are coming from the Hub Theme through the Hub-related plugins that are active on the site (probably this one: "Hub Elementor Addons").
When custom elements are being added through code or through an extra plugin add-on that adds those custom widgets to Elementor (or any other page builder), we need to help WPML to see that content so we need to write a few lines in order to accomplish that (please check the video in the section below):