Welcome Guest, Not a member yet? Register   Sign In
Dynamically changing supported languages
#10

Yes actually, I didn't say it, but then I also tried this way and I'm still using it, but getLocale() and setLocale() ignore it. Also because Settings does not overwrite the values of the config files, but allows you to store them in the database and use those stored in the files only if they do not exist in the database.

I have seen that if I change the value in the "system\HTTP\IncomingRequest.php" file constructor:

from

PHP Code:
$this->validLocales $config->supportedLocales

to

PHP Code:
$this->validLocales service('settings')->get('App.supportedLocales'); 

then it works fine as I expect, but I would like to avoid modifying the files under system folder.
Reply


Messages In This Thread
RE: Dynamically changing supported languages - by chronic - 10-29-2021, 01:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB