Skip to content

Commit 4aa1e06

Browse files
authored
Merge pull request #115 from woocommerce/bugfix/89-login-improvements
Login prologue: update marketing text and disclaimer text.
2 parents d1d47ed + 49b873b commit 4aa1e06

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

WooCommerce/Classes/Authentication/Prologue/LoginPrologueViewController.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private extension LoginPrologueViewController {
7070
}
7171

7272
func setupUpperLabel() {
73-
upperLabel.text = NSLocalizedString("Check your WooCommerce store on the go, fulfill your orders and get notifications of new sales.", comment: "Login Prologue Legend")
73+
upperLabel.text = NSLocalizedString("Your WooCommerce store on the go. Check your sales, fulfill your orders, and get notifications of new sales.", comment: "Login Prologue Legend")
7474
upperLabel.font = UIFont.font(forStyle: .subheadline, weight: .bold)
7575
upperLabel.textColor = .white
7676
}
@@ -135,19 +135,23 @@ private extension LoginPrologueViewController {
135135
/// Returns the Disclaimer Attributed Text (which contains a link to the Jetpack Setup URL).
136136
///
137137
var disclaimerAttributedText: NSAttributedString {
138-
let disclaimerText = NSLocalizedString("This app requires Jetpack to be able to connect to your WooCommerce Store.\nFor configuration instructions, ", comment: "Login Disclaimer Text")
138+
let disclaimerText = NSLocalizedString("This app requires Jetpack to be able to connect to your WooCommerce Store.\nRead the ", comment: "Login Disclaimer Text and Jetpack config instructions")
139139
let disclaimerAttributes: [NSAttributedStringKey: Any] = [
140140
.font: UIFont.font(forStyle: .caption1, weight: .thin),
141141
.foregroundColor: UIColor.black
142142
]
143143

144-
let readText = NSLocalizedString("read here.", comment: "Login Disclaimer Linked Text")
144+
let readText = NSLocalizedString("configuration instructions", comment: "Login Disclaimer Linked Text")
145145
var readAttributes = disclaimerAttributes
146146
readAttributes[.link] = URL(string: WooConstants.jetpackSetupUrl)
147-
148147
let readAttrText = NSMutableAttributedString(string: readText, attributes: readAttributes)
148+
149+
let endSentenceText = "."
150+
let endSentenceAttrText = NSMutableAttributedString(string: endSentenceText, attributes: disclaimerAttributes)
151+
149152
let disclaimerAttrText = NSMutableAttributedString(string: disclaimerText, attributes: disclaimerAttributes)
150153
disclaimerAttrText.append(readAttrText)
154+
disclaimerAttrText.append(endSentenceAttrText)
151155

152156
return disclaimerAttrText
153157
}

0 commit comments

Comments
 (0)