diff --git a/chat.php b/chat.php index 8338995..544558e 100644 --- a/chat.php +++ b/chat.php @@ -4852,6 +4852,11 @@ function load_lang(): void } } } + putenv('LC_ALL='.$locale); + setlocale(LC_ALL, $locale); + bindtextdomain('le-chat-php', __DIR__.'/locale'); + bind_textdomain_codeset('le-chat-php', 'UTF-8'); + textdomain('le-chat-php'); } function load_config(): void