I’m working on an app using the french locale. I use the default date
selector for a date field in a form.

On my DEV machine, months name are displayed correctly in french, but
on my PROD server, they are not translated.

DEV is OS X Server running PHP 5.3.4
PROD is UBUNTU running PHP 5.3.2

Both report the same default locale: C

Doing some test in a simple PHP file, I have discovered that setlocale
don’t use the same settings:

DEV: setlocale(LC_TIME, 'fr_FR');
PROD: setlocale(LC_TIME, 'fr_FR.utf8');

I tried adding setlocale(LC_TIME, 'fr_FR.utf8'); to bootstrap.php but
that doesn’t work.

I don’t really understand how CakePHP works his magic with l10n, so it
makes it harder to debug.

Suggestions?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to