1
0
mirror of git://jb55.com/damus synced 2024-10-06 19:53:22 +00:00

Remove all localization from formatting strings

until we have test converage
This commit is contained in:
William Casarin 2023-02-20 12:44:43 -08:00
parent 68b57d8b99
commit 19a421604c

View File

@ -43,14 +43,14 @@ func reply_desc(profiles: Profiles, event: NostrEvent) -> String {
let othersCount = n - pubkeys.count
if names.count > 1 {
if othersCount == 0 {
return String(format: NSLocalizedString("Replying to %@ & %@", comment: "Label to indicate that the user is replying to 2 users."), names[0], names[1])
return String(format: "Replying to %@ & %@", names[0], names[1])
} else {
return String(format: "Replying to %@, %@ & %d others", names[0], names[1], othersCount)
}
}
if othersCount == 0 {
return String(format: NSLocalizedString("Replying to %@", comment: "Label to indicate that the user is replying to 1 user."), names[0])
return String(format: "Replying to %@", names[0])
} else {
return String(format: "Replying to %@ & %d others", names[0], othersCount)
}