Issue with theme Language string

Issue with theme Language string

by Chris Kenniburg -
Number of replies: 3
Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello All,

I am trying to include a link in a language string and when I uploaded it to the repository AMOS gave an error.  This was the language string tripping it up"

$string['nomycourses'] = 'You are not enrolled in any courses. <a href="'.$CFG->wwwroot.'/course/"> Find and enroll in a course</a>';


Is there a better way to include the link?

Average of ratings: -
In reply to Chris Kenniburg

Re: Issue with theme Language string

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

I would have broken it up into two seperate language strings.

$string['youarenotenrolledinanycourse'] = 'You are not enrolled in any courses.';

$string['findandenroleinacourse'] = 'Find and enrol in a course.';

Where is all this code written in Fordson?

its just that I think the way you are presenting this URL the syntax of the whole line looks wrong to me.

Mary

In reply to Mary Evans

Re: Issue with theme Language string

by Chris Kenniburg -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Mary, 

Thanks!  I think that is an easier way of doing things as I can put the link in the php code and just use the language strings.  So much simpler than what I was envisioning.

Thank you for the suggestion!  I hope to have a new version of Fordson with the new MicroPD preset ready before we all leave for the holidays!

-Chris