Export strings for translation

This commit is contained in:
2023-05-02 14:32:03 -04:00
committed by William Casarin
parent 136186e664
commit 9a0ad7bcab
4 changed files with 9 additions and 9 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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>