public function exportpreprocess() { global $CFG; require_once "{$CFG->libdir}/smarty/Smarty.class.php"; // assign the language for the export: by parameter, SESSION, USER, or the default of 'en' $lang = current_language(); $this->lang = $lang; return parent::exportpreprocess(); }