Re: Internationalization in find results
Thanks Marcelo, I wasn't using the correct approach for this. Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Internationalization in find results
On Thu, Apr 16, 2009 at 2:54 PM, Stu wrote: > > basically what I want to do is, get a list result from find while > still being able to translate the resulting data with : __('word') You seen the TranslationBehavior? http://book.cakephp.org/pt/view/794/Attaching-the-Translate-Behavior-to-your-Models Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 http://mfandrade.wordpress.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Internationalization in find results
Hey guys, I would be surprised to find a solution to this, but here it goes. basically what I want to do is, get a list result from find while still being able to translate the resulting data with : __('word') Didn't catch that now did you? I don't blame you.. here's some code to clear it up: In my Holiday Controller: -- // Simple, just populating an array with holiday names then sending it to my view // $oneHolidays = $this->OneIvrHoliday->OneHoliday->find('list'); $this->set(compact('oneHolidays')); -- In my add.ctp -- //I'm populating my dropdown list with the array I got from my controller, but I my Internationalization to translate them echo $form->select('holiday_id', $oneHolidays, null, null, false); -- Is this even possible? Does anyone have any better advice? I'm pretty sure I'm just complicating things Thanks in advance for any help provided --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---