download_widget: Add missing translation key (#3713)

This commit is contained in:
Samantaz Fox 2023-03-31 22:28:38 +02:00
commit d526094380
No known key found for this signature in database
GPG Key ID: F42821059186176E
3 changed files with 3 additions and 1 deletions

View File

@ -402,6 +402,7 @@
"Movies": "Movies", "Movies": "Movies",
"Download": "Download", "Download": "Download",
"Download as: ": "Download as: ", "Download as: ": "Download as: ",
"Download is disabled": "Download is disabled",
"%A %B %-d, %Y": "%A %B %-d, %Y", "%A %B %-d, %Y": "%A %B %-d, %Y",
"(edited)": "(edited)", "(edited)": "(edited)",
"YouTube comment permalink": "YouTube comment permalink", "YouTube comment permalink": "YouTube comment permalink",

View File

@ -317,6 +317,7 @@
"Movies": "Filmy", "Movies": "Filmy",
"Download": "Pobierz", "Download": "Pobierz",
"Download as: ": "Pobierz jako: ", "Download as: ": "Pobierz jako: ",
"Download is disabled": "Pobieranie jest wyłączone",
"%A %B %-d, %Y": "%A, %-d %B %Y", "%A %B %-d, %Y": "%A, %-d %B %Y",
"(edited)": "(edytowany)", "(edited)": "(edytowany)",
"YouTube comment permalink": "Odnośnik bezpośredni do komentarza na YouTube", "YouTube comment permalink": "Odnośnik bezpośredni do komentarza na YouTube",

View File

@ -20,7 +20,7 @@ module Invidious::Frontend::WatchPage
def download_widget(locale : String, video : Video, video_assets : VideoAssets) : String def download_widget(locale : String, video : Video, video_assets : VideoAssets) : String
if CONFIG.disabled?("downloads") if CONFIG.disabled?("downloads")
return "<p id=\"download\">#{translate(locale, "Download is disabled.")}</p>" return "<p id=\"download\">#{translate(locale, "Download is disabled")}</p>"
end end
return String.build(4000) do |str| return String.build(4000) do |str|