Hello Derek, field names seem to be automatically translated, see line 412 of form.php:
http://api.cakephp.org/1.2/form_8php-source.html#l00398 No, flash does not seem to translate the message: http://api.cakephp.org/1.2/libs_2controller_2controller_8php-source.html#l00760 Regards, Christoph On 12 Mai, 18:28, drumdance <[EMAIL PROTECTED]> wrote: > I tried figuring this out from the source code, but after 15 minutes > of poking around in various files I thought someone here may know if > off the top of their head. > > Do the Html and Form helpers do automatic translation for field names? > In other words, do I need to do this: > > echo $form->input('username', array('label'=>__('Username',true)); > > ...or will the label attribute (whether specified like here or > generated automatically) be put through __() before rendering? > > And while we're on the topic, does flash() do that as well? > > TIA, > Derek --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---