Tuesday 13 October 2015

Moodle: Change current session lang in your local plugins

Hi,

I'm creating some code in my moodle local plugins and webservices and I'd like to "force" use a specific language. The solution that I found is:

$SESSION->lang = 'ca';

Best regards,
Iban Cardona.

No comments:

Post a Comment