Added localization to status message views

This commit is contained in:
Ariel Zavala 2010-09-16 15:47:12 -04:00
parent ec9affb849
commit 6a967e7fe9
3 changed files with 10 additions and 10 deletions

View file

@ -6,5 +6,5 @@
= form_for StatusMessage.new, :remote => true do |f|
= f.error_messages
%p
= f.text_field :message, :value => "tell me something good"
= f.submit 'oh yeah!', :class => 'button'
= f.text_field :message, :value => t('.tell_me_something_good')
= f.submit t('.oh_yeah'), :class => 'button'

View file

@ -15,11 +15,11 @@
.info
= link_to(how_long_ago(post), object_path(post))
\--
= link_to "show comments (#{post.comments.count})", '#', :class => "show_post_comments"
= link_to "#{t('.show_comments')} (#{post.comments.count})", '#', :class => "show_post_comments"
= render "comments/comments", :post => post
- if current_user.owns?(post)
.destroy_link
= link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "delete"
= link_to t('.delete'), status_message_path(post), :confirm => t('.are_you_sure'), :method => :delete, :remote => true, :class => "delete"

View file

@ -3,20 +3,20 @@
-# the COPYRIGHT file.
- title "Status Message"
- title t('.status_message')
%p
%strong Message:
%strong="#{t('.message')}:"
= @status_message.message
%p
%strong Owner:
%strong="#{t('.owner')}:"
= @status_message.person.real_name
%h4= "comments (#{@status_message.comments.count})"
%h4= "#{t('.comments')} (#{@status_message.comments.count})"
= render "comments/comments", :post => @status_message
%p
= link_to "Destroy", @status_message, :confirm => 'Are you sure?', :method => :delete
= link_to t('.destroy'), @status_message, :confirm => t('.are_you_sure'), :method => :delete
|
= link_to "View All", status_messages_path
= link_to t('.view_all'), status_messages_path