Localize more strings in password view
This commit is contained in:
parent
936d91e415
commit
116e258d05
5 changed files with 10 additions and 6 deletions
|
|
@ -12,9 +12,9 @@ import passKit
|
|||
class EditPasswordTableViewController: PasswordEditorTableViewController {
|
||||
override func viewDidLoad() {
|
||||
tableData = [
|
||||
[[.type: PasswordEditorCellType.nameCell, .title: "name", .content: password!.namePath]],
|
||||
[[.type: PasswordEditorCellType.fillPasswordCell, .title: "password", .content: password!.password]],
|
||||
[[.type: PasswordEditorCellType.additionsCell, .title: "additions", .content: password!.additionsPlainText]],
|
||||
[[.type: PasswordEditorCellType.nameCell, .title: "Name".localize(), .content: password!.namePath]],
|
||||
[[.type: PasswordEditorCellType.fillPasswordCell, .title: "Password".localize(), .content: password!.password]],
|
||||
[[.type: PasswordEditorCellType.additionsCell, .title: "Additions".localize(), .content: password!.additionsPlainText]],
|
||||
[[.type: PasswordEditorCellType.scanQRCodeCell],
|
||||
[.type: PasswordEditorCellType.deletePasswordCell]]
|
||||
]
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
|
|||
// show additional information
|
||||
let filteredAdditionKeys = password.getFilteredAdditions()
|
||||
if filteredAdditionKeys.count > 0 {
|
||||
section = TableSection(type: .addition, header: "additions")
|
||||
section = TableSection(type: .addition, header: "Additions".localize())
|
||||
section.item.append(contentsOf: filteredAdditionKeys)
|
||||
tableData.append(section)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class PasswordEditorTableViewController: UITableViewController, FillPasswordTabl
|
|||
|
||||
private var navigationItemTitle: String?
|
||||
|
||||
private var sectionHeaderTitles = ["name", "password", "additions",""].map {$0.uppercased()}
|
||||
private var sectionHeaderTitles = ["Name".localize(), "Password".localize(), "Additions".localize(),""].map {$0.uppercased()}
|
||||
private var sectionFooterTitles = ["", "", "UseKeyValueFormat.".localize(), ""]
|
||||
private let nameSection = 0
|
||||
private let passwordSection = 1
|
||||
|
|
|
|||
|
|
@ -294,7 +294,7 @@ class SettingsTableViewController: UITableViewController, UITabBarControllerDele
|
|||
// prepare the alert for setting the passcode
|
||||
setPasscodeLockAlert = UIAlertController(title: "SetPasscode".localize(), message: "FillInAppPasscode.".localize(), preferredStyle: .alert)
|
||||
setPasscodeLockAlert?.addTextField(configurationHandler: {(_ textField: UITextField) -> Void in
|
||||
textField.placeholder = "Password".localize()
|
||||
textField.placeholder = "Passcode".localize()
|
||||
textField.isSecureTextEntry = true
|
||||
textField.addTarget(self, action: #selector(self.alertTextFieldDidChange(_:)), for: UIControlEvents.editingChanged)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -9,7 +9,9 @@
|
|||
// General
|
||||
"PassForIos" = "Pass for iOS";
|
||||
"Passphrase" = "Passphrase";
|
||||
"Password" = "Password";
|
||||
"Passwords" = "Passwords";
|
||||
"Passcode" = "Passcode";
|
||||
"Apple" = "Apple";
|
||||
"Settings" = "Settings";
|
||||
"Contributors" = "Contributors";
|
||||
|
|
@ -208,6 +210,8 @@
|
|||
"HttpNotSupported." = "HTTP connection is not supported.";
|
||||
|
||||
// Password view
|
||||
"Name" = "Name";
|
||||
"Additions" = "Additions";
|
||||
"Notice" = "Notice";
|
||||
"PreviousChangesDiscarded." = "All previous local changes have been discarded. Your current Password Store will be shown.";
|
||||
"CannotShowPassword" = "Cannot show password";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue