Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 7 replies, has 2 voices.

Last updated by Noman 1 year, 5 months ago.

Assisted by: Noman.

Author Posts
January 2, 2024 at 10:51 am #15142921

euodooi

Hi, there's a word on a a button that I need to change it but I can, can you please help?

January 2, 2024 at 11:56 am #15143123

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

To take a closer look at this issue, 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.

Thank you

January 10, 2024 at 6:06 pm #15170943

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

Thanks for providing the login details. I can confirm that the login info is working correctly for me. I’m going to take a closer look at this issue and will get back to you with an update soon.

Thank you for your cooperation

January 11, 2024 at 6:42 pm #15176374

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

- I have thoroughly debugged this issue and found out that the button text is coming from the plugins/learnpress/templates/single-course/buttons/purchase.php file using the below code:

<?php echo esc_html( apply_filters( 'learn-press/purchase-course-button-text', esc_html__( 'Buy Now', 'learnpress' ), $course->get_id() ) ); ?>

- After that it changes the ‘Buy Now’ text to ‘Subscribe Now’ using the .po/.mo file on this location:
wp-content/languages/plugins/learnpress-en_US.po

- I’m able to translate that button from the WPML >> String Translation page using the below URL:
hidden link

But it only shows WPML translation at the front end when I rename/disable the learnpress-ar.mo file from wp-content/languages/plugins/ directory which does not seem expected behavior.

So, to further debug this issue, could you please follow the below steps and see if this resolves your issue:

1. Please take a backup of your site first for safety reasons.

2. We have recently released WPML 4.6.9, could you please update it to the latest version and see if this resolves your issue?

You can update it from Plugins >> Add New page, click the Commercial tab, and then click the “Check for updates” button. Here is the screenshot for more details:
https://wpml.org/wp-content/uploads/2020/04/wpml-force-plugin-update-1.png

3. Please update all outdated plugins to the latest version.

4. If the issue persists, kindly perform the following steps to isolate the cause of the issue:
- Deactivate all plugins except WPML and LearnPress.
- Switch to the parent Eduma theme.
- If the issue is gone, reactivate each plugin one by one to identify the one causing the issue.

Please let me know the results,

Thank you for your cooperation and amazing patience

January 14, 2024 at 8:04 am #15181903

euodooi

Hi thank you for you for your help,
I did all that and couldn't resolve the issue yet, can you please help?!

January 14, 2024 at 3:42 pm #15182509

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

Thanks for following the above steps.

1. Could you please make sure you are using the premium version of the LearnPress plugin on your site and not the free version?

The pro version of the LearnPress plugin is fully compatible with WPML as you can see here in this link: https://wpml.org/plugin/learnpress/

2. If the issue persists with the premium version, then it might be a compatibility issue and we need to reproduce it at a fresh WP site to escalate it to our compatibility team.

I have created a fresh WP and here is the auto login URL:
hidden link

Please install the LearnPress Pro plugin and configure it as you did on your site, try to translate that string, and let me know the results.

Please note that we only need that specific LearnPress plugin functionality, you don't need to set up an entire website or clone your existing site. You can see more details here: https://wpml.org/faq/how-to-reproduce-issues-and-share-them-with-wpml-support/

Please let me know the results,

Thank you for your cooperation

January 17, 2024 at 11:36 am #15194534

euodooi

Hi, can you please fix it with buying a new plugin?

Do you have any other solution from your side?

Thanks.

January 18, 2024 at 9:36 am #15198911

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

Yes, the premium version is expected to resolve this issue seamlessly, as we haven't received any similar reports about it, I just visited to your site and it seems the button shows the correct trasnlation now:
hidden link

Could you please try to clear your browser cache and take another look at it and let me know how it goes?

Thank you for your cooperation

button trasnlation 1.png

The topic ‘[Closed] I need to change the default language arabic word’ is closed to new replies.