aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2010-12-03 09:58:16 +0200
committerUģis Ozols <ugis.ozolss@gmail.com>2010-12-03 09:58:16 +0200
commit51095b80910618f7ce5bf1d991f46dd5fab5aa2a (patch)
tree80f3f2584f39e8cdc0f0120de2f8cd979971c225 /app/views/blog
parent2db680dd9835bdfb01ebfff90398ae5a9d8b45da (diff)
downloadrefinerycms-blog-51095b80910618f7ce5bf1d991f46dd5fab5aa2a.tar.gz
refinerycms-blog-51095b80910618f7ce5bf1d991f46dd5fab5aa2a.tar.bz2
refinerycms-blog-51095b80910618f7ce5bf1d991f46dd5fab5aa2a.zip
Moved some text to locale.
Diffstat (limited to 'app/views/blog')
-rw-r--r--app/views/blog/posts/archive.html.erb14
-rw-r--r--app/views/blog/shared/_rss_feed.html.erb2
2 files changed, 9 insertions, 7 deletions
diff --git a/app/views/blog/posts/archive.html.erb b/app/views/blog/posts/archive.html.erb
index abeb0c1..d44aa7f 100644
--- a/app/views/blog/posts/archive.html.erb
+++ b/app/views/blog/posts/archive.html.erb
@@ -1,11 +1,13 @@
<% content_for :body_content_left do %>
<%= @page[Page.default_parts.first.to_sym] %>
- <h1>Blog Archive for <%= @archive_date.strftime('%B %Y') %></h1>
- <section id="blog_posts">
- <%= render :partial => "/blog/shared/post", :collection => @blog_posts %>
- </section>
- <%= "There are no blog articles posted for #{@archive_date.strftime('%B %Y')}. Stay tuned." unless @blog_posts.any? %>
- <%# TODO: Add locale logic here - hubble is a n00b at that %>
+ <h1><%= t('.blog_archive_for', :date => @archive_date.strftime('%B %Y')) %></h1>
+ <% if @blog_posts.any? %>
+ <section id="blog_posts">
+ <%= render :partial => "/blog/shared/post", :collection => @blog_posts %>
+ </section>
+ <% else %>
+ <p><%= t('.no_blog_articles_posted', :date => @archive_date.strftime('%B %Y')) %></p>
+ <% end %>
<% end %>
<% content_for :body_content_right do %>
diff --git a/app/views/blog/shared/_rss_feed.html.erb b/app/views/blog/shared/_rss_feed.html.erb
index 047298e..1c2cef7 100644
--- a/app/views/blog/shared/_rss_feed.html.erb
+++ b/app/views/blog/shared/_rss_feed.html.erb
@@ -1,2 +1,2 @@
<h2><%= t('.title') %></h2>
-<%= link_to "Subscribe", blog_rss_feed_url, :id => "rss_feed_subscribe"%>
+<%= link_to t('.subscribe'), blog_rss_feed_url, :id => "rss_feed_subscribe"%>