diff options
author | Marcelo Griggio Cajueiro <marcelocajueiro@gmail.com> | 2011-01-03 12:21:13 -0200 |
---|---|---|
committer | Marcelo Griggio Cajueiro <marcelocajueiro@gmail.com> | 2011-01-03 12:21:13 -0200 |
commit | b29b7df9acd67e8d2059766db4a743bc98d3effd (patch) | |
tree | ea3f35809a360cfe0c4774a2654b17fb2bc06160 /app | |
parent | 17c27b01c203b1a9795a835a44eb3a8953b91059 (diff) | |
download | refinerycms-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')
-rw-r--r-- | app/helpers/blog_posts_helper.rb | 2 |
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>" |