Skip to content

Commit

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

static var trans_titleCamera: String {
return NSLocalizedString("title.camera", comment: "")
}

static var trans_promptCancelRecommendedFeedFailed: String {
return NSLocalizedString("prompt.cancel_recommended_feed_failed", comment: "")
}


}

extension String {
Expand Down
2 changes: 1 addition & 1 deletion Yep/ViewControllers/Feeds/FeedsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1712,7 +1712,7 @@ extension FeedsViewController: UITableViewDataSource, UITableViewDelegate {
if feed.recommended {
cancelRecommendedFeedWithFeedID(feed.id, failureHandler: { [weak self] reason, errorMessage in

let message = errorMessage ?? NSLocalizedString("Cancel recommended feed failed!", comment: "")
let message = errorMessage ?? String.trans_promptCancelRecommendedFeedFailed
YepAlert.alertSorry(message: message, inViewController: self)

}, completion: { [weak self] in
Expand Down
2 changes: 1 addition & 1 deletion Yep/ViewControllers/NewFeed/NewFeedViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ extension NewFeedViewController: UICollectionViewDataSource, UICollectionViewDel

let pickAlertController = UIAlertController(title: NSLocalizedString("Choose Source", comment: ""), message: nil, preferredStyle: .ActionSheet)

let cameraAction: UIAlertAction = UIAlertAction(title: NSLocalizedString("Camera", comment: ""), style: .Default) { _ in
let cameraAction: UIAlertAction = UIAlertAction(title: String.trans_titleCamera, style: .Default) { _ in

proposeToAccess(.Camera, agreed: { [weak self] in

Expand Down
4 changes: 2 additions & 2 deletions Yep/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"prompt.tap_next_agree_terms" = "By tapping Next you agree to our terms.";
"button.call_me" = "Call me";
"button.calling" = "Calling";
"Camera" = "Camera";
"Cancel recommended feed failed!" = "Cancel recommended feed failed!";
"title.camera" = "Camera";
"prompt.cancel_recommended_feed_failed" = "Cancel recommended feed failed!";
"Cancel" = "Cancel";
"Cancel\nRecommended" = "Cancel\nRecommended";
"Catch Inc." = "Catch Inc.";
Expand Down
4 changes: 2 additions & 2 deletions Yep/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"prompt.tap_next_agree_terms" = "点击下一步表示您同意我们的条款。";
"button.call_me" = "呼叫我";
"button.calling" = "正在呼叫";
"Camera" = "拍摄";
"Cancel recommended feed failed!" = "取消推荐话题失败!";
"title.camera" = "拍摄";
"prompt.cancel_recommended_feed_failed" = "取消推荐话题失败!";
"Cancel" = "取消";
"Cancel\nRecommended" = "取消\n推荐";
"Catch Inc." = "Catch Inc.";
Expand Down

0 comments on commit 9499f58

Please sign in to comment.