From 4610c71e092cd51fc81c75a03b2f9b187a36e6ec Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Sun, 10 Dec 2023 11:02:11 +0100 Subject: [PATCH] Translate texts with gettext --- chat.php | 5 +++++ 1 file changed, 5 insertions(+) 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