pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
changeset 2190 4fe9e5ba269d
parent 2189 13cc8dfac328
child 2191 a01eb69e9664
     1.1 --- a/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Mon May 22 18:22:36 2017 +0200
     1.2 +++ b/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Mon May 22 18:39:45 2017 +0200
     1.3 @@ -201,9 +201,9 @@
     1.4              self.tableView.reloadRows(at: [indexPath], with: .none)
     1.5          }
     1.6  
     1.7 -        var title = "\n\nFlag".localized
     1.8 +        var title = "\n\n" + NSLocalizedString("Flag", comment: "Message action (on swipe)")
     1.9          if message.imapFlags?.flagged ?? true {
    1.10 -            title = "\n\nUnFlag".localized
    1.11 +            title = "\n\n" + NSLocalizedString("Unflag", comment: "Message action (on swipe)")
    1.12          }
    1.13  
    1.14          return createRowAction(
    1.15 @@ -223,7 +223,7 @@
    1.16  
    1.17          return createRowAction(
    1.18              cell: cell, image: UIImage(named: "swipe-trash"), action: action,
    1.19 -            title: "\n\nDelete".localized)
    1.20 +            title: "\n\n" + NSLocalizedString("Delete", comment: "Message action (on swipe)"))
    1.21      }
    1.22  
    1.23      func createMarkAsReadAction(message: Message, cell: EmailListViewCell) -> UITableViewRowAction {
    1.24 @@ -237,10 +237,10 @@
    1.25          }
    1.26  
    1.27          var title = NSLocalizedString(
    1.28 -            "Unread", comment: "Unread button title in swipe action on EmailListViewController")
    1.29 +            "Unread", comment: "Message action (on swipe)")
    1.30          if !cell.haveSeen(message: message) {
    1.31              title = NSLocalizedString(
    1.32 -                "Read", comment: "Read button title in swipe action on EmailListViewController")
    1.33 +                "Read", comment: "Message action (on swipe)")
    1.34          }
    1.35  
    1.36          let isReadAction = createRowAction(cell: cell, image: nil, action: action,
    1.37 @@ -257,7 +257,7 @@
    1.38  
    1.39          return createRowAction(
    1.40              cell: cell, image: UIImage(named: "swipe-more"), action: action,
    1.41 -            title: "\n\nMore".localized)
    1.42 +            title: "\n\n" + NSLocalizedString("More", comment: "Message action (on swipe)"))
    1.43      }
    1.44  
    1.45      // MARK: - Action Sheet