【发布时间】:2011-04-07 06:20:02
【问题描述】:
我在我的 Rails 应用程序 (config/locale/[en|de].yml) 中有一些翻译,我在 <%=t "teasers.welcome" %> 的视图中使用它。示例:
teasers:
welcome: "<strong>Welcome</strong> to the Website ..."
在 Rails 2.3.8 中,这工作得很好,在 Rails 3 中,HTML 被转义并翻译为 &lt;... 我怎样才能防止这种形式的这种翻译,并在我的翻译文件中使用 HTML,就像在 Rails 2.3 中一样。 8?
【问题讨论】:
标签: html ruby-on-rails localization translation