I believe you are missing one more set of quotes:
<a href="{{=URL(r=request,f='index')}}" onclick="return confirm(' {{=T
('Are you sure?')}} ');">Delete</a>

On Aug 19, 10:46 pm, weheh <[email protected]> wrote:
> I have a link that will delete a file. I want to prompt the user with
> a request for confirmation before the file is deleted. The following
> view works correctly:
>
> <a href="{{=URL(r=request,c='info',f='delete')}}" onclick="return
> confirm('Are you sure?');">Delete</a>
>
> What I want is to be able to translate the text "Are you sure?" into
> other languages, a la:
>
> <a href="{{=URL(r=request,c='info',f='delete')}}" onclick="return
> confirm({{=T('Are you sure?')}});">Delete</a>
>
> but this doesn't work. Anybody know how to make this work correctly?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to