aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGuirec CORBEL <dougui_bzh@hotmail.com>2011-05-29 14:34:53 -0400
committerGuirec CORBEL <dougui_bzh@hotmail.com>2011-05-29 14:34:53 -0400
commit0310b489542106e6bcb5d8db6327af86daeddb5b (patch)
tree36b28233a6c358a2ecd0c676b479ee892b8b6c59 /app
parent3a5d3f56f3446704e1e5c1564011d88e257af97c (diff)
downloadrefinerycms-blog-0310b489542106e6bcb5d8db6327af86daeddb5b.tar.gz
refinerycms-blog-0310b489542106e6bcb5d8db6327af86daeddb5b.tar.bz2
refinerycms-blog-0310b489542106e6bcb5d8db6327af86daeddb5b.zip
add some options for translation and translate in french
Diffstat (limited to 'app')
-rw-r--r--app/views/blog/posts/_post.html.erb4
-rw-r--r--app/views/blog/posts/tagged.html.erb2
-rw-r--r--app/views/blog/shared/_post.html.erb4
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 &#8220;#{@tag_name.titleize}&#8221;".html_safe -%>
+<% content_for :body_content_title, "#{t('.posts_tagged')} &#8220;#{@tag_name.titleize}&#8221;".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') %>