diff --git a/Yep/ViewControllers/Profile/ProfileViewController.swift b/Yep/ViewControllers/Profile/ProfileViewController.swift index 55c0b807..f0c4765e 100644 --- a/Yep/ViewControllers/Profile/ProfileViewController.swift +++ b/Yep/ViewControllers/Profile/ProfileViewController.swift @@ -550,7 +550,7 @@ class ProfileViewController: UIViewController { private func shareProfile() { - if let username = profileUser?.username, profileURL = NSURL(string: "http://soyep.com/\(username)") { + if let username = profileUser?.username, profileURL = NSURL(string: "http://soyep.com/\(username)"), nickname = profileUser?.username { MonkeyKing.registerAccount(.WeChat(appID: YepConfig.ChinaSocialNetwork.WeChat.appID)) @@ -568,8 +568,8 @@ class ProfileViewController: UIViewController { } let info = MonkeyKing.Message.WeChatSubtype.Info( - title: NSLocalizedString("Match me if you can", comment: ""), - description: NSLocalizedString("From Yep with Skills", comment: ""), + title: NSLocalizedString("Yep! I'm ", comment: "") + nickname, + description: NSLocalizedString("Match Genius Around You", comment: ""), thumbnail: thumbnail, media: .URL(profileURL) ) diff --git a/Yep/Views/SkillHomeHeaderView/SkillHomeHeaderView.swift b/Yep/Views/SkillHomeHeaderView/SkillHomeHeaderView.swift index c7a5b74d..7044f9b5 100644 --- a/Yep/Views/SkillHomeHeaderView/SkillHomeHeaderView.swift +++ b/Yep/Views/SkillHomeHeaderView/SkillHomeHeaderView.swift @@ -31,12 +31,12 @@ class SkillHomeHeaderView: UIView { }() lazy var masterButton: SkillHomeSectionButton = { - let button = createSkillHomeButtonWithText("Master", 100, YepConfig.skillHomeHeaderButtonHeight) + let button = createSkillHomeButtonWithText( NSLocalizedString("Master", comment: ""), 100, YepConfig.skillHomeHeaderButtonHeight) return button }() lazy var learningButton: SkillHomeSectionButton = { - let button = createSkillHomeButtonWithText("Learning", 100, YepConfig.skillHomeHeaderButtonHeight) + let button = createSkillHomeButtonWithText( NSLocalizedString("Learning", comment: ""), 100, YepConfig.skillHomeHeaderButtonHeight) return button }() diff --git a/Yep/en.lproj/Localizable.strings b/Yep/en.lproj/Localizable.strings index 02b32e55..3586d637 100644 --- a/Yep/en.lproj/Localizable.strings +++ b/Yep/en.lproj/Localizable.strings @@ -134,6 +134,12 @@ /* No comment provided by engineer. */ "Do you want to logout?" = "Do you want to logout?"; +/* No comment provided by engineer. */ +"Match Genius Around You" = "Match Genius Around You" + +/* No comment provided by engineer. */ +"Yep! I'm " = "Yep! I'm " + /* No comment provided by engineer. */ "Do you want to reject this friend request?" = "Do you want to reject this friend request?"; diff --git a/Yep/zh-Hans.lproj/Localizable.strings b/Yep/zh-Hans.lproj/Localizable.strings index 7be7d085..9217414d 100644 --- a/Yep/zh-Hans.lproj/Localizable.strings +++ b/Yep/zh-Hans.lproj/Localizable.strings @@ -242,7 +242,7 @@ "Meet" = "见面"; /* No comment provided by engineer. */ -"Meet with genius" = "与天才相遇"; +"Meet with genius" = "Meet with genius"; /* No comment provided by engineer. */ "Mute" = "静音"; @@ -589,6 +589,9 @@ /* No comment provided by engineer. */ "Match me if you can" = "以技能匹配你我"; +/* No comment provided by engineer. */ +"Match Genius Around You" = "寻找身边的天才" + /* No comment provided by engineer. */ "From Yep with Skills" = "From Yep with Skills"; @@ -607,6 +610,9 @@ /* No comment provided by engineer. */ "Set Username" = "设置用户名"; +/* No comment provided by engineer. */ +"Yep! I'm " = "Yep! 我是 " + /* No comment provided by engineer. */ "Please note that you can only set username once." = "请注意,您只能设置一次用户名。";