diff --git a/app/views/spree/blogs/admin/blogs/index.html.erb b/app/views/spree/blogs/admin/blogs/index.html.erb index 5a49a6e..5c8a337 100644 --- a/app/views/spree/blogs/admin/blogs/index.html.erb +++ b/app/views/spree/blogs/admin/blogs/index.html.erb @@ -1,6 +1,6 @@ <%= render :partial => 'spree/admin/shared/configuration_menu' %> -
| <%= link_to post.title, object_url(post) %> | <%= post.blog.nil? ? "n/a" : link_to(post.blog.name, admin_posts_path(:search => { :blog_id_equals => post.blog_id })) %> | <%= l post.posted_at, :format => :date_time %> | -<%= post.live ? 'Yes' : 'No' %> | +<%= post.live ? t(:yes) : t(:no) %> |
<%= link_to_edit post %>
<%= link_to_delete post %>
diff --git a/app/views/spree/blogs/admin/posts/show.html.erb b/app/views/spree/blogs/admin/posts/show.html.erb
index dd9f8f2..ec79a41 100644
--- a/app/views/spree/blogs/admin/posts/show.html.erb
+++ b/app/views/spree/blogs/admin/posts/show.html.erb
@@ -1,5 +1,5 @@
<%= render :partial => 'spree/blogs/admin/shared/post_tabs', :locals => {:current => "Post Details"} %>
- posted in <%= link_to @post.blog.name, edit_admin_blog_path(@post.blog) %> +<%=t 'spree.blogs.posted_in' %> <%= link_to @post.blog.name, edit_admin_blog_path(@post.blog) %> <%= h(l @post.posted_at, :format => :detailed).gsub(/\s0/, ' ') %>diff --git a/config/locales/en.yml b/config/locales/en.yml index 6aeb070..9bc923c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3,6 +3,9 @@ en: # Spree Hax! Missing translation... image_settings_description: "Image Settings" + 'yes': "Yes" + 'no': "No" + activerecord: attributes: blog: @@ -33,10 +36,13 @@ en: new: new_blog: New Blog index: + listing: Listing Blogs new_blog: New Blog posts: + index: + listing: Listing Posts new: new_post: New Post post_products: @@ -61,6 +67,7 @@ en: title: Recent Posts archive: Blog Archive no_posts: No posts found! + posted_in: posted in posts: index: blog: Blog |