Translate texts with gettext

This commit is contained in:
2025-10-24 12:19:57 +02:00
parent deefcfe8e8
commit c5e4747962
+5
View File
@@ -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 function load_config(): void