From: vincent@cubedesigners.com Date: Fri, 24 Nov 2017 15:26:23 +0000 (+0000) Subject: fix #1802 @0:15 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=69aae16b78114787e0a26d90b7804819004cc83d;p=cubeextranet.git fix #1802 @0:15 --- 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[] = "