From 51095b80910618f7ce5bf1d991f46dd5fab5aa2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Fri, 3 Dec 2010 09:58:16 +0200 Subject: Moved some text to locale. --- app/views/blog/posts/archive.html.erb | 14 ++++++++------ app/views/blog/shared/_rss_feed.html.erb | 2 +- config/locales/en.yml | 6 +++++- 3 files changed, 14 insertions(+), 8 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] %> -

Blog Archive for <%= @archive_date.strftime('%B %Y') %>

-
- <%= render :partial => "/blog/shared/post", :collection => @blog_posts %> -
- <%= "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 %> +

<%= t('.blog_archive_for', :date => @archive_date.strftime('%B %Y')) %>

+ <% if @blog_posts.any? %> +
+ <%= render :partial => "/blog/shared/post", :collection => @blog_posts %> +
+ <% else %> +

<%= t('.no_blog_articles_posted', :date => @archive_date.strftime('%B %Y')) %>

+ <% 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 @@

<%= t('.title') %>

-<%= link_to "Subscribe", blog_rss_feed_url, :id => "rss_feed_subscribe"%> +<%= link_to t('.subscribe'), blog_rss_feed_url, :id => "rss_feed_subscribe"%> diff --git a/config/locales/en.yml b/config/locales/en.yml index 9bd9ab0..d48621e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -88,6 +88,7 @@ en: title: Categories rss_feed: title: RSS Feed + subscribe: Subscribe posts: other: Other Posts created_at: 'Posted on %{when}' @@ -114,4 +115,7 @@ en: add: Make a Comment other: Other Blog Posts filed_in: Filed in - submit: Send comment \ No newline at end of file + submit: Send comment + archive: + blog_archive_for: Blog Archive for %{date} + no_blog_articles_posted: There are no blog articles posted for %{date}. Stay tuned. -- cgit v1.2.3