diff --git a/locales/ar.json b/locales/ar.json index 1a67b0c5..6feef633 100644 --- a/locales/ar.json +++ b/locales/ar.json @@ -450,5 +450,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/de.json b/locales/de.json index 50af3d9e..183bc686 100644 --- a/locales/de.json +++ b/locales/de.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/el.json b/locales/el.json index bd02a76c..0a8e6e4c 100644 --- a/locales/el.json +++ b/locales/el.json @@ -450,5 +450,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/en-US.json b/locales/en-US.json index f1916fbb..c031ece1 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -449,5 +449,7 @@ "Privacy": "Privacy", "short": "Short (< 4 minutes)", "long": "Long (> 20 minutes)", - "This channel doesn't have any content.": "This channel doesn't have any content." + "This channel doesn't have any content.": "This channel doesn't have any content.", + "This channel has no videos.": "This channel has no videos.", + "This channel has no playlists.": "This channel has no playlists." } diff --git a/locales/eo.json b/locales/eo.json index 9252881b..98ea6b8f 100644 --- a/locales/eo.json +++ b/locales/eo.json @@ -450,5 +450,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/es.json b/locales/es.json index e4d2a8f6..46eaf41c 100644 --- a/locales/es.json +++ b/locales/es.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/fa.json b/locales/fa.json index 7f7f0a48..0e3563b4 100644 --- a/locales/fa.json +++ b/locales/fa.json @@ -450,5 +450,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/fi.json b/locales/fi.json index 4323bda2..daf8fb69 100644 --- a/locales/fi.json +++ b/locales/fi.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/fr.json b/locales/fr.json index 498de3da..4a6e5679 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/he.json b/locales/he.json index 5e69f718..2544d9b9 100644 --- a/locales/he.json +++ b/locales/he.json @@ -450,5 +450,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/hr.json b/locales/hr.json index 24c12858..c41545c4 100644 --- a/locales/hr.json +++ b/locales/hr.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/id.json b/locales/id.json index 138c494e..b2cd0443 100644 --- a/locales/id.json +++ b/locales/id.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/is.json b/locales/is.json index 3ee08478..03bece11 100644 --- a/locales/is.json +++ b/locales/is.json @@ -450,5 +450,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/it.json b/locales/it.json index b7434068..82fdd93b 100644 --- a/locales/it.json +++ b/locales/it.json @@ -450,5 +450,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/ja.json b/locales/ja.json index 787c77fe..aa794dc9 100644 --- a/locales/ja.json +++ b/locales/ja.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/nb-NO.json b/locales/nb-NO.json index d801bbd7..77c1b0b7 100644 --- a/locales/nb-NO.json +++ b/locales/nb-NO.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/nl.json b/locales/nl.json index fe9f2599..03ce6601 100644 --- a/locales/nl.json +++ b/locales/nl.json @@ -450,5 +450,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/pl.json b/locales/pl.json index db3a64db..bdea3acd 100644 --- a/locales/pl.json +++ b/locales/pl.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/pt-BR.json b/locales/pt-BR.json index af377b25..c9b4b78e 100644 --- a/locales/pt-BR.json +++ b/locales/pt-BR.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/pt-PT.json b/locales/pt-PT.json index 75aabb86..802b3a78 100644 --- a/locales/pt-PT.json +++ b/locales/pt-PT.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/ro.json b/locales/ro.json index d577b8b2..7c4becc4 100644 --- a/locales/ro.json +++ b/locales/ro.json @@ -450,5 +450,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/ru.json b/locales/ru.json index db7136b8..1a405ac4 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/sv-SE.json b/locales/sv-SE.json index 689241be..75b7a841 100644 --- a/locales/sv-SE.json +++ b/locales/sv-SE.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/tr.json b/locales/tr.json index 87a9bc5f..9273b7a4 100644 --- a/locales/tr.json +++ b/locales/tr.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/uk.json b/locales/uk.json index 41dd6382..ddd8ef6a 100644 --- a/locales/uk.json +++ b/locales/uk.json @@ -450,5 +450,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/zh-CN.json b/locales/zh-CN.json index 0659952b..42386aca 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/locales/zh-TW.json b/locales/zh-TW.json index b78ccf2c..2d72f3c0 100644 --- a/locales/zh-TW.json +++ b/locales/zh-TW.json @@ -449,5 +449,7 @@ "Privacy": "", "short": "", "long": "", - "This channel doesn't have any content.": "" + "This channel doesn't have any content.": "", + "This channel has no videos.": "", + "This channel has no playlists.": "" } diff --git a/src/invidious/views/channel/playlists.ecr b/src/invidious/views/channel/playlists.ecr index 2f4211ab..95bff6c6 100644 --- a/src/invidious/views/channel/playlists.ecr +++ b/src/invidious/views/channel/playlists.ecr @@ -5,7 +5,14 @@ <% content_type = 2 %> <%= rendered "components/channels/channel-information" %> -<%= rendered "components/channels/content-sorting-bar" %> + +<% if items.size > 0 %> + <%= rendered "components/channels/content-sorting-bar" %> +<% else %> +

+ <%= translate(locale, "This channel has no playlists.")%> +

+<% end %>
<% items.each do |item| %> diff --git a/src/invidious/views/channel/videos.ecr b/src/invidious/views/channel/videos.ecr index 92ff67d8..cdbece6b 100644 --- a/src/invidious/views/channel/videos.ecr +++ b/src/invidious/views/channel/videos.ecr @@ -6,7 +6,14 @@ <% content_type = 1 %> <%= rendered "components/channels/channel-information" %> -<%= rendered "components/channels/content-sorting-bar" %> + +<% if count.not_nil! > 0 %> + <%= rendered "components/channels/content-sorting-bar" %> +<% else %> +

+ <%= translate(locale, "This channel has no videos.")%> +

+<% end %>
<% items.each do |item| %>