From 8cf493f8d96a5a0b55d479e01ff1e20b4fb8d209 Mon Sep 17 00:00:00 2001
From: Boris Paing <boris.paing@laposte.net>
Date: Fri, 20 Dec 2019 11:25:20 +0100
Subject: [PATCH] Fix lang switching problem (wrong folder defined for English)

---
 config.php | 2 +-
 foot.php   | 2 +-
 index.php  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/config.php b/config.php
index 05cbf56..42cefed 100644
--- a/config.php
+++ b/config.php
@@ -43,7 +43,7 @@ $availableLanguages =
 		 ], 
 	 'en' => [
 		 'name' => 'english', 
-		 'folder' => 'fr_FR'
+		 'folder' => 'en_GB'
 		 ], 
 	 'es' => [
 		 'name' => 'espaƱol', 
diff --git a/foot.php b/foot.php
index 3a6eec9..4b50e44 100644
--- a/foot.php
+++ b/foot.php
@@ -130,7 +130,7 @@ textdomain('menu');
 								</li>';
 							}
 							
-							putenv('LC_ALL='. LOCALE_CODE);
+							putenv('LC_ALL='. LANG_FOLDER);
 							setlocale(LC_ALL, LOCALE_CODE);
 							?>
 						</ul>
diff --git a/index.php b/index.php
index 37769f6..ff3a924 100644
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@ include('config.php');
 
 defineLang();
 
-putenv('LC_ALL='. LOCALE_CODE);
+putenv('LC_ALL='. LANG_FOLDER);
 setlocale(LC_ALL, LOCALE_CODE);
 
 textdomain("menu");
-- 
GitLab