assign('course_condition', api_get_cidreq()); $language = 'en'; $platformLanguage = api_get_interface_language(); $iso = api_get_language_isocode($platformLanguage); $filePart = "vendor/studio-42/elfinder/js/i18n/elfinder.$iso.js"; $file = api_get_path(SYS_PATH).$filePart; $includeFile = ''; if (file_exists($file)) { $includeFile = ''; $language = $iso; } $template->assign('elfinder_lang', $language); $template->assign('elfinder_translation_file', $includeFile); $template->display('default/javascript/editor/ckeditor/elfinder.tpl');