From bd574d93c3c76b9987ddfbd0b35b19893c5b6d76 Mon Sep 17 00:00:00 2001 From: Terry Yiu Date: Mon, 16 Jun 2025 18:22:03 -0400 Subject: [PATCH] Fix localizable strings in FollowPackView Signed-off-by: Terry Yiu --- .../Events/FollowPack/FollowPackView.swift | 4 ++-- .../Localized Contents/en-US.xliff | 10 ++++++++++ .../damus/Localizable.xcstrings | 3 +++ .../damus/en-US.lproj/Localizable.strings | Bin 221484 -> 221056 bytes 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/damus/Views/Events/FollowPack/FollowPackView.swift b/damus/Views/Events/FollowPack/FollowPackView.swift index fee791e3..301dd30d 100644 --- a/damus/Views/Events/FollowPack/FollowPackView.swift +++ b/damus/Views/Events/FollowPack/FollowPackView.swift @@ -140,12 +140,12 @@ struct FollowPackView: View { let displayName = Profile.displayName(profile: profile, pubkey: event.event.pubkey) switch displayName { case .one(let one): - Text(NSLocalizedString("Created by \(one)", comment: "Lets the user know who created this follow pack.")) + Text("Created by \(one)", comment: "Lets the user know who created this follow pack.") .font(.subheadline).foregroundColor(.gray) case .both(username: let username, displayName: let displayName): HStack(spacing: 6) { - Text(NSLocalizedString("Created by \(displayName)", comment: "Lets the user know who created this follow pack.")) + Text("Created by \(displayName)", comment: "Lets the user know who created this follow pack.") .font(.subheadline).foregroundColor(.gray) Text(verbatim: "@\(username)") diff --git a/damus/en-US.xcloc/Localized Contents/en-US.xliff b/damus/en-US.xcloc/Localized Contents/en-US.xliff index a922cfac..262cafb4 100644 --- a/damus/en-US.xcloc/Localized Contents/en-US.xliff +++ b/damus/en-US.xcloc/Localized Contents/en-US.xliff @@ -790,6 +790,11 @@ Context menu option for copying the version of damus. Create new wallet Button text for creating a new wallet. + + Created by %@ + Created by %@ + Lets the user know who created this follow pack. + Current balance Current balance @@ -5006,6 +5011,11 @@ Context menu option for copying the version of damus. Create new wallet Button text for creating a new wallet. + + Created by %@ + Created by %@ + Lets the user know who created this follow pack. + Current balance Current balance diff --git a/damus/en-US.xcloc/Source Contents/damus/Localizable.xcstrings b/damus/en-US.xcloc/Source Contents/damus/Localizable.xcstrings index 0a22a655..7ec9d390 100644 --- a/damus/en-US.xcloc/Source Contents/damus/Localizable.xcstrings +++ b/damus/en-US.xcloc/Source Contents/damus/Localizable.xcstrings @@ -468,6 +468,9 @@ "Create new wallet" : { "comment" : "Button text for creating a new wallet." }, + "Created by %@" : { + "comment" : "Lets the user know who created this follow pack." + }, "Current balance" : { "comment" : "Label for displaying current wallet balance" }, diff --git a/damus/en-US.xcloc/Source Contents/damus/en-US.lproj/Localizable.strings b/damus/en-US.xcloc/Source Contents/damus/en-US.lproj/Localizable.strings index 86a085892c2245b09229cb07dada54bd622349da..af5d4acf2c7700992d39e8c9342f1154c7e18a4c 100644 GIT binary patch delta 26 icmZ2;h__)s?}jrsCkxyYYVNw--gTRCd)IBIMXdn4Tn)+q delta 124 zcmZqJ&%5Rj?}jrsCyU*zla67~U`S!eWGH4RV8~%eWT<5D1CqH6sSKKvr{7c*$00vm qFo#iivdGN_Zjgd}hCG-Cb|@dBz`#+Y`QFX;dp8-k-@D1Qs1*R~o+c{*