Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel and Delete buttons are not localizable #48

Open
romanzes opened this issue May 18, 2016 · 0 comments
Open

Cancel and Delete buttons are not localizable #48

romanzes opened this issue May 18, 2016 · 0 comments

Comments

@romanzes
Copy link

I made a translation of PasscodeLock.strings to Russian, but found that "Cancel" and "Delete" buttons on keypad are still in English. It's strange that this behavior hasn't got an attention yet. Localization should be supported for them. However, there is a workaround using custom PasscodeLockViewController:

class LocalizedPasscodeViewController: PasscodeLockViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        cancelButton?.setTitle(NSLocalizedString("passcode_cancel_button", comment: "Passcode screen cancel button"), forState: .Normal)
        deleteSignButton?.setTitle(NSLocalizedString("passcode_delete_button", comment: "Passcode screen delete button"), forState: .Normal)
    }
}
romanzes pushed a commit to romanzes/SwiftPasscodeLock that referenced this issue May 18, 2016
romanzes pushed a commit to romanzes/SwiftPasscodeLock that referenced this issue May 18, 2016
ziogaschr pushed a commit to ziogaschr/SwiftPasscodeLock that referenced this issue Jun 10, 2016
# Conflicts:
#	PasscodeLock/PasscodeLockViewController.swift
ziogaschr pushed a commit to ziogaschr/SwiftPasscodeLock that referenced this issue Jun 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant