Re: Translate field names

2009-10-07 Thread emmexx
Thank you Brian for the explanation. maxx --~--~-~--~~~---~--~~ 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 ema

Re: Translate field names

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 3:11 PM, emmexx wrote: > > > > On 6 Ott, 19:54, brian wrote: >> Do you have a .po file containing a translation for 'table_id'? And >> have you set the language? > > Not yet but I expected that without a po file, or a translation, the > label defaulted to the value used au

Re: Translate field names

2009-10-06 Thread emmexx
On 6 Ott, 19:54, brian wrote: > Do you have a .po file containing a translation for 'table_id'? And > have you set the language? Not yet but I expected that without a po file, or a translation, the label defaulted to the value used automatically by cake. I mean, if there's a belongTo field in

Re: Translate field names

2009-10-06 Thread brian
Do you have a .po file containing a translation for 'table_id'? And have you set the language? http://book.cakephp.org/view/163/Localization-in-CakePHP On Tue, Oct 6, 2009 at 10:54 AM, emmexx wrote: > > On 25 Set, 12:47, "rich...@home" wrote: >> No, you only want to translate the label, not th

Re: Translate field names

2009-10-06 Thread emmexx
On 25 Set, 12:47, "rich...@home" wrote: > No, you only want to translate the label, not the field name : > > echo $form->input("field_name", array("label"=>__("field_name"))); I tried what you suggested but the result is not what I espected. 1st attempt: echo $form->input('table_id', array('la

Re: Translate field names

2009-09-28 Thread emmexx
On 25 Set, 12:47, "rich...@home" wrote: > No, you only want to translate the label, not the field name : > > echo $form->input("field_name", array("label"=>__("field_name"))); Ok, thank you, not a recipe as simple as I imagined but easy enough to do it by hand. bye maxx --~--~-~--~

Re: Translate field names

2009-09-25 Thread rich...@home
No, you only want to translate the label, not the field name : echo $form->input("field_name", array("label"=>__("field_name"))); On Sep 25, 9:19 am, emmexx wrote: > On 25 Set, 02:18, brian wrote: > > > __('field_name') > > Do you mean that I can use in a view something like the following? > >

Re: Translate field names

2009-09-25 Thread emmexx
On 25 Set, 02:18, brian wrote: > __('field_name') > Do you mean that I can use in a view something like the following? echo $form->input(__('date')); Thanks maxx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Translate field names

2009-09-24 Thread brian
he Translate behaviour is useful to translate field values but I want > to translate the field name, that is use another label for the name of > one or more fields in a table. > > I can't believe cakephp has not a mechanism to translate field names: > they'

Translate field names

2009-09-24 Thread emmexx
. I can't believe cakephp has not a mechanism to translate field names: they're used in forms and views by cake... Thank you maxx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" grou