From be9dc700832140d17c4a3223e2739fc5d651452c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 6 Jan 2021 13:46:06 +0100 Subject: [PATCH] Recommend intl during WCFSetup Resolves #3811 --- .../files/lib/system/WCFSetup.class.php | 3 +++ wcfsetup/setup/lang/setup_de.xml | 2 ++ wcfsetup/setup/lang/setup_en.xml | 2 ++ .../template/stepShowSystemRequirements.tpl | 22 +++++++++++++++++++ 4 files changed, 29 insertions(+) diff --git a/wcfsetup/install/files/lib/system/WCFSetup.class.php b/wcfsetup/install/files/lib/system/WCFSetup.class.php index 85f6f259fc..5501823ac4 100644 --- a/wcfsetup/install/files/lib/system/WCFSetup.class.php +++ b/wcfsetup/install/files/lib/system/WCFSetup.class.php @@ -388,6 +388,9 @@ class WCFSetup extends WCF { // curl $system['curl']['result'] = @extension_loaded('curl'); + // intl + $system['intl']['result'] = @extension_loaded('intl'); + // misconfigured reverse proxy / cookies $system['hostname']['result'] = true; list($system['hostname']['value']) = explode(':', $_SERVER['HTTP_HOST'], 2); diff --git a/wcfsetup/setup/lang/setup_de.xml b/wcfsetup/setup/lang/setup_de.xml index a5d7af280e..b7fd72b1ba 100644 --- a/wcfsetup/setup/lang/setup_de.xml +++ b/wcfsetup/setup/lang/setup_de.xml @@ -40,6 +40,8 @@ + + diff --git a/wcfsetup/setup/lang/setup_en.xml b/wcfsetup/setup/lang/setup_en.xml index d86df05720..d73a594f6f 100644 --- a/wcfsetup/setup/lang/setup_en.xml +++ b/wcfsetup/setup/lang/setup_en.xml @@ -40,6 +40,8 @@ + + diff --git a/wcfsetup/setup/template/stepShowSystemRequirements.tpl b/wcfsetup/setup/template/stepShowSystemRequirements.tpl index 4df7c7a5c0..d3311f833e 100644 --- a/wcfsetup/setup/template/stepShowSystemRequirements.tpl +++ b/wcfsetup/setup/template/stepShowSystemRequirements.tpl @@ -205,6 +205,28 @@ + +
+

{lang}wcf.global.systemRequirements.intl{/lang}

+ +
+
+
{lang}wcf.global.systemRequirements.element.recommended{/lang}
+
{lang}wcf.global.systemRequirements.active{/lang}
+
+ +
+
{lang}wcf.global.systemRequirements.element.yours{/lang}
+
+ + {if !$system.intl.result}{lang}wcf.global.systemRequirements.notActive{/lang}{else} + {lang}wcf.global.systemRequirements.active{/lang} + {/if} + {if !$system.intl.result}{lang}wcf.global.systemRequirements.intl.description{/lang}{/if} +
+
+
+
-- 2.20.1