Jelajahi Sumber

tweak translations

B. Petersen 5 tahun lalu
induk
melakukan
cad05ae0c2

+ 3 - 1
deltachat-ios/Controller/SettingsAutodelSetController.swift

@@ -17,6 +17,7 @@ class SettingsAutodelSetController: UITableViewController {
             Options(value: 86400, descr: "autodel_after_1_day"),
             Options(value: 86400, descr: "autodel_after_1_day"),
             Options(value: 604800, descr: "autodel_after_1_week"),
             Options(value: 604800, descr: "autodel_after_1_week"),
             Options(value: 2419200, descr: "autodel_after_4_weeks"),
             Options(value: 2419200, descr: "autodel_after_4_weeks"),
+            Options(value: 31536000, descr: "autodel_after_1_year"),
         ]
         ]
     }()
     }()
 
 
@@ -28,6 +29,7 @@ class SettingsAutodelSetController: UITableViewController {
             Options(value: 86400, descr: "autodel_after_1_day"),
             Options(value: 86400, descr: "autodel_after_1_day"),
             Options(value: 604800, descr: "autodel_after_1_week"),
             Options(value: 604800, descr: "autodel_after_1_week"),
             Options(value: 2419200, descr: "autodel_after_4_weeks"),
             Options(value: 2419200, descr: "autodel_after_4_weeks"),
+            Options(value: 31536000, descr: "autodel_after_1_year"),
         ]
         ]
     }()
     }()
 
 
@@ -116,7 +118,7 @@ class SettingsAutodelSetController: UITableViewController {
 
 
         if newVal != currVal && newVal != 0 {
         if newVal != currVal && newVal != 0 {
             let delCount = dcContext.estimateDeletionCnt(fromServer: fromServer, timeout: newVal)
             let delCount = dcContext.estimateDeletionCnt(fromServer: fromServer, timeout: newVal)
-            let newDescr = "\"" + String.localized(self.autodelOptions[indexPath.row].descr) + "\""
+            let newDescr = String.localized(self.autodelOptions[indexPath.row].descr)
             let msg = String.localizedStringWithFormat(String.localized(fromServer ? "autodel_server_ask" : "autodel_device_ask"), delCount, newDescr)
             let msg = String.localizedStringWithFormat(String.localized(fromServer ? "autodel_server_ask" : "autodel_device_ask"), delCount, newDescr)
             let alert = UIAlertController(
             let alert = UIAlertController(
                 title: String.localized(fromServer ? "autodel_server_title" : "autodel_device_title"),
                 title: String.localized(fromServer ? "autodel_server_title" : "autodel_device_title"),

+ 1 - 1
deltachat-ios/View/TextFieldCell.swift

@@ -94,7 +94,7 @@ class TextFieldCell: UITableViewCell {
     }
     }
 
 
     static func makePasswordCell(delegate _: UITextFieldDelegate? = nil) -> TextFieldCell {
     static func makePasswordCell(delegate _: UITextFieldDelegate? = nil) -> TextFieldCell {
-        let cell = TextFieldCell(description: String.localized("password"), placeholder: String.localized("password"))
+        let cell = TextFieldCell(description: String.localized("password"), placeholder: String.localized("existing_password"))
         cell.textField.textContentType = UITextContentType.password
         cell.textField.textContentType = UITextContentType.password
         cell.textField.isSecureTextEntry = true
         cell.textField.isSecureTextEntry = true
         return cell
         return cell