Firebird News

Thursday, August 21, 2008

adding locale in debian and php

sudo apt-get install language-pack-ro-base or
sudo apt-get install language-pack-fr-base

sudo dpkg-reconfigure locales

locale -a
C
de_AT.utf8
de_BE.utf8
de_CH.utf8
de_DE.utf8
de_LU.utf8
en_US.utf8
fr_BE.utf8
fr_CA.utf8
fr_CH.utf8
fr_FR.utf8
fr_LU.utf8
POSIX
ro_RO.utf8


write an php test script locales.php

setlocale(LC_TIME, 'ro_RO.UTF8'); // note the charset info !
echo strftime("%B");


php locales.php
august

No comments: