Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

adds some missing translations #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/spree/blogs/admin/blogs/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%= render :partial => 'spree/admin/shared/configuration_menu' %>

<h1>Listing Blogs</h1>
<h1><%=t "spree.blogs.admin.blogs.index.listing" %></h1>

<table class="index">
<thead>
Expand Down
6 changes: 3 additions & 3 deletions app/views/spree/blogs/admin/posts/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div class='toolbar'>
<ul class='actions'>
<li>
<p><%= button_link_to "New Post", new_object_url, :icon => 'add' %></p>
<p><%= button_link_to t("spree.blogs.admin.posts.new.new_post"), new_object_url, :icon => 'add' %></p>
</li>
</ul>
<br class='clear' />
</div>

<h1>Listing Posts</h1>
<h1><%=t "spree.blogs.admin.posts.index.listing" %></h1>

<table class="index">
<thead>
Expand All @@ -25,7 +25,7 @@
<td><%= link_to post.title, object_url(post) %></td>
<td><%= post.blog.nil? ? "n/a" : link_to(post.blog.name, admin_posts_path(:search => { :blog_id_equals => post.blog_id })) %></td>
<td><%= l post.posted_at, :format => :date_time %></td>
<td><%= post.live ? 'Yes' : 'No' %></td>
<td><%= post.live ? t(:yes) : t(:no) %></td>
<td>
<%= link_to_edit post %> &nbsp;
<%= link_to_delete post %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/spree/blogs/admin/posts/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%= render :partial => 'spree/blogs/admin/shared/post_tabs', :locals => {:current => "Post Details"} %>
<p>posted in <%= link_to @post.blog.name, edit_admin_blog_path(@post.blog) %></p>
<p><%=t 'spree.blogs.posted_in' %> <%= link_to @post.blog.name, edit_admin_blog_path(@post.blog) %></p>
<h4><%= h(l @post.posted_at, :format => :detailed).gsub(/\s0/, ' ') %></h4>
<br/>

Expand Down
7 changes: 7 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ en:
# Spree Hax! Missing translation...
image_settings_description: "Image Settings"

'yes': "Yes"
'no': "No"

activerecord:
attributes:
blog:
Expand Down Expand Up @@ -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:
Expand All @@ -61,6 +67,7 @@ en:
title: Recent Posts
archive: Blog Archive
no_posts: No posts found!
posted_in: posted in
posts:
index:
blog: Blog
Expand Down