From 0575bb8ee3e7a28d187df314784f328b362a8dd0 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 31 Jul 2022 16:02:59 +0200 Subject: [PATCH] Add new translations for profile tabs --- app/views/tabs/_profile.haml | 8 ++++---- config/locales/views.en.yml | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/views/tabs/_profile.haml b/app/views/tabs/_profile.haml index d8d758a3..ee490edd 100644 --- a/app/views/tabs/_profile.haml +++ b/app/views/tabs/_profile.haml @@ -1,6 +1,6 @@ .card .list-group.list-group-horizontal-sm.text-center - = list_group_item 'Answers', user_path(user), badge: user.answered_count - = list_group_item 'Questions', show_user_questions_path(user.screen_name), badge: user.asked_count - = list_group_item 'Followers', show_user_followers_path(user.screen_name), badge: user.followers.count - = list_group_item 'Following', show_user_followings_path(user.screen_name), badge: user.followings.count + = list_group_item t(".answers"), user_path(user), badge: user.answered_count + = list_group_item t(".questions"), show_user_questions_path(user.screen_name), badge: user.asked_count + = list_group_item t(".followers"), show_user_followers_path(user.screen_name), badge: user.followers.count + = list_group_item t(".following"), show_user_followings_path(user.screen_name), badge: user.followings.count diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index dc067928..a8d02e97 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -485,6 +485,11 @@ en: comment: "Comments" commentsmile: "Comment Smiles" relationship: "Followers" + profile: + answers: :activerecord.models.answer.other + questions: :activerecord.models.question.other + followers: "Followers" + following: "Following" settings: account: "Account" profile: "Profile"