Bläddra i källkod

reuse existing string to ask for deletion of a message

cyberta 5 år sedan
förälder
incheckning
be5b2932b0

+ 1 - 1
deltachat-ios/Controller/ChatViewController.swift

@@ -502,7 +502,7 @@ class ChatViewController: MessagesViewController {
     }
 
     private func askToDeleteMessage(id: Int) {
-        let alert = UIAlertController(title: String.localized("delete_message_ask"),
+        let alert = UIAlertController(title: String.localizedStringWithFormat(String.localized("ask_delete_messages"), 1),
                                          message: nil,
                                          preferredStyle: .actionSheet)
         alert.addAction(UIAlertAction(title: String.localized("delete"), style: .destructive, handler: { _ in

+ 0 - 1
deltachat-ios/en.lproj/Localizable.strings

@@ -625,4 +625,3 @@
 "complete" = "Complete";
 "info" = "Info";
 "qr_code_title" = "QR scan/show";
-"delete_message_ask" = "Do you really want to delete this message from your phone?";

+ 0 - 1
tools/untranslated.xml

@@ -23,7 +23,6 @@
     <string name="complete">Complete</string>
     <string name="info">Info</string>
     <string name="qr_code_title">QR scan/show</string>
-    <string name="delete_message_ask">Do you really want to delete this message from your phone?</string>
     <!-- info plist keys need to pre prefixed with INFOPLIST., spaces need to be replaced with dots and dashes need to replaced with underscores -->
     <string name="INFOPLIST.Privacy._.Camera.Usage.Description">Allowing access to the camera lets you take photos and videos.</string>
     <string name="INFOPLIST.Privacy._.Contacts.Usage.Description">Allowing access to your address book lets you chat with contacts from your device.</string>