Display Enrolment expiration date

Re: Display Enrolment expiration date

by Sebastien Jaffredo -
Number of replies: 1

The course name is not essential anyhow, it could be replaced by "this course".

Still, I'm wondering why the language filter doesn't work here.

Our site being bilingual, it's better if the text displays only in the selected language (French or Japanese). When that's not possible or practical I display both languages.

In reply to Sebastien Jaffredo

Re: Display Enrolment expiration date

by Justin Hunt -
Picture of Particularly helpful Moodlers Picture of Plugin developers
The multilang filter doesn't work here because the display part of the template is happening in javascript, ie after the page has been sent to the browser. So the time for multi-lang'ing has passed.


It is turning into a bit of an adventure , but it would be possible to just poke the date and duration values into the text on the page. Then you could have  the surrounding text generated as usual , and processed by multi lang as usual. So its possible, and just requires a little more thought. Let me know if you want to do that.