开发者

handing over a link into the translation

开发者 https://www.devze.com 2023-01-31 06:16 出处:网络
I just upgraded to rails 3 and face a problem handing over a link to a translation: I used to do this as follows:

I just upgraded to rails 3 and face a problem handing over a link to a translation:

I used to do this as follows:

t('translation_dest', :link => link_path)

And in my translations:

translation_dest: "blabla {{link}} blabla"

In rails 3 the link doesnt show up just {开发者_Python百科{link}} as text.

Any Ideas are wellcome! Maechi


{{}} is deprecated, try %{link}

0

精彩评论

暂无评论...
验证码 换一张
取 消