From 4da002e1b4b549c55444091efcc308019ba92adf Mon Sep 17 00:00:00 2001
From: Terry Yiu <963907+tyiu@users.noreply.github.com>
Date: Mon, 30 Jan 2023 15:42:36 -0500
Subject: [PATCH] Export translations
Closes: #439
---
damus/Models/Wallet.swift | 2 +-
damus/Views/EditMetadataView.swift | 2 +-
damus/Views/Events/MutedEventView.swift | 4 +--
.../Localized Contents/en-US.xliff | 29 ++++++++++++------
.../damus/en-US.lproj/Localizable.strings | Bin 26904 -> 27182 bytes
5 files changed, 24 insertions(+), 13 deletions(-)
diff --git a/damus/Models/Wallet.swift b/damus/Models/Wallet.swift
index 1fa4075..fdcbe96 100644
--- 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
index 2bb392f..a12ef19 100644
--- 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
index ccb191d..c984b7e 100644
--- 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
index cbe377e..3822f7f 100644
--- 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.
'%@' at '%@' will be used for verificationDescription of how the nip05 identifier would be used for verification.
-
-
- '%@' is an invalid nip05 identifier. It should look like an email.
+
+
+ '%@' is an invalid NIP-05 identifier. It should look like an email.Description of why the nip05 identifier is invalid.
@@ -467,6 +467,11 @@ Part of a larger sentence to describe how many profiles a user is following.Goto profile %@
Navigation link to go to profile.
+
+
+ Hide
+ Button to hide a post from a user who has been blocked.
+ Home
@@ -585,6 +590,11 @@ Part of a larger sentence to describe how many profiles a user is following.Post
Button to post a note.
+
+
+ Post from a user you've blocked
+ Text to indicate that what is being shown is a post from a user who has been blocked.
+ Posts
@@ -797,7 +807,8 @@ Part of a larger sentence to describe how many profiles a user is following.
Show
- Toggle to show or hide user's secret account login key.
+ Button to show a post from a user who has been blocked.
+ Toggle to show or hide user's secret account login key.
@@ -896,16 +907,16 @@ Part of a larger sentence to describe how many profiles a user is following.Wallet
Sidebar menu label for Wallet view.
-
-
- Wallet Of Satoshi
- Dropdown option label for Lightning wallet, Wallet Of Satoshi.
- Wallet SelectorSection title for selection of wallet.
+
+
+ Wallet of Satoshi
+ Dropdown option label for Lightning wallet, Wallet of Satoshi.
+ Website
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
index 76720d714094c41b42285053748966d105a1416b..fb283c6aaf49c11c053fc12aab38a31ba71c6fae 100644
GIT binary patch
delta 286
zcmbPniE-T(#tnVClN;nk>N6NJ8B!Qh859^2fw+JnpP`tc1jtHbC<3x`q2i@L(Nv&_
z0z)}N22fl9NG1Zs6d00#;;9UIU{(%LCYd1{$WLL=1Bz%d=reFJC^2|I?N9=W*#a?=
z$mC*C`^^V*uV{fB6JHEAyd0>6+K%A@nyIjPVuT?#WB%li$-+F(+2a#kSE
JX1kPIEC5MqKLP*%
delta 59
zcmZ2?g>l9u#tnVClN&^hHYey^(VFZPrMLJ-BsZh~B&_tDw``(x3K^KyUi8m