Add this line to your app_controller:
$os = env('OS');
if (!empty ($os) && strpos($os, 'Windows') !== false) {
setlocale(LC_ALL, 'Spanish (Argentina)');
} else {
setlocale(LC_ALL, 'es_AR');
}
in case that you are in Argentina, of course. If you are not, well, I
think you will be able to change that :)
Cheers,
mbavio
On Jun 3, 10:24 am, Adriano Varoli Piazza <[EMAIL PROTECTED]> wrote:
> I'd like to translate the months in a $form->dateTime to Spanish. I've
> seen that I can change the __generateOptions method in form.php, but
> I'd like not to touch the core if at all possible. What would be the
> best way to do this?
>
> TIA
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---