diff --git a/inc/common.php b/inc/common.php
index 84ae248..3a68eb8 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -1,4 +1,5 @@
".
- "If you already installed PHP8 but are still seeing this error, then it means ".
- "apache/nginx/.. is loading an older PHP version. Eg. on Debian/Ubuntu you need ".
- "apt-get install libapache2-mod-php8.2
(or a similar version) and ".
- "apt-get remove libapache2-mod-php7.4
(or a similar version). ".
- "You may also need to choose again the PHP module to load in apache via a2enmod php8.2
");
+ die(sprintf(__('requirements_php_version'), PHP_VERSION));
+
}
$loaded_extensions = get_loaded_extensions();
@@ -27,7 +24,7 @@ function check_requirements()
if (count($missing_extensions) > 0)
{
- $text = "The following PHP module(s) need to be loaded:
\n
$cmd
".
- "and restart your webserver (eg: systemctl restart apache2
for apache).";
+ $text .= sprintf(__('requirements_extensions_missing_cmd'), $cmd);
die($text);
}
}
@@ -192,24 +187,24 @@ function write_config_file()
$tmpfile = UPATH.'/config/config.tmp.'.bin2hex(random_bytes(8)).'.php';
$fd = fopen($tmpfile, "w");
if (!$fd)
- die("Could not write to temporary config file $tmpfile.