Added localization to comments views

This commit is contained in:
Ariel Zavala 2010-09-17 03:00:21 +08:00 committed by Raphael Sofaer
parent 813dfae059
commit db7ad16503
2 changed files with 2 additions and 2 deletions

View file

@ -9,4 +9,4 @@
= link_to post.person.real_name, post.person = link_to post.person.real_name, post.person
= auto_link sanitize post.text = auto_link sanitize post.text
%div.time %div.time
= "#{time_ago_in_words(post.updated_at)} ago" = "#{time_ago_in_words(post.updated_at)} #{t('.ago')}"

View file

@ -9,4 +9,4 @@
= f.text_area :text, :rows => 1, :id => "comment_text_on_#{post.id}", :class => "comment_box" = f.text_area :text, :rows => 1, :id => "comment_text_on_#{post.id}", :class => "comment_box"
= f.hidden_field :post_id, :value => post.id = f.hidden_field :post_id, :value => post.id
%p{:style => "text-align:right;"} %p{:style => "text-align:right;"}
= f.submit "Comment", :class => "comment_submit button" = f.submit t('.comment'), :class => "comment_submit button"