Skip to content

Instantly share code, notes, and snippets.

@mjtko
Created September 12, 2011 15:23
Show Gist options
  • Save mjtko/1211538 to your computer and use it in GitHub Desktop.
Save mjtko/1211538 to your computer and use it in GitHub Desktop.
locales.en.yml
for_further_info_html: 'For further information, please view the %{link}.'
for_further_info: 'For further information, please view the %{link}.'
info_link: 'the info link'
view:
# works with 'magic suffix'
t '.for_further_info_html', :link => link_to(t('.info_link'), '/info', target: '_blank')
# doesn't work, wtf?
t '.for_further_info', :link => link_to(t('.info_link'), '/info', target: '_blank').html_safe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment