Permalink
Browse files

Format editable translation text in locales/show.

  • Loading branch information...
1 parent ca7eb2e commit d6618ca9e185a5210b951ab226d7c2bf4d4556af Craig Davey committed Apr 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/tolk/locales/show.html.erb
View
2 app/views/tolk/locales/show.html.erb
@@ -36,7 +36,7 @@
<%= hidden_field_tag :"translations[][id]", translation.id, :id => "#{translation.object_id}_id" %>
<%= hidden_field_tag :"translations[][phrase_id]", phrase.id, :id => "#{translation.object_id}_phrase_id" %>
<%= hidden_field_tag :"translations[][locale_id]", translation.locale_id, :id => "#{translation.object_id}_locale_id" %>
- <%= text_area_tag :"translations[][text]", translation.text, :class => "locale", :id => "#{translation.object_id}_text", :onfocus => "$(this).up('tr').addClassName('active');", :onblur => "$(this).up('tr').removeClassName('active');" %>
+ <%= text_area_tag :"translations[][text]", format_i18n_text_area_value(translation.text), :class => "locale", :id => "#{translation.object_id}_text", :onfocus => "$(this).up('tr').addClassName('active');", :onblur => "$(this).up('tr').removeClassName('active');" %>
</td>
<td class="phrase">
<% if params[:q].present? -%>

0 comments on commit d6618ca

Please sign in to comment.