From 6c7f8cdbe528f3d29e80adad012d74f41f530cf1 Mon Sep 17 00:00:00 2001 From: Terry Yiu <963907+tyiu@users.noreply.github.com> Date: Thu, 6 Apr 2023 21:05:49 -0400 Subject: [PATCH] Fix localization issues and export strings for translation --- damus/Components/TranslateView.swift | 2 +- damus/Views/AttachMediaUtility.swift | 2 +- .../Localized Contents/en-US.xliff | 20 +++++++++--------- .../damus/en-US.lproj/Localizable.strings | Bin 78682 -> 78706 bytes 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/damus/Components/TranslateView.swift b/damus/Components/TranslateView.swift index ded0cf20..7c81ecbb 100644 --- a/damus/Components/TranslateView.swift +++ b/damus/Components/TranslateView.swift @@ -142,7 +142,7 @@ struct TranslateView: View { case .trying: Text("") case .translating: - Text("Translating...") + Text("Translating...", comment: "Text to display when waiting for the translation of a note to finish processing before showing it.") .foregroundColor(.gray) .font(.footnote) .padding([.top, .bottom], 10) diff --git a/damus/Views/AttachMediaUtility.swift b/damus/Views/AttachMediaUtility.swift index 9c6cb096..589056f6 100644 --- a/damus/Views/AttachMediaUtility.swift +++ b/damus/Views/AttachMediaUtility.swift @@ -124,7 +124,7 @@ enum MediaUploader: String, CaseIterable, Identifiable { case .nostrBuild: return .init(index: -1, tag: "nostrBuild", displayName: "nostr.build") case .nostrImg: - return .init(index: 0, tag: "nostrImg", displayName: NSLocalizedString("NostrImg", comment: "Dropdown option label for system default for NostrImg image uploader.")) + return .init(index: 0, tag: "nostrImg", displayName: "nostrimg.com") } } diff --git a/damus/en-US.xcloc/Localized Contents/en-US.xliff b/damus/en-US.xcloc/Localized Contents/en-US.xliff index 93300b7e..d4d5942f 100644 --- a/damus/en-US.xcloc/Localized Contents/en-US.xliff +++ b/damus/en-US.xcloc/Localized Contents/en-US.xliff @@ -769,16 +769,6 @@ Sentence composed of 2 variables to describe how many people are following a use No zaps are sent, only a lightning payment. Description of non-zap type where sats are sent to the user's wallet as a regular Lightning payment, not as a zap. - - NostrBuild - NostrBuild - Dropdown option label for system default for NostrBuild image uploader. - - - NostrImg - NostrImg - Dropdown option label for system default for NostrImg image uploader. - Note contains "nsec1" private key. Are you sure? Note contains "nsec1" private key. Are you sure? @@ -1240,6 +1230,11 @@ Picker option to indicate that a zap should be sent privately and not identify t Thread Navigation bar title for note thread. + + Translate DMs + Translate DMs + Toggle to translate direct messages. + Translate Note Translate Note @@ -1250,6 +1245,11 @@ Picker option to indicate that a zap should be sent privately and not identify t Translated from %@ Button to indicate that the note has been translated from a different language. + + Translating... + Translating... + Text to display when waiting for the translation of a note to finish processing before showing it. + Translation Translation 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 c52e57401a69399693a18af574fbc621a4269997..1ef61c8b536a359bf04ecd094cf832c86fef5976 100644 GIT binary patch delta 249 zcmcchjOEiamJJ7%O_mep*<7$9AZ>EP50U9t_!vbvQy4NCiWpKEk|zg72s0K>m*;0x zWOZTiWhkD`D99+yp30!W0OU?yn4-EJs9^)+WQQ`Y=>Z0eY?HGJq(sXZ5`hMk0C65e zI#6jELq0>%WdC^O$b2AM0Vt~gl*tFG02x#QWP#LxRA(|2Gh_gH1wiZb8IpnW#Xtx% zCke<0n+4VfQkl2}2Qs6GJIOCPNNG%H;kR@{^a$6VOEy zXHa5LV6X*ZB?fG|1P|$hOyoz%c{1cOq{B>8g_s5w!)g*(X7k2n*=dtPMYf;gW!%6x lx#5@E={^FCLX#|5rt26ma!tP@$SAhmN|4b)2>|@VI{5$q