Skip to content

Commit

Permalink
button.calling
Browse files Browse the repository at this point in the history
  • Loading branch information
nixzhu committed Aug 12, 2016
1 parent f8e7c00 commit 5d560d6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion Yep/Extensions/String+Trans.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ extension String {
return NSLocalizedString("button.call_me", comment: "")
}


static var trans_buttonCalling: String {
return NSLocalizedString("button.calling", comment: "")
}

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ final class LoginVerifyMobileViewController: UIViewController {
callMeTimer.invalidate()

UIView.performWithoutAnimation { [weak self] in
self?.callMeButton.setTitle(NSLocalizedString("Calling", comment: ""), forState: .Normal)
self?.callMeButton.setTitle(String.trans_buttonCalling, forState: .Normal)
self?.callMeButton.layoutIfNeeded()
self?.callMeButton.enabled = false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ final class RegisterVerifyMobileViewController: SegueViewController {
callMeTimer.invalidate()

UIView.performWithoutAnimation { [weak self] in
self?.callMeButton.setTitle(NSLocalizedString("Calling", comment: ""), forState: .Normal)
self?.callMeButton.setTitle(String.trans_buttonCalling, forState: .Normal)
self?.callMeButton.layoutIfNeeded()
self?.callMeButton.enabled = false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ final class VerifyChangedMobileViewController: UIViewController {
callMeTimer.invalidate()

UIView.performWithoutAnimation { [weak self] in
self?.callMeButton.setTitle(NSLocalizedString("Calling", comment: ""), forState: .Normal)
self?.callMeButton.setTitle(String.trans_buttonCalling, forState: .Normal)
self?.callMeButton.layoutIfNeeded()
self?.callMeButton.enabled = false
}
Expand Down
2 changes: 1 addition & 1 deletion Yep/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"subtitle.build_world_together" = "Build world together";
"prompt.tap_next_agree_terms" = "By tapping Next you agree to our terms.";
"button.call_me" = "Call me";
"Calling" = "Calling";
"button.calling" = "Calling";
"Camera" = "Camera";
"Cancel recommended feed failed!" = "Cancel recommended feed failed!";
"Cancel" = "Cancel";
Expand Down
2 changes: 1 addition & 1 deletion Yep/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"subtitle.build_world_together" = "共建世界";
"prompt.tap_next_agree_terms" = "点击下一步表示您同意我们的条款。";
"button.call_me" = "呼叫我";
"Calling" = "正在呼叫";
"button.calling" = "正在呼叫";
"Camera" = "拍摄";
"Cancel recommended feed failed!" = "取消推荐话题失败!";
"Cancel" = "取消";
Expand Down

0 comments on commit 5d560d6

Please sign in to comment.