Welcome Guest, Not a member yet? Register   Sign In
setlocale() seems to do nothing
#1

(This post was last modified: 04-28-2023, 02:24 PM by sjender.)

Hello,
I want to give my users the option to change their locale (only for their account).
I read the locale can be set by using `$this->request->setLocale('nl');`.
But this still prints 'en'.
PHP Code:
        $this->request->setLocale('nl');
        echo $this->request->getLocale();
       
//output: en 

And still the english language files are used.
Is there a way I can dynamicly change the locale (without using the locale in the url) ?
Reply


Messages In This Thread
setlocale() seems to do nothing - by sjender - 04-28-2023, 02:23 PM
RE: setlocale() seems to do nothing - by kenjis - 04-28-2023, 06:58 PM
RE: setlocale() seems to do nothing - by kenjis - 04-28-2023, 10:23 PM
RE: setlocale() seems to do nothing - by sjender - 04-29-2023, 12:10 AM
RE: setlocale() seems to do nothing - by kenjis - 04-29-2023, 03:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB