Fix localization issues and export strings for translation

This commit is contained in:
2023-04-04 10:26:02 -04:00
parent ddf60e78b9
commit 2f4e33fc9f
4 changed files with 87 additions and 112 deletions

View File

@@ -25,12 +25,15 @@ struct ReplyView: View {
return "@" + Profile.displayName(profile: prof, pubkey: pk).username
}
.joined(separator: " ")
Text("Replying to ", comment: "Indicating that the user is replying to the following listed people.")
.foregroundColor(.gray)
.font(.footnote) +
Text(names.isEmpty ? "self" : names)
.foregroundColor(.accentColor)
.font(.footnote)
if names.isEmpty {
Text("Replying to \(Text("self", comment: "Part of a larger sentence 'Replying to self' in US English. 'self' indicates that the user is replying to themself and no one else.").foregroundColor(.accentColor).font(.footnote))", comment: "Indicating that the user is replying to the themself and no one else, where the parameter is 'self' in US English.")
.foregroundColor(.gray)
.font(.footnote)
} else {
Text("Replying to \(Text(verbatim: names).foregroundColor(.accentColor).font(.footnote))", comment: "Indicating that the user is replying to the following listed people.")
.foregroundColor(.gray)
.font(.footnote)
}
}
.onTapGesture {
participantsShown.toggle()