Missing translation in dashboard
-
Hi,
I tried to send it to you via your contact page on your site, but the “proceed” button just keeps on spinning until the ReCaptcha is no longer valid…
We use TutorLMS on a site in French, so we translated everything… but I’ve noticed a couple of places where there was some PHP code missing, and therefore the translation is not used (i.e. stays in English)…
1- In the file “tutor/templates/dashboard/enrolled-courses/active-courses.php”, on line 15, the code is missing the “, ‘tutor'” string, so the translation doesn’t kick in (i.e. should be <?php _e(‘All Courses’, ‘tutor’); ?>);
2- Similarly, in the file “tutor/templates/dashboard/completed-courses.php”, on lines 15 and 16, both “All Courses” and “Active Courses” are missing the “, ‘tutor'” string;
3- Finally, in the file tutor/templates/dashboard/dashboard.php, on line 96, the code gets the course’s status (I guess “publish”, “private”, “draft”, etc) and is diplayed as is (plus a class that capitalize the output)… So, I don’t know if you can do it, but this line should probably read:
<small class=”label-course-status label-course-<?php echo $course->post_status; ?>”> <?php echo _e($course->post_status, ‘tutor’); ?></small>
and you would have to add all the possible outputs (“publish”, “private”, “draft”, etc.) in the .po/.pot file for us to be able to translate it…Thank you.
Nelson
- The topic ‘Missing translation in dashboard’ is closed to new replies.