Add missing translation strings

This commit is contained in:
Arkadiusz Fal 2022-09-28 17:45:05 +02:00
parent b32a892c21
commit 5f09626098
3 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@ struct ChaptersView: View {
.listStyle(.plain) .listStyle(.plain)
#endif #endif
} else { } else {
NoCommentsView(text: "No chapters information available", systemImage: "xmark.circle.fill") NoCommentsView(text: "No chapters information available".localized(), systemImage: "xmark.circle.fill")
} }
} }
} }

View File

@ -9,9 +9,9 @@ struct CommentsView: View {
var body: some View { var body: some View {
Group { Group {
if comments.disabled { if comments.disabled {
NoCommentsView(text: "Comments are disabled", systemImage: "xmark.circle.fill") NoCommentsView(text: "Comments are disabled".localized(), systemImage: "xmark.circle.fill")
} else if comments.loaded && comments.all.isEmpty { } else if comments.loaded && comments.all.isEmpty {
NoCommentsView(text: "No comments", systemImage: "0.circle.fill") NoCommentsView(text: "No comments".localized(), systemImage: "0.circle.fill")
} else if !comments.loaded { } else if !comments.loaded {
PlaceholderProgressView() PlaceholderProgressView()
} else { } else {

View File

@ -126,9 +126,9 @@ struct NowPlayingView: View {
if sections.contains(.comments) { if sections.contains(.comments) {
if comments.disabled { if comments.disabled {
NoCommentsView(text: "Comments are disabled", systemImage: "xmark.circle.fill") NoCommentsView(text: "Comments are disabled".localized(), systemImage: "xmark.circle.fill")
} else if comments.loaded && comments.all.isEmpty { } else if comments.loaded && comments.all.isEmpty {
NoCommentsView(text: "No comments", systemImage: "0.circle.fill") NoCommentsView(text: "No comments".localized(), systemImage: "0.circle.fill")
} else if !comments.loaded { } else if !comments.loaded {
VStack(alignment: .center) { VStack(alignment: .center) {
PlaceholderProgressView() PlaceholderProgressView()
@ -156,7 +156,7 @@ struct NowPlayingView: View {
if sections.contains(.chapters) { if sections.contains(.chapters) {
if let video = player.currentVideo { if let video = player.currentVideo {
if video.chapters.isEmpty { if video.chapters.isEmpty {
NoCommentsView(text: "No chapters information available", systemImage: "xmark.circle.fill") NoCommentsView(text: "No chapters information available".localized(), systemImage: "xmark.circle.fill")
} else { } else {
Section(header: Text("Chapters")) { Section(header: Text("Chapters")) {
ForEach(video.chapters) { chapter in ForEach(video.chapters) { chapter in