From f4066d55a137e474ed777d56402c25173b031414 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sat, 29 Jan 2022 20:06:36 +0100 Subject: [PATCH] Use translations for feedback page titles --- app/views/feedback/bugs.haml | 2 +- app/views/feedback/consent.haml | 2 +- app/views/feedback/features.haml | 2 +- config/locales/en.yml | 7 +++++++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/views/feedback/bugs.haml b/app/views/feedback/bugs.haml index 18926a5e..2883c1d2 100644 --- a/app/views/feedback/bugs.haml +++ b/app/views/feedback/bugs.haml @@ -1,4 +1,4 @@ -- provide(:title, generate_title('Bugs - Feedback')) +- provide(:title, generate_title(t('.title'))) %div{ data: { canny: "" } } diff --git a/app/views/feedback/consent.haml b/app/views/feedback/consent.haml index 204af631..e2a33871 100644 --- a/app/views/feedback/consent.haml +++ b/app/views/feedback/consent.haml @@ -1,4 +1,4 @@ -- provide(:title, generate_title('Feedback')) +- provide(:title, generate_title(t('.title'))) .text-center.mx-sm-5 %h2 Notice diff --git a/app/views/feedback/features.haml b/app/views/feedback/features.haml index 1def4be7..83b13062 100644 --- a/app/views/feedback/features.haml +++ b/app/views/feedback/features.haml @@ -1,4 +1,4 @@ -- provide(:title, generate_title('Feature Requests - Feedback')) +- provide(:title, generate_title(t('.title'))) %div{ data: { canny: "" } } diff --git a/config/locales/en.yml b/config/locales/en.yml index 4c2a7354..b7a56d80 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -511,3 +511,10 @@ en: user_not_found: "User not found" conflict: "This already exists" + feedback: + consent: + title: "Feedback" + bugs: + title: "Bugs – Feedback" + features: + title: "Feature Requests – Feedback"