Can a default locale value be placed in file php.ini or .htaccess?
The equivalent of the PHP function
setlocale(LC_MONETARY, 'it_IT');
for example.
A "Locale" is an identifier used to get language, culture, or regionally-specific behavior from an API. PHP locales are organized and identified the same way that the CLDR locales used by ICU (and many vendors of Unix-like operating systems, the Mac, Java, and so forth) use.
ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits. This file is located on your server in the /public_html folder.
It can. Take a look at intl.default_locale
.
There's nothing in the php.ini file to help you. But as an alternative you could try setting environment variables from file .htaccess:
SetEnv LC_ALL it_IT.UTF-8
But these settings only take effect for the CGI and FastCGI versions of PHP at best, not for the usual mod_php installation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With