From d76cb10ea1902eb9d567b69d1a70c19cfe82644e Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 20 Jun 2020 13:30:29 +1000 Subject: [PATCH] dev/translation#48 Add check for PHP-Intl Extension --- CRM/Utils/Check/Component/Env.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CRM/Utils/Check/Component/Env.php b/CRM/Utils/Check/Component/Env.php index 1cbf084c60ac..4753496c8cc6 100644 --- a/CRM/Utils/Check/Component/Env.php +++ b/CRM/Utils/Check/Component/Env.php @@ -986,4 +986,18 @@ public function checkMysqlVersion() { return $messages; } + public function checkPHPIntlExists() { + $messages = []; + if (!extension_loaded('intl')) { + $messages[] = new CRM_Utils_Check_Message( + __FUNCTION__, + ts('This system currently does not have the PHP-INTL extension enabled please contact your system administrator about getting the extension enabled'), + ts('Missing PHP Extension: INTL'), + \Psr\Log\LogLevel::WARNING, + 'fa-server' + ); + } + return $messages; + } + }