Translate texts with gettext
This commit is contained in:
5
chat.php
5
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
|
function load_config(): void
|
||||||
|
Reference in New Issue
Block a user