From 69aae16b78114787e0a26d90b7804819004cc83d Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 24 Nov 2017 15:26:23 +0000 Subject: [PATCH] fix #1802 @0:15 --- inc/ws/Util/html5/master/class.ws.html5.compiler.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index e7924bca2..94c07866b 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -270,6 +270,13 @@ class wsHTML5Compiler { $e[1] = mb_strtoupper($lang); } $lang = implode('_', $e); + + $langsMap = ['fr' => 'fr_FR', 'en' => 'en_US']; + + if (isset($langsMap[$lang])) { + $lang = $langsMap[$lang]; + } + $this->beginBody[] = "