diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2023-03-31 22:28:38 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2023-03-31 22:28:38 +0200 |
| commit | d52609438058bf80080cc5492201de1c2b09f6b4 (patch) | |
| tree | e621e1d39820fd66467db93757498400dee17ea1 | |
| parent | 562d75a47bfdb9f0188d2af75279d6bd44fb9d7c (diff) | |
| parent | 0fe1b1ec19d8bf108765842dc84252fc3b394a9b (diff) | |
| download | invidious-d52609438058bf80080cc5492201de1c2b09f6b4.tar.gz invidious-d52609438058bf80080cc5492201de1c2b09f6b4.tar.bz2 invidious-d52609438058bf80080cc5492201de1c2b09f6b4.zip | |
download_widget: Add missing translation key (#3713)
| -rw-r--r-- | locales/en-US.json | 1 | ||||
| -rw-r--r-- | locales/pl.json | 1 | ||||
| -rw-r--r-- | src/invidious/frontend/watch_page.cr | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/locales/en-US.json b/locales/en-US.json index a3c195ff..05811f27 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -402,6 +402,7 @@ "Movies": "Movies", "Download": "Download", "Download as: ": "Download as: ", + "Download is disabled": "Download is disabled", "%A %B %-d, %Y": "%A %B %-d, %Y", "(edited)": "(edited)", "YouTube comment permalink": "YouTube comment permalink", diff --git a/locales/pl.json b/locales/pl.json index 3ca78e43..3c713e70 100644 --- a/locales/pl.json +++ b/locales/pl.json @@ -317,6 +317,7 @@ "Movies": "Filmy", "Download": "Pobierz", "Download as: ": "Pobierz jako: ", + "Download is disabled": "Pobieranie jest wyłączone", "%A %B %-d, %Y": "%A, %-d %B %Y", "(edited)": "(edytowany)", "YouTube comment permalink": "Odnośnik bezpośredni do komentarza na YouTube", diff --git a/src/invidious/frontend/watch_page.cr b/src/invidious/frontend/watch_page.cr index a9b00860..e3214469 100644 --- a/src/invidious/frontend/watch_page.cr +++ b/src/invidious/frontend/watch_page.cr @@ -20,7 +20,7 @@ module Invidious::Frontend::WatchPage def download_widget(locale : String, video : Video, video_assets : VideoAssets) : String 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 return String.build(4000) do |str| |
