From 3440c828e3a0fecbaf3411026574ae6144bef1b0 Mon Sep 17 00:00:00 2001
From: Terry Yiu <963907+tyiu@users.noreply.github.com>
Date: Fri, 21 Apr 2023 23:08:48 +0200
Subject: [PATCH] Export strings for translation
---
damus/Views/Events/MutedEventView.swift | 4 +-
damus/Views/Muting/MutelistView.swift | 2 +-
damus/Views/Profile/ProfileView.swift | 4 +-
.../Localized Contents/en-US.xliff | 36 ++++++++++++++----
.../damus/en-US.lproj/Localizable.strings | Bin 81688 -> 82748 bytes
5 files changed, 33 insertions(+), 13 deletions(-)
diff --git a/damus/Views/Events/MutedEventView.swift b/damus/Views/Events/MutedEventView.swift
index 19f2b9e3..848215c7 100644
--- a/damus/Views/Events/MutedEventView.swift
+++ b/damus/Views/Events/MutedEventView.swift
@@ -31,9 +31,9 @@ struct MutedEventView: View {
.foregroundColor(DamusColors.adaptableGrey)
HStack {
- 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.")
+ Text("Post from a user you've muted", comment: "Text to indicate that what is being shown is a post from a user who has been muted.")
Spacer()
- 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.")) {
+ Button(shown ? NSLocalizedString("Hide", comment: "Button to hide a post from a user who has been muted.") : NSLocalizedString("Show", comment: "Button to show a post from a user who has been muted.")) {
shown.toggle()
}
}
diff --git a/damus/Views/Muting/MutelistView.swift b/damus/Views/Muting/MutelistView.swift
index b28c36f8..95f07d92 100644
--- a/damus/Views/Muting/MutelistView.swift
+++ b/damus/Views/Muting/MutelistView.swift
@@ -29,7 +29,7 @@ struct MutelistView: View {
damus_state.postbox.send(new_ev)
users = get_mutelist_users(new_ev)
} label: {
- Label(NSLocalizedString("Delete", comment: "Button to remove a user from their blocklist."), systemImage: "trash")
+ Label(NSLocalizedString("Delete", comment: "Button to remove a user from their mutelist."), systemImage: "trash")
}
.tint(.red)
}
diff --git a/damus/Views/Profile/ProfileView.swift b/damus/Views/Profile/ProfileView.swift
index 276c13d1..ffcc8bcd 100644
--- a/damus/Views/Profile/ProfileView.swift
+++ b/damus/Views/Profile/ProfileView.swift
@@ -210,7 +210,7 @@ struct ProfileView: View {
}) {
navImage(systemImage: "ellipsis")
}
- .confirmationDialog(NSLocalizedString("Actions", comment: "Title for confirmation dialog to either share, report, or block a profile."), isPresented: $action_sheet_presented) {
+ .confirmationDialog(NSLocalizedString("Actions", comment: "Title for confirmation dialog to either share, report, or mute a profile."), isPresented: $action_sheet_presented) {
Button(NSLocalizedString("Share", comment: "Button to share the link to a profile.")) {
show_share_sheet = true
}
@@ -257,7 +257,7 @@ struct ProfileView: View {
.profile_button_style(scheme: colorScheme)
.contextMenu {
if profile.reactions == false {
- Text("OnlyZaps Enabled")
+ Text("OnlyZaps Enabled", comment: "Non-tappable text in context menu that shows up when the zap button on profile is long pressed to indicate that the user has enabled OnlyZaps, meaning that they would like to be only zapped and not accept reactions to their notes.")
}
if let addr = profile.lud16 {
diff --git a/damus/en-US.xcloc/Localized Contents/en-US.xliff b/damus/en-US.xcloc/Localized Contents/en-US.xliff
index cb147761..0066a0ca 100644
--- a/damus/en-US.xcloc/Localized Contents/en-US.xliff
+++ b/damus/en-US.xcloc/Localized Contents/en-US.xliff
@@ -141,7 +141,7 @@ Sentence composed of 2 variables to describe how many people are following a use
ActionsActions
- Title for confirmation dialog to either share, report, or block a profile.
+ Title for confirmation dialog to either share, report, or mute a profile.Add
@@ -442,7 +442,7 @@ Sentence composed of 2 variables to describe how many people are following a use
DeleteDeleteButton for deleting the users account.
- Button to remove a user from their blocklist.
+ Button to remove a user from their mutelist.
Delete Account
@@ -504,6 +504,11 @@ Sentence composed of 2 variables to describe how many people are following a use
EditButton to edit user's profile.
+
+ Enable OnlyZaps mode
+ Enable OnlyZaps mode
+ Setting toggle to hide reactions.
+ EncryptedEncrypted
@@ -582,7 +587,7 @@ Sentence composed of 2 variables to describe how many people are following a use
HideHide
- Button to hide a post from a user who has been blocked.
+ Button to hide a post from a user who has been muted.Hide API Key
@@ -590,6 +595,11 @@ Sentence composed of 2 variables to describe how many people are following a use
Button to hide the DeepL translation API key.
Button to hide the LibreTranslate server API key.
+
+ Hide all 🤙's
+ Hide all 🤙's
+ Section footer describing onlyzaps mode
+ HomeHome
@@ -827,6 +837,16 @@ Sentence composed of 2 variables to describe how many people are following a use
Only you can see this message and who sent it.Help text on green lock icon that explains that only the current user can see the message of a zap event and who sent the zap.
+
+ OnlyZaps
+ OnlyZaps
+ Section header for enabling OnlyZaps mode (hide reactions)
+
+
+ OnlyZaps Enabled
+ OnlyZaps Enabled
+ Non-tappable text in context menu that shows up when the zap button on profile is long pressed to indicate that the user has enabled OnlyZaps, meaning that they would like to be only zapped and not accept reactions to their notes.
+ Paid RelayPaid Relay
@@ -863,10 +883,10 @@ Sentence composed of 2 variables to describe how many people are following a use
PostButton to post a note.
-
- Post from a user you've blocked
- 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.
+
+ Post from a user you've muted
+ Post from a user you've muted
+ Text to indicate that what is being shown is a post from a user who has been muted.Posts
@@ -1153,7 +1173,7 @@ Picker option to indicate that a zap should be sent privately and not identify t
ShowShow
- Button to show a post from a user who has been blocked.
+ Button to show a post from a user who has been muted.
Toggle to show or hide user's secret account login key.
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 367577fdcd278dc644a2bf7f09c2903c1ef07a1a..a2e688a23a79f2b9c2daae1539aed8916459bd7f 100644
GIT binary patch
delta 840
zcma)4&r2Io5S~Yq8j`KVCK9$*coeiz8Z}U>2b*3jwS}rTp-^OFwvBX?tZ{?ZgFh~w
zl{u_PvG(3WVWF2w#6O@Xq4c2O$%`N!ghCIc->!+VDWW{~$D8?P=9_P3?T>G3+5cs$
zhqE8z&SB4;ha7z!w%59Z!kfC{bn3?;HrdCUzr*&BB9u^pBxPxmGNkiTYx6`G?w!<4
zLApmzDNh=u$sirp5!?)VPp@DzX&ROs72G%=B|XM-%?KWUp*nJExREy^L7s~!Jii#=
zl?4fAVe!U3@(Xn`4NiG_i>!r8-MRnj)|d{RbpW&mjt0J|pX&a7u&i;r1jAymjoTM*
zJ3khRkHDb4Pd{(FO5yU>CB-kwm*_z0s(kfPH7XU4ok)oo%Yd&nPYJTT{!F~9id)cj
zmMmT!Yva@1=#3JYcCuGA+eS(Rn$lE4jOFR$sl>^q2#2FLV}@sQwKJ)R9Md>DWmp?e
zu(=mZW>LePU#(Giajz%*0Ja=Zn*FIkwAiDK!q+#0+$AXN;ti<&4u0vekl^k97b^3T
zbT%;))(r3TMnW1*;OJmwVb|1K?(SKTPe-02e;ZJr*E5j+>|o}?G_OGNYIh5-e3y>(
rb-Ceu&-S(he779;=UnOdW%-H7@zlo{pRD&g2j$QGF3?&3HUI1{2D-(W
delta 181
zcmdnf#yaC4%Z5D$oJkBh4EYSn4B3+?y&r-AaLxYqLS>
z6Yl8+28