From 68b57d8b997aa664e3f3082ac5116c4af8ae9fe8 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 20 Feb 2023 12:40:34 -0800 Subject: [PATCH] Fix localization crash --- damus/Views/Events/ReplyDescription.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/damus/Views/Events/ReplyDescription.swift b/damus/Views/Events/ReplyDescription.swift index a8545b30..9cbfb9e8 100644 --- 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) } }