commit 9a0ad7bcab447f80c3b6c120a23baed2a5087d09 parent 136186e664c96b1596d31f89d39a14ef68fd0fe1 Author: Terry Yiu <963907+tyiu@users.noreply.github.com> Date: Tue, 2 May 2023 14:32:03 -0400 Export strings for translation Diffstat:
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/damus/Views/PostView.swift b/damus/Views/PostView.swift @@ -350,7 +350,7 @@ struct PostView: View { } onVideoPicked: { url in self.mediaToUpload = .video(url) } - .alert(NSLocalizedString("Are you sure you want to upload this media?", comment: "Alert message asking if the user wants to upload an image."), isPresented: $image_upload_confirm) { + .alert(NSLocalizedString("Are you sure you want to upload this media?", comment: "Alert message asking if the user wants to upload media."), isPresented: $image_upload_confirm) { Button(NSLocalizedString("Upload", comment: "Button to proceed with uploading."), role: .none) { if let mediaToUpload { self.handle_upload(media: mediaToUpload) @@ -367,7 +367,7 @@ struct PostView: View { } onVideoPicked: { url in self.mediaToUpload = .video(url) } - .alert("Are you sure you want to upload this media?", isPresented: $image_upload_confirm) { + .alert(NSLocalizedString("Are you sure you want to upload this media?", comment: "Alert message asking if the user wants to upload media."), isPresented: $image_upload_confirm) { Button(NSLocalizedString("Upload", comment: "Button to proceed with uploading."), role: .none) { if let mediaToUpload { self.handle_upload(media: mediaToUpload) diff --git a/damus/Views/Profile/EditProfilePictureControl.swift b/damus/Views/Profile/EditProfilePictureControl.swift @@ -53,7 +53,7 @@ struct EditProfilePictureControl: View { } onVideoPicked: { url in print("Cannot upload videos as profile image") } - .alert("Are you sure you want to upload this image?", isPresented: $image_upload_confirm) { + .alert(NSLocalizedString("Are you sure you want to upload this image?", comment: "Alert message asking if the user wants to upload an image."), isPresented: $image_upload_confirm) { Button(NSLocalizedString("Upload", comment: "Button to proceed with uploading."), role: .none) { if let mediaToUpload { self.handle_upload(media: mediaToUpload) @@ -70,7 +70,7 @@ struct EditProfilePictureControl: View { } onVideoPicked: { url in print("Cannot upload videos as profile image") } - .alert("Are you sure you want to upload this image?", isPresented: $image_upload_confirm) { + .alert(NSLocalizedString("Are you sure you want to upload this image?", comment: "Alert message asking if the user wants to upload an image."), isPresented: $image_upload_confirm) { Button(NSLocalizedString("Upload", comment: "Button to proceed with uploading."), role: .none) { if let mediaToUpload { self.handle_upload(media: mediaToUpload) diff --git a/damus/en-US.xcloc/Localized Contents/en-US.xliff b/damus/en-US.xcloc/Localized Contents/en-US.xliff @@ -211,6 +211,11 @@ Sentence composed of 2 variables to describe how many people are following a use <target>Are you sure you want to upload this image?</target> <note>Alert message asking if the user wants to upload an image.</note> </trans-unit> + <trans-unit id="Are you sure you want to upload this media?" xml:space="preserve"> + <source>Are you sure you want to upload this media?</source> + <target>Are you sure you want to upload this media?</target> + <note>Alert message asking if the user wants to upload media.</note> + </trans-unit> <trans-unit id="Automatically translate notes" xml:space="preserve"> <source>Automatically translate notes</source> <target>Automatically translate notes</target> @@ -1319,11 +1324,6 @@ Button text to indicate that the zap type is a private zap.</note> <target>Translated from %@</target> <note>Button to indicate that the note has been translated from a different language.</note> </trans-unit> - <trans-unit id="Translating..." xml:space="preserve"> - <source>Translating...</source> - <target>Translating...</target> - <note>Text to display when waiting for the translation of a note to finish processing before showing it.</note> - </trans-unit> <trans-unit id="Translation" xml:space="preserve"> <source>Translation</source> <target>Translation</target> 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.