[Resolved] Issue Translating PayPal Button in WooCommerce with WPML
This thread is resolved. Here is a description of the problem and solution.
Problem: You are using WPML to translate your WordPress site with WooCommerce and are trying to translate the PayPal button text 'Paga in 3 rate' into English (coming via 'WooCommerce PayPal Payments' plugin). However, you couldn't find where to translate the PayPal button string in WPML’s String Translation section or WooCommerce settings.
Solution: First, ensure that your WPML plugin and all related add-ons are updated to the latest version. Follow these steps to attempt locating and translating the string: 1. Navigate to WPML → String Translation. 2. Enable the option to auto-register strings. 3. Visit the page displaying the untranslated strings. 4. Return to WPML → String Translation to check if the string has been registered. 5. If found, proceed to translate the registered string. For more detailed instructions, visit finding strings that don't appear on the String Translation page. If the string is not available, it might be due to it being sourced from an external iframe, as in the case of the PayPal button. This content is not directly translatable through WPML because it either does not pass the language parameter correctly or PayPal applies its own localization logic. In such cases, consult with the 'WooCommerce PayPal Payments' support.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. Also, check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our 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’m using WPML to translate my WordPress site with WooCommerce. I am trying to translate the PayPal button that says 'Paga in 3 rate' into English.
Symptoms:
I couldn’t find where to translate the PayPal button string. I have already checked WPML’s String Translation section and WooCommerce settings but couldn’t locate an option to modify it.
Questions:
How can I translate the PayPal button text 'Paga in 3 rate' using WPML?
While one of my teammates works on your ticket, I'll provide you with some initial debugging steps.
Have you tried locating the strings using the following method?
1. Go to WPML → String Translation.
2. Enable the option to auto-register strings.
3. Navigate to the page where the untranslated strings are displayed.
4. Return to WPML → String Translation and check if the string has been registered.
5. If it is registered, translate the string.
Before proceeding, please ensure that your WPML plugin and add-ons are updated to the latest version, 4.7.1. This will allow you to take advantage of the latest bug fixes and improvements. While this update may not directly resolve your problem, it is essential for troubleshooting with the most current code.
You can check the latest available versions by going to "My Account -> Downloads" on our website. Instructions for updating can be found here: http://wpml.org/faq/install-wpml/
If you do not see any updates available, you may need to click the “Check for Updates” button in the Plugins → Add New Plugin → Commercial tab.
Please remember to back up your database before proceeding with any updates.
Let us know if the issue persists after you've completed the steps.
Thank you for contacting the support. I'm assigned this ticket and 'll try my best to help you fix the issue.
I need to take a closer look at your site. 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.
I'm trying the steps you mentioned but unfortunately can not see that button which you showed and referred to in your first message on this ticket (see attached).
Is there anything missing to make that button visible/available? I've tried increasing cart amount, changing shipping method and etc.
Please check and when you enable that button, please let me know also the steps, so I can understand where it is coming from.
I believe the issue might be related to PayPal’s automatic location detection based on IP. Even though I have set the payment method to be available for all countries and the site currency is correctly set to EUR, it’s possible that PayPal is hiding the “Pay in 3 installments” button for users accessing from unsupported regions.
Could you please try using a VPN set to an Italian IP or a country where this payment option is available and check again?
I was able to see that button by connecting via Spain (for Italy the site was unreachable). So I then enabled string tracking from WPML -> String Translation, but unfortunately either that or a conflict caused a fatal error and site isn't working anymore.
Since I don't have FTP access, I was not able to deactivate WPML (or any other plugin for that matter since there are lot of plugins active).
Can you please restore the site again? And then only leave WPML, String Translation, WooCommerce, WCML and the related PayPal payment plugin.
And also provide the FTP access so I can then deal with such an issue on my own.
I've enabled your next reply as private for updated access information (including FTP).
Thank you for the updates. However, I'm seeing "Briefly unavailable for scheduled maintenance. Check back in a minute." message when trying to access the site.
I'll check again in the morning and 'll get back to you accordingly.
Thank you for your patience and cooperation. Site was back and I was able to access it.
I've investigated in very much detail and apparently those 2 buttons are being loaded from an external resource (paypal) via an iFrame (i.e. an external document being loaded from somewhere else). In this case, WPML has no control over it.
However, I've escalated this to our 2nd tier team for an opinion, like if this is really on WPML or should you check with the plugin author.
I'll update you as soon as I hear back. Please leave the staging site as-it-is for now.
Looks like this needs more investigation and a proper escalation as advised by the team. So I'll take a backup of the site and 'll escalate accordingly.
Please let me know if the following are OK for you?
- Removing unnecessary plugins and themes from the staging site.
- Taking a backup of the site for escalation.
P.S.: I'll be off over the weekend and 'll be able to attend on Monday.
Thank you for the confirmation. I've created a package after deleting unnecessary data and 've escalated the issue to our compatibility team.
I'll update you as soon as there's more to it.
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.