aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorMarcelo Griggio Cajueiro <marcelocajueiro@gmail.com>2011-01-03 12:21:13 -0200
committerMarcelo Griggio Cajueiro <marcelocajueiro@gmail.com>2011-01-03 12:21:13 -0200
commitb29b7df9acd67e8d2059766db4a743bc98d3effd (patch)
treeea3f35809a360cfe0c4774a2654b17fb2bc06160 /app/helpers
parent17c27b01c203b1a9795a835a44eb3a8953b91059 (diff)
downloadrefinerycms-blog-b29b7df9acd67e8d2059766db4a743bc98d3effd.tar.gz
refinerycms-blog-b29b7df9acd67e8d2059766db4a743bc98d3effd.tar.bz2
refinerycms-blog-b29b7df9acd67e8d2059766db4a743bc98d3effd.zip
Used internationalization for the months in the file list.
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/blog_posts_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/blog_posts_helper.rb b/app/helpers/blog_posts_helper.rb
index c428d18..965eb8f 100644
--- a/app/helpers/blog_posts_helper.rb
+++ b/app/helpers/blog_posts_helper.rb
@@ -15,7 +15,7 @@ module BlogPostsHelper
year = l.split('/')[1]
month = l.split('/')[0]
count = BlogPost.by_archive(Time.parse(l)).size
- text = "#{Date::MONTHNAMES[month.to_i]} #{year} (#{count})"
+ text = t("date.month_names")[month.to_i] + " #{year} (#{count})"
html << "<li>"
html << link_to(text, archive_blog_posts_path(:year => year, :month => month))
html << "</li>"