From b29b7df9acd67e8d2059766db4a743bc98d3effd Mon Sep 17 00:00:00 2001 From: Marcelo Griggio Cajueiro Date: Mon, 3 Jan 2011 12:21:13 -0200 Subject: Used internationalization for the months in the file list. --- app/helpers/blog_posts_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/helpers') 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 << "
  • " html << link_to(text, archive_blog_posts_path(:year => year, :month => month)) html << "
  • " -- cgit v1.2.3