sensei icon indicating copy to clipboard operation
sensei copied to clipboard

Change to includes/class-sensei-question.php file broke TranslatePress translations of question title

Open jennafarr opened this issue 2 years ago • 0 comments

Steps to Reproduce

After updating from 4.16.1 to 4.18.0, the translation of quiz questions is no longer working (latest version of TranslatePress installed with manual translations). If we remove the new line (673) in /includes/class-sensei-question the translations again appear. Here is that line for reference:

$title_html .= sprintf( esc_html__( '%d. ', 'sensei-lms' ), sensei_get_the_question_number() );

PHP / WordPress / Sensei LMS version

PHP 7.4.33 but confirmed it also exists in 8.2.11, WordPress version 6.3.2

Screenshot 2023-10-24 at 2 50 47 PM

jennafarr avatar Oct 24 '23 20:10 jennafarr