diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2010-12-10 11:11:02 +0200 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2010-12-10 11:11:02 +0200 |
commit | 6b9b639fd47799535a57f42e48df51af09535cd4 (patch) | |
tree | ca2b14d4bb5c6c69d596afaed62a5007e53c627c | |
parent | 58da388652f82276d4a5e7d6c801c1fa91bf6695 (diff) | |
download | refinerycms-blog-6b9b639fd47799535a57f42e48df51af09535cd4.tar.gz refinerycms-blog-6b9b639fd47799535a57f42e48df51af09535cd4.tar.bz2 refinerycms-blog-6b9b639fd47799535a57f42e48df51af09535cd4.zip |
Move 'Archives' text to locale.
-rw-r--r-- | app/helpers/blog_posts_helper.rb | 4 | ||||
-rw-r--r-- | config/locales/en.yml | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/app/helpers/blog_posts_helper.rb b/app/helpers/blog_posts_helper.rb index 53bdb75..0f76f68 100644 --- a/app/helpers/blog_posts_helper.rb +++ b/app/helpers/blog_posts_helper.rb @@ -2,7 +2,9 @@ module BlogPostsHelper def blog_archive_list posts = BlogPost.select('published_at').all_previous return nil if posts.blank? - html = '<section id="blog_archive_list"><h2>Archives</h2><nav><ul>' + html = '<section id="blog_archive_list"><h2>' + html += t('blog.shared.archives') + html += '</h2><nav><ul>' links = [] posts.each do |e| diff --git a/config/locales/en.yml b/config/locales/en.yml index 14f148f..7a6e49a 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -96,6 +96,7 @@ en: comments: singular: comment none: no comments + archives: Archives categories: show: no_posts: There are no posts here yet. |