BuddyBoss Home – Web › Support Forums › Solutions › Social Learner › Buddypress for learndash – don't translate
- This topic has 4 replies, 2 contibutors, and was last updated 9 years, 1 months ago by Kaspar Bredahl.
Question
September 28, 2015 at 3:02 pm #47386@kasparHi,
I have translated Learndash and the Social Learner theme to Danish (including Boss, Buddypress, bbpress, Buddypress for Learndash (v1.0.4), bbpress for Learndash ).
But on the course page everything doesn’t translate.
The progress bar doesn’t translate when the user is logged in (but only when your logged out)
And the group view on the course page doesn’t translate neither.
– see this link
Page with imagesThe strange thing is that it’s only on the course site that the group informations turn up in English. On the normal group site all is in Danish.
Regarding the progress bar – If you look in the Code of the page on the picture it actually puts in the Danish translation in the code – the code is:
<div class=”progress-wrap”>
<span class=”course-completion-rate”>0 out of 4 steps completed</span><span class=”percent”>0%</span>
<dd class=”course_progress” title=”0 ud af 4 trin afsluttet”>
<div class=”course_progress_blue” style=”width: 0%;”>
</div></dd>
</div>
“0 ud af 4 trin afsluttet” is the Danish translation for “0 out of 4 steps completed”Cheers,
KasparAnswers
September 29, 2015 at 11:02 am #47466@
AnonymousHi @kaspar, need to check it once, will update you shortly
RegardsSeptember 29, 2015 at 1:05 pm #47473@kasparNo problem and thanks
September 30, 2015 at 3:50 am #47526@
AnonymousHi @kaspar
Currently completed %s lesson of %s in total
is part of Sensei translation , Please check your translation string inside for Sensei plugin.Regards
Varun DubeySeptember 30, 2015 at 3:23 pm #47623@kasparHi @vapvarun
I have fixed the issue with “completed %s …” if was due to bad coding in the ld-course-progress.php from learndash. I have fixed it manually and have been in contact with Justin from Learndash, so I think they will fix it for future releases.
But there was also the problem with the english strings for groups at the course page. That is due to an a wrong reference in your Boss learndash plugin. In the file single-sfwd-course.php in line 148-155 there all the names refers to Boss-sensei even though I have brought the boss-learndash module. I have fixed it by renaming the strings but it would be nice if you can change it in the future so I won’t have to do it manually again when there comes an update.
There are also two cases in the main.php for the boss learndash plugin where it’s the case:
line 618 & 684
As well in requirements-class.php – line 22 & 40
Also in widget-boss-edu-course-progress.php line 244 & 247Under admin tab for groups there is also an error.
Here it doesn’t translate “Course settings”
That’s due to:
bp-learndash-group-settings.php
line 18 – where you need to refer it to the language file
- The question ‘Buddypress for learndash – don't translate’ is closed to new replies.