diff options
author | Philip Arndt <parndt@gmail.com> | 2011-07-01 09:12:27 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2011-07-01 09:12:27 +1200 |
commit | 47a71b309f4fb364449167ddc6ed978b6969e047 (patch) | |
tree | 842ef03d0fbec90a14666cdeaf6285d54d6feed0 /app/views/blog/shared/_post.html.erb | |
parent | 46021c66f476747a21ee62bf7acbcd9cb169bd25 (diff) | |
download | refinerycms-blog-47a71b309f4fb364449167ddc6ed978b6969e047.tar.gz refinerycms-blog-47a71b309f4fb364449167ddc6ed978b6969e047.tar.bz2 refinerycms-blog-47a71b309f4fb364449167ddc6ed978b6969e047.zip |
Making use of translation scopes.
Diffstat (limited to 'app/views/blog/shared/_post.html.erb')
-rw-r--r-- | app/views/blog/shared/_post.html.erb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/views/blog/shared/_post.html.erb b/app/views/blog/shared/_post.html.erb index 2281691..0f65e1d 100644 --- a/app/views/blog/shared/_post.html.erb +++ b/app/views/blog/shared/_post.html.erb @@ -4,8 +4,9 @@ <h1><%= link_to post.title, blog_post_url(post) %></h1> <section class='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><%= "#{t('blog.posts.show.by')} #{post.author.username}" if post.author.present? %>. + <%= t('created_at', :scope => 'blog.shared.posts', :when => l(post.published_at.to_date, :format => :short)) %> + </time> + <%= "#{t('by', :scope => 'blog.posts.show')} #{post.author.username}" if post.author.present? %>. <% if (categories = post.categories).any? %> <aside class='filed_in'> <%= t('filed_in', :scope => 'blog.posts.show') %> @@ -25,14 +26,14 @@ </section> <footer> <p> - <%= link_to t('blog.shared.posts.read_more'), blog_post_url(post) %> + <%= link_to t('read_more', :scope => 'blog.shared.posts'), blog_post_url(post) %> </p> <aside class='comment_count'> <% if BlogPost.comments_allowed? %> <% if post.comments.any? %> - (<%= pluralize(post.comments.approved.count, t('blog.shared.comments.singular')) %>) + (<%= pluralize(post.comments.approved.count, t('singular', :scope => 'blog.shared.comments')) %>) <% else %> - (<%= t('blog.shared.comments.none') %>) + (<%= t('none', :scope => 'blog.shared.comments') %>) <% end %> <% end %> </aside> |