mirror of
https://github.com/yattee/yattee.git
synced 2024-11-09 15:58:20 +00:00
Add missing translation strings
This commit is contained in:
parent
b32a892c21
commit
5f09626098
@ -25,7 +25,7 @@ struct ChaptersView: View {
|
||||
.listStyle(.plain)
|
||||
#endif
|
||||
} else {
|
||||
NoCommentsView(text: "No chapters information available", systemImage: "xmark.circle.fill")
|
||||
NoCommentsView(text: "No chapters information available".localized(), systemImage: "xmark.circle.fill")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,9 +9,9 @@ struct CommentsView: View {
|
||||
var body: some View {
|
||||
Group {
|
||||
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 {
|
||||
NoCommentsView(text: "No comments", systemImage: "0.circle.fill")
|
||||
NoCommentsView(text: "No comments".localized(), systemImage: "0.circle.fill")
|
||||
} else if !comments.loaded {
|
||||
PlaceholderProgressView()
|
||||
} else {
|
||||
|
@ -126,9 +126,9 @@ struct NowPlayingView: View {
|
||||
|
||||
if sections.contains(.comments) {
|
||||
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 {
|
||||
NoCommentsView(text: "No comments", systemImage: "0.circle.fill")
|
||||
NoCommentsView(text: "No comments".localized(), systemImage: "0.circle.fill")
|
||||
} else if !comments.loaded {
|
||||
VStack(alignment: .center) {
|
||||
PlaceholderProgressView()
|
||||
@ -156,7 +156,7 @@ struct NowPlayingView: View {
|
||||
if sections.contains(.chapters) {
|
||||
if let video = player.currentVideo {
|
||||
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 {
|
||||
Section(header: Text("Chapters")) {
|
||||
ForEach(video.chapters) { chapter in
|
||||
|
Loading…
Reference in New Issue
Block a user