Some hosting providers may disable putenv for security reasons, check before using

This commit is contained in:
2025-10-24 12:19:58 +02:00
parent b9c416a183
commit b3a7d9951a
+2
View File
@@ -4897,7 +4897,9 @@ function load_lang(): void
}
}
}
if(function_exists('putenv')) {
putenv('LC_ALL='.$locale);
}
setlocale(LC_ALL, $locale);
bindtextdomain('le-chat-php', __DIR__.'/locale');
bind_textdomain_codeset('le-chat-php', 'UTF-8');