From: vincent@cubedesigners.com Date: Wed, 13 Dec 2017 10:46:46 +0000 (+0000) Subject: wip #1710 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=26f232c910b552184ed21d8d1b1440d6e432150c;p=cubeextranet.git wip #1710 @0.25 --- diff --git a/inc/ws/Util/html5/centerbook/class.ws.html5.compiler.php b/inc/ws/Util/html5/centerbook/class.ws.html5.compiler.php index e7924bca2..60aace958 100644 --- a/inc/ws/Util/html5/centerbook/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/centerbook/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[] = "