Missing setlocale languages

Hey,

I can’t use setlocale php function on my native language so the dates are still in english language.

February instead of Február

If I use the followed command I get the die message which means it’s not installed yet.

setlocale(LC_ALL, 'hu_HU') or die('Locale not installed');

How can I resolve this in this environment?

Kind regards,
Krisztian

Hi @chrisdark86

As a workaround for now, you could try adding this to the start of your theme’s functions.php file. After the change you’ll want to Stop and Restart your Local site:

setlocale(LC_ALL, 'hu_HU.UTF-8');
putenv('LC_ALL=hu_HU.UTF-8');

Hey @Nick-B

I tried it as you wrote, but unfortunately it doesn’t works yet.