i guess you want to to that in an action / component / lib class  for any of
those you might wanna try sfLoader class or, just make your lib class let's
name it  textTool. In this class you might wanna write the code of __()
function
if you want to use in a javascript file, then all your texts might be
written as values for some hidden fields or as innerHTMLin some hidden span
elements





On Sun, Feb 15, 2009 at 11:12 PM, Iltar <[email protected]> wrote:

>
> When i want a custom message for like a form error:
> array(
>        'min_length' => __('Your username cannot contain less then 6
> characters.'),
>        'max_length' => __('Your username cannot contain more than 32
> characters.')
> )
>
> The __() ofcourse doesn't work... How can i insert an english but make
> it translatable?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to