From 9a0ad7bcab447f80c3b6c120a23baed2a5087d09 Mon Sep 17 00:00:00 2001
From: Terry Yiu <963907+tyiu@users.noreply.github.com>
Date: Tue, 2 May 2023 14:32:03 -0400
Subject: [PATCH] Export strings for translation
---
damus/Views/PostView.swift | 4 ++--
.../Profile/EditProfilePictureControl.swift | 4 ++--
.../Localized Contents/en-US.xliff | 10 +++++-----
.../damus/en-US.lproj/Localizable.strings | Bin 82936 -> 82966 bytes
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/damus/Views/PostView.swift b/damus/Views/PostView.swift
index 37f9bbef..8fbdc218 100644
--- 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
index 7d82bc6c..dfc55493 100644
--- 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
index 10dcab5a..27c179be 100644
--- 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
Are you sure you want to upload this image?Alert message asking if the user wants to upload an image.
+
+ Are you sure you want to upload this media?
+ Are you sure you want to upload this media?
+ Alert message asking if the user wants to upload media.
+ Automatically translate notesAutomatically translate notes
@@ -1319,11 +1324,6 @@ Button text to indicate that the zap type is a private zap.
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.
- TranslationTranslation
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 a0f7310516bdb08a20de2183f2d63a9470a6c337..cecf0fdd94c400137f78b4f4ce6b1a468bc1ca48 100644
GIT binary patch
delta 79
zcmey-&N{7wbwh#Oa;uk{MEg{9?GiBp@HG7f36B
tRpv94!(~A>=uKCYXOx}3#eq>|x{o}g(DX|Vj1rR-u8VE2lVhBr3IKv^Eph+=