If you are using the latest version from SVN, put this in AppController:
function beforeFilter()
{
App::import('L10n');
$this->L10n = new L10n;
$this->L10n->get('spa');
}
then in app/locale/spa/LC_MESSAGES/default.po:
http://bin.cakephp.org/view/330669756
Regards,
- Dardo Sordi
On Tue, Jun 3, 2008 at 5:07 PM, 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 :)
>
> 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
-~----------~----~----~----~------~----~------~--~---