Enable setlocale and strftime PHP functions on OS X.2
Aug 08, '03 10:29:00AM • Contributed by: Sebus
Aug 08, '03 10:29:00AM • Contributed by: Sebus
The setlocale and strftime functions don't work on OS X.2. For example, if I make a PHP file that says:
Monday 04 August 2003 ... that's too bad!
So I built a package for enabling locales. After installing it, the same program returns:
Lundi 4 Aout 2003
The package supports over 20 locales, with multiple settings within each locale, and can be downloaded here: locales package
[robg adds: I haven't tested this one...]
setlocale(LC_TIME, 'fr');
echo strftime("%A %d %B %Y");
The result is:
Monday 04 August 2003 ... that's too bad!
So I built a package for enabling locales. After installing it, the same program returns:
Lundi 4 Aout 2003
The package supports over 20 locales, with multiple settings within each locale, and can be downloaded here: locales package
[robg adds: I haven't tested this one...]
•
[4,712 views]
