le-chat-php icon indicating copy to clipboard operation
le-chat-php copied to clipboard

LANG

Open nextiongod opened this issue 6 months ago • 4 comments

How can i change the default language of le-chat-php from english to others?

nextiongod avatar Aug 05 '25 02:08 nextiongod

Hello @nextiongod , far at the bottom of the script is the settings section. define('LANG', 'en'); // Default language is currently the default, but you can change the language code to your preferred language to use that as default.

DanWin avatar Aug 05 '25 09:08 DanWin

That's why i asked. stills on english, should i need to do something else?

nextiongod avatar Aug 05 '25 23:08 nextiongod

it is configured on "Spanish" but stills on english on the webpage (completely vanilla le-chat)

Image

nextiongod avatar Aug 05 '25 23:08 nextiongod

This is working correctly for me. Note that there is a cookie set once the language is determined, so that it stays consistent. Also your browser may be set to automatically request English as the preferred language. Most browsers allow you to set the preferred language to use when visiting a website and set it to your system language by default. This is handled inside the load_lang function. If you want to disable this behavior, you could either remove the intl extension of PHP, or remove the code related to this.

DanWin avatar Aug 06 '25 16:08 DanWin