diff --git a/src/invidious/routes/feeds.cr b/src/invidious/routes/feeds.cr index 672f6280..c1852f5e 100644 --- a/src/invidious/routes/feeds.cr +++ b/src/invidious/routes/feeds.cr @@ -37,7 +37,7 @@ module Invidious::Routes::Feeds if CONFIG.page_enabled?("popular") templated "feeds/popular" else - message = translate(locale, "The Popular feed has been disabled by the administrator.") + message = translate(locale, "popular_page_disabled") templated "message" end end @@ -60,7 +60,7 @@ module Invidious::Routes::Feeds templated "feeds/trending" else - message = translate(locale, "The Trending feed has been disabled by the administrator.") + message = translate(locale, "trending_page_disabled") templated "message" end end diff --git a/src/invidious/routes/search.cr b/src/invidious/routes/search.cr index eb253d2c..8a9a2d2b 100644 --- a/src/invidious/routes/search.cr +++ b/src/invidious/routes/search.cr @@ -42,7 +42,7 @@ module Invidious::Routes::Search # if search is disabled, show the “disabled” message immediately unless CONFIG.page_enabled?("search") - message = translate(locale, "Search has been disabled by the administrator.") + message = translate(locale, "search_page_disabled") return templated "message" end