commit bd574d93c3c76b9987ddfbd0b35b19893c5b6d76 parent 47514ace79f04c581f99a6a536a581216acc42a5 Author: Terry Yiu <git@tyiu.xyz> Date: Mon, 16 Jun 2025 18:22:03 -0400 Fix localizable strings in FollowPackView Signed-off-by: Terry Yiu <git@tyiu.xyz> Diffstat:
4 files changed, 15 insertions(+), 2 deletions(-)
diff --git 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 @@ -790,6 +790,11 @@ Context menu option for copying the version of damus.</note> <target>Create new wallet</target> <note>Button text for creating a new wallet.</note> </trans-unit> + <trans-unit id="Created by %@" xml:space="preserve"> + <source>Created by %@</source> + <target>Created by %@</target> + <note>Lets the user know who created this follow pack.</note> + </trans-unit> <trans-unit id="Current balance" xml:space="preserve"> <source>Current balance</source> <target>Current balance</target> @@ -5006,6 +5011,11 @@ Context menu option for copying the version of damus.</note> <target state="new">Create new wallet</target> <note>Button text for creating a new wallet.</note> </trans-unit> + <trans-unit id="Created by %@" xml:space="preserve"> + <source>Created by %@</source> + <target state="new">Created by %@</target> + <note>Lets the user know who created this follow pack.</note> + </trans-unit> <trans-unit id="Current balance" xml:space="preserve"> <source>Current balance</source> <target state="new">Current balance</target> diff --git 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 Binary files differ.