From a8b8e2d81d95afca91db8f7c385da63c2dd19cd2 Mon Sep 17 00:00:00 2001 From: v-dumas Date: Mon, 1 Jun 2026 12:39:26 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B09553=20-=20take=20into=20account=20feedb?= =?UTF-8?q?acks=20from=20review?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup/moduleinstaller.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/moduleinstaller.class.inc.php b/setup/moduleinstaller.class.inc.php index 0c143a06d..4761faf62 100644 --- a/setup/moduleinstaller.class.inc.php +++ b/setup/moduleinstaller.class.inc.php @@ -355,7 +355,7 @@ abstract class ModuleInstallerAPI throw new CoreUnexpectedValue("LoadLocalizedData expects sFirstLoadingVersion to match x.y[.z][-name], got '{$sFirstLoadingVersion}'"); } if (substr_count($sFilePattern, '{{language_code}}') !== 1) { - throw new CoreUnexpectedValue("LoadLocalizedData expects sFilePattern to contain the exact placeholder '{{language_code}}' exactly once"); + throw new CoreUnexpectedValue("LoadLocalizedData expects $sFilePattern to contain the exact placeholder '{{language_code}}' exactly once"); } } @@ -366,7 +366,6 @@ abstract class ModuleInstallerAPI /** * @param array|string $sFileName - * @param \XMLDataLoader $oDataLoader * * @return void * @throws \Exception @@ -396,6 +395,7 @@ abstract class ModuleInstallerAPI $sLang = str_replace(' ', '_', strtolower($sLanguage)); $sFileName = str_replace('{{language_code}}', $sLang, $sFilePattern); if (!file_exists($sFileName)) { + etupLog::Debug("No data file found matching the pattern $sFilePattern and language_code $sLang. Trying with 'en_us' as fallback."); $sLang = 'en_us'; $sFileName = str_replace('{{language_code}}', $sLang, $sFilePattern); }