damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 4da002e1b4b549c55444091efcc308019ba92adf
parent 139a2455a5f55372fe09930d4d7f6d2e17cc01e9
Author: Terry Yiu <963907+tyiu@users.noreply.github.com>
Date:   Mon, 30 Jan 2023 15:42:36 -0500

Export translations

Closes: #439

Diffstat:
Mdamus/Models/Wallet.swift | 2+-
Mdamus/Views/EditMetadataView.swift | 2+-
Mdamus/Views/Events/MutedEventView.swift | 4++--
Mtranslations/en-US.xcloc/Localized Contents/en-US.xliff | 29++++++++++++++++++++---------
Mtranslations/en-US.xcloc/Source Contents/damus/en-US.lproj/Localizable.strings | 0
5 files changed, 24 insertions(+), 13 deletions(-)

diff --git a/damus/Models/Wallet.swift b/damus/Models/Wallet.swift @@ -53,7 +53,7 @@ enum Wallet: String, CaseIterable, Identifiable { return .init(index: 3, tag: "bluewallet", displayName: NSLocalizedString("Blue Wallet", comment: "Dropdown option label for Lightning wallet, Blue Wallet."), link: "bluewallet:lightning:", appStoreLink: "https://apps.apple.com/us/app/bluewallet-bitcoin-wallet/id1376878040", image: "bluewallet") case .walletofsatoshi: - return .init(index: 4, tag: "walletofsatoshi", displayName: NSLocalizedString("Wallet Of Satoshi", comment: "Dropdown option label for Lightning wallet, Wallet Of Satoshi."), link: "walletofsatoshi:lightning:", + return .init(index: 4, tag: "walletofsatoshi", displayName: NSLocalizedString("Wallet of Satoshi", comment: "Dropdown option label for Lightning wallet, Wallet of Satoshi."), link: "walletofsatoshi:lightning:", appStoreLink: "https://apps.apple.com/us/app/wallet-of-satoshi/id1438599608", image: "walletofsatoshi") case .zebedee: return .init(index: 5, tag: "zebedee", displayName: NSLocalizedString("Zebedee", comment: "Dropdown option label for Lightning wallet, Zebedee."), link: "zebedee:lightning:", diff --git a/damus/Views/EditMetadataView.swift b/damus/Views/EditMetadataView.swift @@ -196,7 +196,7 @@ struct EditMetadataView: View { if let parts = nip05_parts { Text("'\(parts.username)' at '\(parts.host)' will be used for verification", comment: "Description of how the nip05 identifier would be used for verification.") } else { - Text("'\(nip05)' is an invalid nip05 identifier. It should look like an email.", comment: "Description of why the nip05 identifier is invalid.") + Text("'\(nip05)' is an invalid NIP-05 identifier. It should look like an email.", comment: "Description of why the nip05 identifier is invalid.") } }) diff --git a/damus/Views/Events/MutedEventView.swift b/damus/Views/Events/MutedEventView.swift @@ -42,9 +42,9 @@ struct MutedEventView: View { .foregroundColor(FillColor) HStack { - Text("Post from a user you've blocked") + Text("Post from a user you've blocked", comment: "Text to indicate that what is being shown is a post from a user who has been blocked.") Spacer() - Button(shown ? "Hide" : "Show") { + Button(shown ? NSLocalizedString("Hide", comment: "Button to hide a post from a user who has been blocked.") : NSLocalizedString("Show", comment: "Button to show a post from a user who has been blocked.")) { shown.toggle() } } diff --git a/translations/en-US.xcloc/Localized Contents/en-US.xliff b/translations/en-US.xcloc/Localized Contents/en-US.xliff @@ -80,9 +80,9 @@ Number of profiles a user is following.</note> <target>'%@' at '%@' will be used for verification</target> <note>Description of how the nip05 identifier would be used for verification.</note> </trans-unit> - <trans-unit id="'%@' is an invalid nip05 identifier. It should look like an email." xml:space="preserve"> - <source>'%@' is an invalid nip05 identifier. It should look like an email.</source> - <target>'%@' is an invalid nip05 identifier. It should look like an email.</target> + <trans-unit id="'%@' is an invalid NIP-05 identifier. It should look like an email." xml:space="preserve"> + <source>'%@' is an invalid NIP-05 identifier. It should look like an email.</source> + <target>'%@' is an invalid NIP-05 identifier. It should look like an email.</target> <note>Description of why the nip05 identifier is invalid.</note> </trans-unit> <trans-unit id="(Profile.displayName(profile: profile, pubkey: whos))'s Followers" xml:space="preserve"> @@ -467,6 +467,11 @@ Part of a larger sentence to describe how many profiles a user is following.</no <target>Goto profile %@</target> <note>Navigation link to go to profile.</note> </trans-unit> + <trans-unit id="Hide" xml:space="preserve"> + <source>Hide</source> + <target>Hide</target> + <note>Button to hide a post from a user who has been blocked.</note> + </trans-unit> <trans-unit id="Home" xml:space="preserve"> <source>Home</source> <target>Home</target> @@ -585,6 +590,11 @@ Part of a larger sentence to describe how many profiles a user is following.</no <target>Post</target> <note>Button to post a note.</note> </trans-unit> + <trans-unit id="Post from a user you've blocked" xml:space="preserve"> + <source>Post from a user you've blocked</source> + <target>Post from a user you've blocked</target> + <note>Text to indicate that what is being shown is a post from a user who has been blocked.</note> + </trans-unit> <trans-unit id="Posts" xml:space="preserve"> <source>Posts</source> <target>Posts</target> @@ -797,7 +807,8 @@ Part of a larger sentence to describe how many profiles a user is following.</no <trans-unit id="Show" xml:space="preserve"> <source>Show</source> <target>Show</target> - <note>Toggle to show or hide user's secret account login key.</note> + <note>Button to show a post from a user who has been blocked. + Toggle to show or hide user's secret account login key.</note> </trans-unit> <trans-unit id="Show wallet selector" xml:space="preserve"> <source>Show wallet selector</source> @@ -896,16 +907,16 @@ Part of a larger sentence to describe how many profiles a user is following.</no <target>Wallet</target> <note>Sidebar menu label for Wallet view.</note> </trans-unit> - <trans-unit id="Wallet Of Satoshi" xml:space="preserve"> - <source>Wallet Of Satoshi</source> - <target>Wallet Of Satoshi</target> - <note>Dropdown option label for Lightning wallet, Wallet Of Satoshi.</note> - </trans-unit> <trans-unit id="Wallet Selector" xml:space="preserve"> <source>Wallet Selector</source> <target>Wallet Selector</target> <note>Section title for selection of wallet.</note> </trans-unit> + <trans-unit id="Wallet of Satoshi" xml:space="preserve"> + <source>Wallet of Satoshi</source> + <target>Wallet of Satoshi</target> + <note>Dropdown option label for Lightning wallet, Wallet of Satoshi.</note> + </trans-unit> <trans-unit id="Website" xml:space="preserve"> <source>Website</source> <target>Website</target> diff --git a/translations/en-US.xcloc/Source Contents/damus/en-US.lproj/Localizable.strings b/translations/en-US.xcloc/Source Contents/damus/en-US.lproj/Localizable.strings Binary files differ.