Translate texts with gettext

This commit is contained in:
2023-12-10 11:02:11 +01:00
parent fac752f61b
commit 4610c71e09

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