[Resolved] String translation not translating all strings.
This thread is resolved. Here is a description of the problem and solution.
Problem: The client installed the "Give PW" plugin and used WPML to translate its strings. Although all strings were found and translated, half of them are not appearing translated on the frontend.
Solution: We discovered that some strings originate from JavaScript files like
or TypeScript files, which WPML cannot translate. Additionally, some strings such as "Payment Amount" appear in the String Translation but are sourced from different parts of the plugin, leading to confusion as they are not used in the form itself. To resolve this, the client should refer to the plugin's documentation for translating strings or contact the plugin author for more guidance. It's also noted that the Slovenian translations for the plugin on wordpress.org are only 4% complete. The client can contribute to the translations here or use another tool as suggested in the plugin's documentation.
If this solution does not apply to your case, or if it seems outdated, 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 issues persist, please open a new support ticket.
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 installed a plugin "Give PW" on my site hidden link. I scanned the plugin for strings using WPML, and all strings have been found. I translated all the strings.
Symptoms:
Half of the strings are not translated on the frontend.
I found and translated all the strings, but half of them are not translated on the frontend. hidden link hidden link hidden link
This is the page hidden link
Questions:
Why are some strings not translating on the frontend after being translated in WPML?
Reference to our recent chat, I need to investigate the issue in more detail. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.
Your next answer will be private, to share this information safely.
Also provide detailed steps to reproduce the issue and links to pages in the admin and on the frontend.
IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.
Thank you for your patience and cooperation. I was able to reproduce the issue in a fresh site and 've escalated the matter to our compatibility team for further investigation.
I'll get back to you as soon as there's some progress.
Our team checked in detail and provided the following updates:
These strings are coming from files like .../wp-content/plugins/give/build/donationFormRegistrars.js file or .tsx files and, as the author says, they can't be translated by WPML.
Some of the strings, as Payment Amount, are available in String Translation. However, they come from other places in the plugin and they are not used in the form, this creates a confusion and makes the user expect to be translated. For example, Payment Amount is also used in the summary in .../wp-content/plugins/give/src/DonationSummary/resources/views/summary.php::43.
Basicaly strings cannot be translated with wpml but can be translaed easily with Loco translate? I tried, it works.
I must admit I have never stumbled on something like this before.
I need my plugin translated and still make a site multilangual, so I guess my next question would be, is it ok to have both WPML and Loco translate installed and running on the same website?