From d794a69729b258965cef1699df0c5fda669e13c2 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Tue, 19 Jul 2022 18:41:33 +0200 Subject: [PATCH] Add translation for Public Timeline title --- app/controllers/timeline_controller.rb | 2 +- config/locales/controllers.en.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/timeline_controller.rb b/app/controllers/timeline_controller.rb index a53c514e..6d3bcecc 100644 --- a/app/controllers/timeline_controller.rb +++ b/app/controllers/timeline_controller.rb @@ -14,7 +14,7 @@ class TimelineController < ApplicationController end def public - @title = generate_title("Public Timeline") + @title = generate_title(t(".title")) paginate_timeline { |args| Answer.cursored_public_timeline(**args) } end diff --git a/config/locales/controllers.en.yml b/config/locales/controllers.en.yml index 50c00c18..6d525e75 100644 --- a/config/locales/controllers.en.yml +++ b/config/locales/controllers.en.yml @@ -188,3 +188,6 @@ en: registrations: destroy: export_pending: "You may not delete your account while account data is currently being exported." + timeline: + public: + title: "Public Timeline"