Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are using WPML with the MasterStudy plugin on your WordPress site to manage online courses. You want students to complete tasks in English without translating the lessons, quizzes, or assignments, but only translate the course pages. However, when students switch the language, the course disappears from their enrolled courses tab, even though all tasks have been duplicated. If they access the course in a different language than they started with, they have to start over.
Solution:
The issue arises because the MasterStudy plugin is designed to handle course enrollments independently per language. To address this, you could request the MasterStudy team to modify their plugin to sync courses between languages. Alternatively, disabling the language switcher on account pages might help, as it prevents language switching on these pages, though users could still switch languages from other pages. Another workaround could involve using a redirect plugin to direct users from the translated course page to the original course page. However, this might undermine the purpose of translating the site. It's important to note that syncing course progress across languages is not currently supported by MasterStudy, and this functionality would require significant changes by the MasterStudy team.

If this solution does not resolve your issue or seems outdated, we recommend opening a new support ticket. We also advise 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. 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.

This topic contains 12 replies, has 2 voices.

Last updated by Andreas W. 1 year ago.

Assisted by: Andreas W..

Author Posts
May 31, 2024 at 1:25 am #15690359

fabianoS

Background of the issue:
I am using WPML with the MasterStudy plugin on my WordPress site to manage online courses. I want my students to complete tasks in English without translating the lessons, quizzes, or assignments, but only translate the course pages.

Symptoms:
When students switch the language, the course disappears from their enrolled courses tab, even though all tasks have been duplicated. If they access the course in a different language than they started with, they have to start over.

Questions:
How can I keep the courses synchronized across languages without translating the content (and also incase I need to translate them in the future), while still translating the pages and products?
How can students view courses they've enrolled regardless the language they're using?

May 31, 2024 at 4:47 am #15690495

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Could you please have a quick view of our last ticket and let me know if my suggestions could solve at least one of the issues?

https://wpml.org/forums/topic/lessons-quizzes-and-assignments-in-masterstudy/

---

I have created the following test site on which I installed the free version of MasterStudy so that we run tests.

One-Site-Login:
hidden link

Here I imported the demo courses, lessons, quizzes, and questions.

Then I first translated all the pages with the WPML Translation Editor.

By default the plugin is setting all its post types to "Translatable - only show translatable content" which means that the author recommends translating all courses, lessons, and quizzes and has locked the setting with a specific wpml-config.xml config file which you can find in the root folder of the MasterStudy plugin.

See WPML > Settings > Post Types Translations. Click the lock-symbol to unlock a setting.

My test:

I have set the courses inside the WPML settings to "Translatable - only show translatable content" and translated the course.

I have translated a few courses.

The lessons, quizzes, and questions have not been translated and are using the setting "Translatable - use translations if available or fallback to default language".

This means, that the original lessons, quizzes, and questions should be displayed on translated courses.

So far, this setup appears to work for the courses, but I see an issue when trying to access enrolled courses from the translated account page at:

hidden link

The endpoint "enrolled-courses" appears not to exist in my second language.

If I switch the language to English for this user, who enrolled in a course on the German version of the website, I can see an available course, but is the original English version of the course and it does not sync the progress status. As this is the English account page the user will get redirected to the English version of the course:

hidden link

Now, if I review the documentation of Maste Study they actually say this:

Lessons, Quizzes and Assignments should be translated first before Courses. Otherwise, translations are not synchronized within the Courses.

Source:
hidden link

I suggest you follow MasterStudies suggestions on this matter.

Best regards
Andreas

May 31, 2024 at 5:05 am #15690532

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I ran some further tests, and it does not look as if the synchronization between courses is working, even if I translate everything.

I will run more tests and then get back to you.

May 31, 2024 at 1:58 pm #15692893

fabianoS

Hi Andreas,

I wanted to update you on the issue I previously marked as resolved. Initially, my problem was that lessons, quizzes, and assignments were not displayed at all in the translated course pages. Your recommendations fixed that issue, and everything seemed to be working fine.

However, after a few days, another problem emerged. The synchronization wasn't working properly, which became apparent as my students started switching languages while taking the course. Despite trying both top-to-bottom and bottom-to-top translations as recommended by MasterStudy, the issue persists.

I've currently deactivated the plugin because it was causing a lot of confusion among my students. I appreciate your support and hope we can find a solution soon.

Thank you,

Fabiano

May 31, 2024 at 5:24 pm #15693583

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I ran a test and the synchronization seems only to update itself once a client opens a course in another language.

See my test site here:
hidden link

Also, I realized that the enrolled courses on the account page are only visible if you use the same slug for both profile pages.

I will need to review the code of MasterStudy to see if we can find a solution for this issue.

June 1, 2024 at 1:15 am #15694335

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

It looks as if the plugin is not supporting to sync the progress between languages. It uses a custom table to save courses per user on which it saves also the progress.

Each course saves its proper progress status. This means the plugin is not properly syncing the status between original and translated courses.

This issue has been escalated to our compatibility team for further revision and I will contact you again once I received feedback from our team.

June 4, 2024 at 11:17 am #15701721

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Our compatibility team confirmed that the behavior is expected in this case and caused by the design of MasterStudy LMS.

We recommend you report the issue to the support for MasterStudy LMS and ask them to open a Feature Request for achieving the expected behavior with WPML.

Best regards
Andreas

June 5, 2024 at 2:51 pm #15707734

fabianoS

Hi Andreas,

Thank you for your patience and assistance.

I received a response from MasterStudy support regarding my inquiry. Here's the gist:

They emphasized that courses in different languages are inherently distinct, as the content and progress are separate. For instance, enrolling in an English course won't mirror progress in another language.

Original message;

"
Ma***** Go******* (StylemixThemes)

Jun 5, 2024, 08:37 GMT+5

There should be a synch by default, because, 1 course in English is not the same course for the other course in another language. They are two different courses by default. For example the progress of the English course won't be the same if you will enroll course on another language

Best regards

"

Considering this, I need confirmation on a few points to ensure I'm not overlooking anything:

Upon purchase, courses in different languages feel like the same lesson because there's no additional payment required to access a different language version.

Regarding translatable content:
a) If I enable "translatable" lessons, quizzes, and assignments, switching languages mid-course results in no content being displayed, causing confusion.
b) Using the same slug for different languages leads to the same issue of missing content upon language switch.

Opting for "translatable" content that defaults to the original language if not translated presents similar challenges. Content displays, but synchronization is lacking, potentially confusing students.

Instructors switching languages leads to students being isolated in their respective language classrooms. Completion of tasks in different languages results in duplicate entries with differing progress.

Despite these challenges, I appreciate the plugin's potential. However, I'm struggling to find a solution that ensures seamless progress for my students without confusion.

One potential workaround I'm considering involves translating pages and including affiliate links to redirect students to the original course. However, this may necessitate changing slugs, potentially complicating access.

Overall, I'm hoping to find a solution that maintains clarity and progression for my students. Your continued support is invaluable.

Thank you.

June 5, 2024 at 3:13 pm #15707849

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

We do sadly not have influence from our side on this behavior.

If you do not translate the courses, then they will not be available in a second language.

I also tested the fallback method, which should display the original content in a second language if a translation does not exist, but it does not work when it comes to the courses.

The synchronization of the courses can only be achieved by the plugin author and if the author is not cooperative on this matter, then there is sadly not more we can do about it from our side.

I could only suggest that you disable the WPML language switcher on the account pages using CSS:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/how-to-display-or-hide-the-language-switcher-on-specific-pages/

June 6, 2024 at 2:06 pm #15711634

fabianoS

Hi Andreas.

"If you do not translate the courses, then they will not be available in a second language."

I tried translating them as well. I just need students to have access to the same content in whatever language they want. I could translate everything if that solved the problem.
But as you're saying it's not possible.

Your collegues offered a meeting yesterday, but nobody turned up for the call.

"The synchronization of the courses can only be achieved by the plugin author and if the author is not cooperative on this matter, then there is sadly not more we can do about it from our side."

The author keeps replying as it should be something easy and straightfoward to fix. So I feel the problem is on my end for not being able to explain or do something about it.
However, I double read everything you replied and it seems you understand the issues I'm facing.

"I could only suggest that you disable the WPML language switcher on the account pages using CSS"

That's a good solution if they are already in the original language to prevent them to switching languages, but if they come from a translated home page, won't they still navigate in the language they chose initially?

I really wanted to use this plugin, as the multi currency really helps as well, but I guess we tried and it's sadly not compatible to what I need.

Would you give me instruction on how to request a refund?

Thanks again for your assistence on this matter.

June 6, 2024 at 7:34 pm #15713171

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

The MasterStudy Team will need to adapt the code of their plugin to make courses synced between languages. It seems they designed the plugin on purpose in this way.

Our compatibility team can not help on this matter. We would only consider creating our own addon to obtain compatibility with MasterStudy if it would be a plugin that is used by the majority of WPML users, and this is not the case.

The reply from our compatibility team was:

"I'm afraid this is per design and enrolment courses are independent. I recommend telling our client to open a feature request with the Masterstudy team."

You could disable the language switcher on the account pages. Users should still be able to navigate from other pages in the same language to the account page, but they will not be able to switch the language while on the account page.

Anyhow, this would not prevent someone goes to the Homepage, switching to another language, and then going to an account page in a different language.

I am sorry to hear that you are asking for a refund, but sadly we were not able to find a solution for the issue. It is not even WPML-related, it is simply how the MasterStudy plugin works in its current state. This means you might very likely run into similar issues using other multilingual plugins with MasterStudy.

MasterStudy is already using WPML-related code in their plugin and they would need to adjust their own code to sync the course progress between languages.

For example, Leanrpress comes with a WPML Addon in its PRO version. They also handle such compatibility themselves. I am at this point sadly not aware if Leanrpress handles syncing course progress between languages, but this would be something that their own WPML Addon would handle.

To ask for a refund please follow this link:
https://wpml.org/purchase/refunds/

Best regards
Andreas

June 8, 2024 at 2:40 pm #15718443

fabianoS

Hi Andrea,

Thank you for your help. Would it work if I translated only the course pages and not the lessons, quizzes... Then, I would add a lesson to the translated courses explaining that the course isn't available in their native language and asking them to switch to English using the language switcher below. Would that work?

Am I able to create lessons in the translated courses that aren't displayed in the original language?

I apologize for persisting, but I’m keen to find a solution.

I tried to do what I mentioned above, but after resetting WPML, the pages won't translate. I will open a new ticket for this issue.

Thank you.

June 8, 2024 at 9:08 pm #15718679

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I have tried to use the fallback setting for courses, which should usually display original courses in other languages if the courses are not translated, but sadly it appears not to work with this plugin.

As you can see here, my translated courses page stays empty:
hidden link

You could use a redirect plugin to redirect users from the translated course page to the original one, and so on but in this case I would not even see much sense in translating the website after all.

Or you could add a banner to the profile page and point out to users that course progress is not synced between different languages.

To be honest, I would only expect that somehow:

For example, you offer a course about a technological topic, offer it in English and German.
If someone took a course in English, it does not automatically mean that he would pass the same course if it is in German languages, as you will need to be familiar with specific terms in each language. If the user obtains a certificate for each course in each language, then you might get the idea that the person speaks perfectly German, when the person does not.

This is something that the author will need to investigate and consider if it should get fixed or not, or maybe they could add an option to allow syncing or not.

About your last comment:

It is not recommended to reset WPML. You should only reset WPML if you are no longer planning to use WPML on the site, as resetting WPML will remove DB tables and settings.

Please open a new ticket so that we can take closer look into this.