Add localization

pull/2/head
Oleg Gordiichuk 7 years ago committed by Michael Scoff
parent 43cac7fb62
commit 6c40d0d3dc
  1. 5
      Trust/Localization/en.lproj/Localizable.strings
  2. 2
      Trust/Lock/ViewControllers/LockPasscodeViewController.swift
  3. 6
      Trust/Lock/ViewModels/LockCreatePasscodeViewModel.swift

@ -138,3 +138,8 @@
"welldone.viewmodel.sharing.text2" = "Check out Trust - the wallet that lets me securely store my Ethereum and ERC20 tokens.";
"welldone.viewmodel.sharing.text3" = "I securely store Ethereum and ERC20 tokens in the Trust wallet";
"welldone.viewmodel.sharing.text4" = "I secure my Ethereum and ERC20 tokens in the Trust wallet.";
"lock.create.passcode.view.model.title" = "Set Passcode";
"lock.create.passcode.view.model.initial" = "Enter a new password";
"lock.create.passcode.view.model.confirm" = "Please re-enter your passcode";
"lock.enter.passcode.view.model.initial" = "Enter your passcode";
"lock.enter.passcode.view.model.incorrect" = "Incorrect passcode. Try again.";

@ -41,7 +41,7 @@ class LockPasscodeViewController: UIViewController {
view.addSubview(invisiblePasscodeField)
}
private func configureNavigationItems() {
navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Cancel", style: .plain, target: self, action: #selector(self.userTappedCancel))
navigationItem.rightBarButtonItem = UIBarButtonItem(title: NSLocalizedString("Cancel", value: "Cancel", comment: ""), style: .plain, target: self, action: #selector(self.userTappedCancel))
}
private func configureLockView() {
lockView = LockView(model)

@ -3,7 +3,7 @@
import UIKit
class LockCreatePasscodeViewModel: LockViewModel {
let title = "Passcode"
let initialLabelText = "Enter a new password"
let confirmLabelText = "Please re-enter your passcode"
let title = NSLocalizedString("lock.create.passcode.view.model.title", value: "Set Passcode", comment: "")
let initialLabelText = NSLocalizedString("lock.create.passcode.view.model.initial", value: "Enter a new password", comment: "")
let confirmLabelText = NSLocalizedString("lock.create.passcode.view.model.confirm", value: "Please re-enter your passcode", comment: "")
}

Loading…
Cancel
Save