🌐 (feeds.cr, search.cr): update translation keys for disabled feeds and search messages

This commit is contained in:
NorkzYT 2025-05-24 14:50:58 +00:00
parent 9fbce527e7
commit 3eeec8632d
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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