set default language in translator from session

This commit is contained in:
Uwe Steinmann 2025-10-28 21:36:56 +01:00
parent 7a1729e0c8
commit c649d9e495

View File

@ -65,6 +65,8 @@ if (!isset($_COOKIE["mydms_session"])) {
} }
} }
$translator->setDefaultLanguage($session->getLanguage());
/* Update last access time */ /* Update last access time */
if((int)$resArr['lastAccess']+60 < time()) if((int)$resArr['lastAccess']+60 < time())
$session->updateAccess($dms_session); $session->updateAccess($dms_session);