From 7ef015aecae76cd1647adc928820b8c72568c909 Mon Sep 17 00:00:00 2001 From: Matteo Latini Date: Tue, 26 Jun 2012 14:58:38 +0200 Subject: [PATCH] adds some missing translations --- app/views/spree/blogs/admin/blogs/index.html.erb | 2 +- app/views/spree/blogs/admin/posts/index.html.erb | 6 +++--- app/views/spree/blogs/admin/posts/show.html.erb | 2 +- config/locales/en.yml | 7 +++++++ 4 files changed, 12 insertions(+), 5 deletions(-) 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' %> -

Listing Blogs

+

<%=t "spree.blogs.admin.blogs.index.listing" %>

diff --git a/app/views/spree/blogs/admin/posts/index.html.erb b/app/views/spree/blogs/admin/posts/index.html.erb index 17ede87..32d82d3 100644 --- a/app/views/spree/blogs/admin/posts/index.html.erb +++ b/app/views/spree/blogs/admin/posts/index.html.erb @@ -1,13 +1,13 @@

-

Listing Posts

+

<%=t "spree.blogs.admin.posts.index.listing" %>

@@ -25,7 +25,7 @@ - +
<%= 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