mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 02:01:02 +00:00
Added a "Continues a thread" label to status rows (#1704)
This commit is contained in:
parent
56360ae821
commit
ad2adadf87
2 changed files with 167 additions and 40 deletions
|
@ -65749,6 +65749,125 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"status.row.is-thread" : {
|
||||
"extractionState" : "manual",
|
||||
"localizations" : {
|
||||
"be" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"ca" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"de" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"en-GB" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"es" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"eu" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"fr" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Complète un fil"
|
||||
}
|
||||
},
|
||||
"it" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"ja" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"ko" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"nb" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"nl" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"pl" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"tr" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"uk" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"zh-Hans" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
},
|
||||
"zh-Hant" : {
|
||||
"stringUnit" : {
|
||||
"state" : "needs_review",
|
||||
"value" : "Continues a thread"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"status.row.was-boosted" : {
|
||||
"extractionState" : "manual",
|
||||
"localizations" : {
|
||||
|
@ -65868,121 +65987,121 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"status.row.was-reply" : {
|
||||
"status.row.was-reply %@" : {
|
||||
"extractionState" : "manual",
|
||||
"localizations" : {
|
||||
"be" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Адказаў"
|
||||
"value" : "Адказаў %@"
|
||||
}
|
||||
},
|
||||
"ca" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Ha respost a"
|
||||
"value" : "Ha respost a %@"
|
||||
}
|
||||
},
|
||||
"de" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Antwort auf"
|
||||
"value" : "Antwort auf %@"
|
||||
}
|
||||
},
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Replied to"
|
||||
"value" : "Replied to %@"
|
||||
}
|
||||
},
|
||||
"en-GB" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Replied to"
|
||||
"value" : "Replied to %@"
|
||||
}
|
||||
},
|
||||
"es" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Respuesta a"
|
||||
"value" : "Respuesta a %@"
|
||||
}
|
||||
},
|
||||
"eu" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Honi erantzunez:"
|
||||
"value" : "Honi erantzunez: %@"
|
||||
}
|
||||
},
|
||||
"fr" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Répondu à"
|
||||
"value" : "Répondu à %@"
|
||||
}
|
||||
},
|
||||
"it" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Risposta per"
|
||||
"value" : "Risposta per %@"
|
||||
}
|
||||
},
|
||||
"ja" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "返信"
|
||||
"value" : "返信 %@"
|
||||
}
|
||||
},
|
||||
"ko" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "답글:"
|
||||
"value" : "답글: %@"
|
||||
}
|
||||
},
|
||||
"nb" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Svar til"
|
||||
"value" : "Svar til %@"
|
||||
}
|
||||
},
|
||||
"nl" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Geantwoord op"
|
||||
"value" : "Geantwoord op %@"
|
||||
}
|
||||
},
|
||||
"pl" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Odpowiedział(a) do"
|
||||
"value" : "Odpowiedział(a) do %@"
|
||||
}
|
||||
},
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Respondeu a"
|
||||
"value" : "Respondeu a %@"
|
||||
}
|
||||
},
|
||||
"tr" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Şuna cevap verildi"
|
||||
"value" : "Şuna cevap verildi %@"
|
||||
}
|
||||
},
|
||||
"uk" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Відповідь для"
|
||||
"value" : "Відповідь для %@"
|
||||
}
|
||||
},
|
||||
"zh-Hans" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "回复给"
|
||||
"value" : "回复给 %@"
|
||||
}
|
||||
},
|
||||
"zh-Hant" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "回覆給"
|
||||
"value" : "回覆給 %@"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -71601,4 +71720,4 @@
|
|||
}
|
||||
},
|
||||
"version" : "1.0"
|
||||
}
|
||||
}
|
|
@ -5,26 +5,34 @@ struct StatusRowReplyView: View {
|
|||
let viewModel: StatusRowViewModel
|
||||
|
||||
var body: some View {
|
||||
if let accountId = viewModel.status.inReplyToAccountId,
|
||||
let mention = viewModel.status.mentions.first(where: { $0.id == accountId })
|
||||
{
|
||||
HStack(spacing: 2) {
|
||||
Image(systemName: "arrowshape.turn.up.left.fill")
|
||||
Text("status.row.was-reply")
|
||||
Text(mention.username)
|
||||
}
|
||||
.accessibilityElement(children: .combine)
|
||||
.accessibilityLabel(
|
||||
Text("status.row.was-reply")
|
||||
+ Text(" ")
|
||||
+ Text(mention.username)
|
||||
)
|
||||
.font(.scaledFootnote)
|
||||
.foregroundColor(.gray)
|
||||
.fontWeight(.semibold)
|
||||
.onTapGesture {
|
||||
viewModel.navigateToMention(mention: mention)
|
||||
Group {
|
||||
if let accountId = viewModel.status.inReplyToAccountId {
|
||||
if let mention = viewModel.status.mentions.first(where: { $0.id == accountId }) {
|
||||
HStack(spacing: 2) {
|
||||
Image(systemName: "arrowshape.turn.up.left.fill")
|
||||
Text("status.row.was-reply \(mention.username)")
|
||||
}
|
||||
.accessibilityElement(children: .combine)
|
||||
.accessibilityLabel(
|
||||
Text("status.row.was-reply \(mention.username)")
|
||||
)
|
||||
.onTapGesture {
|
||||
viewModel.navigateToMention(mention: mention)
|
||||
}
|
||||
} else if viewModel.isThread && accountId == viewModel.status.account.id {
|
||||
HStack(spacing: 2) {
|
||||
Image(systemName: "quote.opening")
|
||||
Text("status.row.is-thread")
|
||||
}
|
||||
.accessibilityElement(children: .combine)
|
||||
.accessibilityLabel(
|
||||
Text("status.row.is-thread")
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
.font(.scaledFootnote)
|
||||
.foregroundColor(.gray)
|
||||
.fontWeight(.semibold)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue