On Wed, Jun 4, 2008 at 9:27 AM, Adriano Varoli Piazza <[EMAIL PROTECTED]> wrote:
>
> On 3 jun, 17:07, mbavio <[EMAIL PROTECTED]> wrote:
>> 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 :)
>>
>
> Works, thanks, but what about the $os check? is it really necessary? I
> don't have a Linux machine to test, much less a Mac, but would it work
> on those systems?
>
The OS check is there because Windows--as always--does this in a
stupidly non-standard way. So your question really should be, "Will it
work on Windows?" To which the answer is, Yes, apparently, if one
includes the OS check and calls the first version for Windows.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---