diff options
author | Philip Arndt <parndt@gmail.com> | 2011-05-31 14:27:33 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2011-05-31 14:27:33 +1200 |
commit | 4f45963b9e2c3477ace8a48f5097fa50e9cdffa6 (patch) | |
tree | 1a59d022f0487e5e50880620476f06dece1ae831 /app | |
parent | 8fc9af832c101078b49fdfa6cdbb9d8187fb8668 (diff) | |
parent | d5f35854baf0c8fc17d0cb165d342555c2b33d22 (diff) | |
download | refinerycms-blog-4f45963b9e2c3477ace8a48f5097fa50e9cdffa6.tar.gz refinerycms-blog-4f45963b9e2c3477ace8a48f5097fa50e9cdffa6.tar.bz2 refinerycms-blog-4f45963b9e2c3477ace8a48f5097fa50e9cdffa6.zip |
Merged remote branch 'Dougui/add_translation'
Diffstat (limited to 'app')
-rw-r--r-- | app/views/blog/posts/_post.html.erb | 4 | ||||
-rw-r--r-- | app/views/blog/posts/tagged.html.erb | 2 | ||||
-rw-r--r-- | app/views/blog/shared/_post.html.erb | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/app/views/blog/posts/_post.html.erb b/app/views/blog/posts/_post.html.erb index f589a33..e5aabdb 100644 --- a/app/views/blog/posts/_post.html.erb +++ b/app/views/blog/posts/_post.html.erb @@ -8,8 +8,8 @@ <h1><%= @blog_post.title %></h1> <details> <time datetime="<%=l @blog_post.published_at.to_date, :format => :default %>" class='posted_at'> - <%= t('blog.shared.posts.created_at', :when => l(@blog_post.published_at.to_date, :format => :short)) %>. - </time><%= " by #{@blog_post.author.username}" if @blog_post.author.present? %> + <%= t('blog.shared.posts.created_at', :when => l(@blog_post.published_at.to_date, :format => :short)) %> + </time><%= "#{t('blog.posts.show.by')} #{@blog_post.author.username}" if @blog_post.author.present? %>. <% if (categories = @blog_post.categories).any? %> <aside class='filed_in'> <%= t('blog.posts.show.filed_in') %> diff --git a/app/views/blog/posts/tagged.html.erb b/app/views/blog/posts/tagged.html.erb index 29de791..904150f 100644 --- a/app/views/blog/posts/tagged.html.erb +++ b/app/views/blog/posts/tagged.html.erb @@ -1,4 +1,4 @@ -<% content_for :body_content_title, "Posts tagged “#{@tag_name.titleize}”".html_safe -%> +<% content_for :body_content_title, "#{t('.posts_tagged')} “#{@tag_name.titleize}”".html_safe -%> <% content_for :body_content_left do %> <% if @blog_posts.any? %> diff --git a/app/views/blog/shared/_post.html.erb b/app/views/blog/shared/_post.html.erb index 716c1ad..05c6af2 100644 --- a/app/views/blog/shared/_post.html.erb +++ b/app/views/blog/shared/_post.html.erb @@ -4,8 +4,8 @@ <h1><%= link_to post.title, blog_post_url(post) %></h1> <details> <time datetime="<%=l post.published_at.to_date, :format => :default %>" class='posted_at'> - <%= t('blog.shared.posts.created_at', :when => l(post.published_at.to_date, :format => :short)) %>. - </time><%= " by #{post.author.username}" if post.author.present? %> + <%= t('blog.shared.posts.created_at', :when => l(post.published_at.to_date, :format => :short)) %> + </time><%= "#{t('blog.shared.posts.by')} #{post.author.username}" if post.author.present? %>. <% if (categories = post.categories).any? %> <aside class='filed_in'> <%= t('filed_in', :scope => 'blog.posts.show') %> |