Seravo / wordpress

The WordPress project layout used by many of Seravo's customers, suitable also for local development with Vagrant and git deployment
https://seravo.com
GNU General Public License v3.0
104 stars 54 forks source link

No finnish locales in vagrant #37

Closed k1sul1 closed 7 years ago

k1sul1 commented 8 years ago

Running

setlocale(LC_TIME, "fi_FI");
echo strftime(" in Finnish is %A,");

in the vagrant machine fails, it simply prints the english version. This is due to the fi_FI locale missing:

vagrant@box:/data/log$ locale -a
C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
POSIX

Fix:

sudo locale-gen fi_FI
sudo locale-gen fi_FI.UTF-8
sudo update-locale
sudo service php7-fpm restart
ottok commented 7 years ago

Fixed via commit https://github.com/Seravo/wp-palvelu-vagrant/commit/a0155c3cae18fea8f605e81215741baa4e7447fa but not yet build as a new Vagrant image

ottok commented 7 years ago

Seravo WordPress Vagrant box v20161129.13.3300 published.

vagrant@wp-palvelu:~$ locale -a
C
C.UTF-8
de_DE
de_DE.iso88591
de_DE.utf8
en_US
en_US.iso88591
en_US.utf8
et_EE
et_EE.iso88591
et_EE.utf8
fi_FI
fi_FI.iso88591
fi_FI.utf8
fr_FR
fr_FR.iso88591
fr_FR.utf8
nn_NO
nn_NO.iso88591
nn_NO.utf8
POSIX
ru_RU
ru_RU.iso88595
ru_RU.utf8
sv_SE
sv_SE.iso88591
sv_SE.utf8