yml ファイルを使用して Web サイトをローカライズする必要があります。しかし、次の点で問題があります。
<tr>
<td><%= link_to author.name, :action => 'show', :id => author %></td>
<td><%= link_to 'Edit', :action => 'edit', :id => author %></td>
<td>
<%= button_to t(:delete), {:action => 'destroy', :id => author},
{:method => :delete,
:confirm => "Are you sure you want to delete author #{author.name}?"} %>
:confirm => t(:sure_delete_author, :authorname=>#{author.name}) } %>
</td>
</tr>
t(:delete)
正常に機能しますが、確認は機能しません。オリジナルと動作していないものを残しました。