From f011fddc9d28aa493d2677f539469cb56699d0dc Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Sun, 7 Jun 2015 15:34:22 +0200 Subject: [PATCH] instead of capitalizing the string in the template, just capitalize the locale --- app/views/user/_stats.html.haml | 2 +- config/locales/en.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/user/_stats.html.haml b/app/views/user/_stats.html.haml index a525ab23..41446e44 100644 --- a/app/views/user/_stats.html.haml +++ b/app/views/user/_stats.html.haml @@ -6,7 +6,7 @@ %a{href: show_user_followers_path(@user.screen_name)} .col-md-6.col-sm-6.col-xs-6 %h4.entry-text#follower-count= @user.follower_count - %h6.entry-subtext= t('views.general.follower').capitalize.pluralize(@user.follower_count) + %h6.entry-subtext= t('views.general.follower').pluralize(@user.follower_count) %a{href: show_user_friends_path(@user.screen_name)} .col-md-6.col-sm-6.col-xs-6 %h4.entry-text#friend-count= @user.friend_count diff --git a/config/locales/en.yml b/config/locales/en.yml index 7c06af6d..35551de7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -69,12 +69,12 @@ en: none: "You have not connected any services yet. Visit your %{settings} to connect one." settings: "service settings" general: - answer: "answer" - question: "question" - comment: "comment" - smile: "smile" - follower: "follower" - following: "following" + answer: "Answer" + question: "Question" + comment: "Comment" + smile: "Smile" + follower: "Follower" + following: "Following" actions: title: "Actions" answer: "Answer"