sensei icon indicating copy to clipboard operation
sensei copied to clipboard

Quiz not function on translated lessons with WPML

Open DaveGunn opened this issue 3 years ago • 1 comments

Steps to Reproduce

Multilingual course available in English, French, and Spanish, with translations created through WPML, all lessons containing the same content and configured the same way, with a required quiz, 80% pass requirement, and reset option.

With WPML active the English version of the lesson functions as expected, but the French and Spanish Lessons do not display the Quiz buttons, just the option to complete the lesson which allowed the course to be progressed without any quiz being passed.

Deactivating WPML the Quiz buttons show in English on French and Spanish lessons and the questions show and function as expected.

Reactivating WPML the quiz button is now displayed in the correct language, but clicking it shows a page that only shows the pass requirement, and a warning "There are no questions for this quiz yet. Come back and check it out soon!" both notices are correctly translated.

What I Expected

Translated content configured through WPML should function the same as the original language.

What Happened Instead

Quiz links and content on translated lessons do not show or function correctly, with requirements skipped.

PHP / WordPress / Sensei LMS version

PHP 7.4.3 Wordpress 6.0.2 Sensei 4.6.4 WPML 4.5.11

Browser / OS version

Chrome on Windows

Context / Source

I have an older site functioning well with Sensei and WPML to deliver multilingual learning content. Replicating the development with the latest versions of plugins is sadly a much poorer experience.

DaveGunn avatar Oct 03 '22 14:10 DaveGunn

Related to https://github.com/Automattic/sensei/issues/2788, https://github.com/Automattic/sensei/pull/2830

yscik avatar Oct 17 '22 22:10 yscik