assuming that your url to link never changes, you could use a trick
{{=XML(T('click on the <a href="#">link</a> to proceed'))}}
you have a raw 'click on the <href='#'>link</a> to proceed' to translate
If the link is dynamic, it's a little more convoluted
{{=XML(T('click on the %(link)s to proceed', dict(link=A(T('link ##into
[click link to proceed]'), _href='#'))))}}
you have then 2 strings to translate
'click on the %(link)s to proceed' that is the *surroundings* of the string
that represent the translation for "link"
and
'link ##into [click link to proceed]'
that is only the word *link* to translate
a nice perhaps undocumented addendum to translations in web2py is that you
can "comment" translation strings with two # signs... in you case isn't
strictly necessary, but you may want to have *link* as a *general
translation* and keep it separated from the *link* translation that is
going to be embedded in phrases such as "click *link* to proceed".
On Saturday, October 27, 2012 12:29:03 PM UTC+2, Marin Pranjić wrote:
>
> Let's say you have a sentence: "Click on the link to proceed."
>
> And it should look like this:
>
> Click on the <a href="#">link</a> to proceed.
>
> There are few ways to make a translation string for it.
>
> How would you do it?
>
> Marin
--