Skip Navigation

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

.../wp-content/plugins/give/build/donationFormRegistrars.js

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.

This topic contains 14 replies, has 2 voices.

Last updated by Waqas Bin Hasan 4 weeks, 1 day ago.

Assisted by: Waqas Bin Hasan.

Author Posts
October 9, 2024 at 10:55 am

ziga pipan

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?

October 9, 2024 at 11:36 am
October 9, 2024 at 11:37 am #16269792

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

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.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

Regards.

October 9, 2024 at 11:44 am
October 9, 2024 at 12:57 pm #16270346

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the access, I am working on this and 'll get back to you as soon as I find something or have a solution.

October 10, 2024 at 9:44 am #16273894

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I'm still working on this and investigated further, but I'm not sure about a few things, so I'm checking with my team.

I'll get back to you accordingly.

October 10, 2024 at 9:45 am #16273897

ziga pipan

Thank you, I agree it's weird 🙂

October 10, 2024 at 12:35 pm #16275073

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I discussed the issue with the team and I need to reproduce this in a fresh installation and escalate accordingly.

I am working on this and 'll get back to you as soon as I have more information.

October 10, 2024 at 12:37 pm #16275106

ziga pipan

many thanx

October 11, 2024 at 10:43 am #16278780

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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.

October 14, 2024 at 2:17 pm #16286564

ziga pipan

Anything new with that? Any other way to translate this strings? Client is breathing down my neck.

October 15, 2024 at 5:30 am #16288574

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation. The matter is still with our compatibility team, however, I've requested an update again today.

I'll get back to you ASAP, your patience is highly appreciated.

October 15, 2024 at 1:10 pm #16290922

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

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.

Checking the state of the Slovenian translations in wordpress.org, they are only hidden link">in a 4%, they need to be hidden link">done here or using another tool as explained in this other hidden link">documentation page.

So you needs to follow the plugin documentation or contact the author.

October 15, 2024 at 4:37 pm #16292027

ziga pipan

Thank you.

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?

October 16, 2024 at 8:26 am #16294008

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates and your understanding.

Yes that should be OK to use both, as long as, you can keep track of which one you need for particular translation.