course tool building block user preferred language issue

Discussion created by jonas on Aug 24, 2016
Latest reply on Aug 25, 2016 by jonas

Hi, I'm trying to get the language that the instructor has set in its preferences from a course tool type building block. I use this instruction in a java servlet: LocaleManagerFactory.getInstance().getLocale().getLocale();

It returns the system language of the learn platform but not the user's one. However, requesting this same servlet from code embedded in jshacks does return the correct language (instructor's preferred one).


Thanks in advance.