commit 68b57d8b997aa664e3f3082ac5116c4af8ae9fe8
parent f3056653db3135e34d67ea738bfbfe7ef1afb11f
Author: William Casarin <jb55@jb55.com>
Date: Mon, 20 Feb 2023 12:40:34 -0800
Fix localization crash
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/damus/Views/Events/ReplyDescription.swift b/damus/Views/Events/ReplyDescription.swift
@@ -45,14 +45,14 @@ func reply_desc(profiles: Profiles, event: NostrEvent) -> String {
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])
} else {
- return String(format: Bundle.main.localizedString(forKey: "replying_to_two_and_others", value: nil, table: nil), othersCount, names[0], names[1])
+ 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])
} else {
- return String(format: Bundle.main.localizedString(forKey: "replying_to_one_and_others", value: nil, table: nil), othersCount, names[0])
+ return String(format: "Replying to %@ & %d others", names[0], othersCount)
}
}