From: Vincent Vanwaelscappel Date: Mon, 27 May 2024 12:02:41 +0000 (+0200) Subject: wip #6915 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=49a3022f18af34735e4d0c81b67f5ecd49c9af6f;p=fluidbook-toolbox.git wip #6915 @0.5 --- diff --git a/app/Elearning/QuizCompiler.php b/app/Elearning/QuizCompiler.php index 9fd0603a5..b53ace60a 100644 --- a/app/Elearning/QuizCompiler.php +++ b/app/Elearning/QuizCompiler.php @@ -316,8 +316,8 @@ class QuizCompiler extends Base $mix = 'const mix = require("laravel-mix");'; foreach ($this->mixDirectories as $from => $to) { - if (!file_exists($this->compilePath ."/". $from)) { - Log::debug('skip ' . $this->compilePath .'/'. $from); + if (!file_exists($this->compilePath . "/" . $from)) { + Log::debug('skip ' . $this->compilePath . '/' . $from); continue; } $mix .= 'mix.copyDirectory("' . $from . '","' . $to . '");'; diff --git a/app/Elearning/QuizCompiler/L10N.php b/app/Elearning/QuizCompiler/L10N.php index c44059162..cf82850ae 100644 --- a/app/Elearning/QuizCompiler/L10N.php +++ b/app/Elearning/QuizCompiler/L10N.php @@ -13,6 +13,7 @@ trait L10N protected function getTranslations() { + $res = ElearningTranslate::getLocaleTranslations($this->data->translation, true); if (is_array($this->data->translations)) { $res = array_merge($res, $this->data->translations);