Skip to content

Commit af95435

Browse files
committed
Adjust GrowAudienceCell.swift strings indentation
This is to make the diff of the next commit, where we'll add the reverse-DNS keys cleaner.
1 parent be0149c commit af95435

File tree

1 file changed

+91
-63
lines changed

1 file changed

+91
-63
lines changed

WordPress/Classes/ViewRelated/Stats/Shared Views/GrowAudienceCell.swift

Lines changed: 91 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,25 @@ class GrowAudienceCell: UITableViewCell, NibLoadable {
143143

144144
private enum Strings {
145145

146-
static let viewsCountDescriptionSingular =
147-
NSLocalizedString("View to your site so far", comment: "Description for view count. Singular.")
148-
149-
static let viewsCountDescriptionPlural =
150-
NSLocalizedString("Views to your site so far", comment: "Description for view count. Singular.")
151-
152-
static let tipTitle =
153-
NSLocalizedString("A tip to grow your audience",
154-
comment: "A hint to users about growing the audience for their site, when their site doesn't have many views yet.")
155-
156-
static let dismissButtonTitle =
157-
NSLocalizedString("Dismiss", comment: "Title for button that will dismiss the Grow Your Audience card.")
146+
static let viewsCountDescriptionSingular = NSLocalizedString(
147+
"View to your site so far",
148+
comment: "Description for view count. Singular."
149+
)
150+
151+
static let viewsCountDescriptionPlural = NSLocalizedString(
152+
"Views to your site so far",
153+
comment: "Description for view count. Singular."
154+
)
155+
156+
static let tipTitle = NSLocalizedString(
157+
"A tip to grow your audience",
158+
comment: "A hint to users about growing the audience for their site, when their site doesn't have many views yet."
159+
)
160+
161+
static let dismissButtonTitle = NSLocalizedString(
162+
"Dismiss",
163+
comment: "Title for button that will dismiss the Grow Your Audience card."
164+
)
158165

159166
static func getViewsCountDescription(viewsCount: Int) -> String {
160167
return viewsCount == 1 ? viewsCountDescriptionSingular : viewsCountDescriptionPlural
@@ -166,63 +173,84 @@ class GrowAudienceCell: UITableViewCell, NibLoadable {
166173
}
167174

168175
enum Social {
169-
static let detailsTitle =
170-
NSLocalizedString("Automatically share new posts to your social media to start bringing that audience over to your site.",
171-
comment: "A detailed message to users about growing the audience for their site through enabling post sharing.")
172-
173-
static let actionButtonTitle =
174-
NSLocalizedString("Enable post sharing", comment: "Title for button that will open up the social media Sharing screen.")
175-
176-
static let completedTipTitle =
177-
NSLocalizedString("Sharing is set up!",
178-
comment: "A hint to users that they've set up post sharing.")
179-
180-
static let completedDetailsTitle =
181-
NSLocalizedString("When you publish your next post it will be automatically shared to your connected networks.",
182-
comment: "A detailed message to users indicating that they've set up post sharing.")
183-
184-
static let completedActionButtonTitle =
185-
NSLocalizedString("Connect more networks", comment: "Title for button that will open up the social media Sharing screen.")
176+
static let detailsTitle = NSLocalizedString(
177+
"Automatically share new posts to your social media to start bringing that audience over to your site.",
178+
comment: "A detailed message to users about growing the audience for their site through enabling post sharing."
179+
)
180+
181+
static let actionButtonTitle = NSLocalizedString(
182+
"Enable post sharing",
183+
comment: "Title for button that will open up the social media Sharing screen."
184+
)
185+
186+
static let completedTipTitle = NSLocalizedString(
187+
"Sharing is set up!",
188+
comment: "A hint to users that they've set up post sharing."
189+
)
190+
191+
static let completedDetailsTitle = NSLocalizedString(
192+
"When you publish your next post it will be automatically shared to your connected networks.",
193+
comment: "A detailed message to users indicating that they've set up post sharing."
194+
)
195+
196+
static let completedActionButtonTitle = NSLocalizedString(
197+
"Connect more networks",
198+
comment: "Title for button that will open up the social media Sharing screen."
199+
)
186200
}
187201

188202
enum BloggingReminders {
189-
static let detailsTitle =
190-
NSLocalizedString("Posting regularly can help build an audience. Reminders help keep you on track.",
191-
comment: "A detailed message to users about growing the audience for their site through blogging reminders.")
192-
193-
static let actionButtonTitle =
194-
NSLocalizedString("Set up blogging reminders", comment: "Title for button that will open up the blogging reminders screen.")
195-
196-
static let completedTipTitle =
197-
NSLocalizedString("You set up blogging reminders",
198-
comment: "A hint to users that they've set up blogging reminders.")
199-
200-
static let completedDetailsTitle =
201-
NSLocalizedString("Keep blogging and check back to see visitors arriving at your site.",
202-
comment: "A detailed message to users indicating that they've set up blogging reminders.")
203-
204-
static let completedActionButtonTitle =
205-
NSLocalizedString("Edit reminders", comment: "Title for button that will open up the blogging reminders screen.")
203+
static let detailsTitle = NSLocalizedString(
204+
"Posting regularly can help build an audience. Reminders help keep you on track.",
205+
comment: "A detailed message to users about growing the audience for their site through blogging reminders."
206+
)
207+
208+
static let actionButtonTitle = NSLocalizedString(
209+
"Set up blogging reminders",
210+
comment: "Title for button that will open up the blogging reminders screen."
211+
)
212+
213+
static let completedTipTitle = NSLocalizedString(
214+
"You set up blogging reminders",
215+
comment: "A hint to users that they've set up blogging reminders."
216+
)
217+
218+
static let completedDetailsTitle = NSLocalizedString(
219+
"Keep blogging and check back to see visitors arriving at your site.",
220+
comment: "A detailed message to users indicating that they've set up blogging reminders."
221+
)
222+
223+
static let completedActionButtonTitle = NSLocalizedString(
224+
"Edit reminders",
225+
comment: "Title for button that will open up the blogging reminders screen."
226+
)
206227
}
207228

208229
enum ReaderDiscover {
209-
static let detailsTitle =
210-
NSLocalizedString("Connect with other bloggers by following, liking and commenting on their posts.",
211-
comment: "A detailed message to users about growing the audience for their site through reader discover.")
212-
213-
static let actionButtonTitle =
214-
NSLocalizedString("Discover blogs to follow", comment: "Title for button that will open up the follow topics screen.")
215-
216-
static let completedTipTitle =
217-
NSLocalizedString("You've connected with other blogs",
218-
comment: "A hint to users that they've set up reader discover.")
219-
220-
static let completedDetailsTitle =
221-
NSLocalizedString("Keep going! Liking and commenting is a good way to build a network. Go to Reader to find more posts.",
222-
comment: "A detailed message to users indicating that they've set up reader discover.")
223-
224-
static let completedActionButtonTitle =
225-
NSLocalizedString("Do it again", comment: "Title for button that will open up the follow topics screen.")
230+
static let detailsTitle = NSLocalizedString(
231+
"Connect with other bloggers by following, liking and commenting on their posts.",
232+
comment: "A detailed message to users about growing the audience for their site through reader discover."
233+
)
234+
235+
static let actionButtonTitle = NSLocalizedString(
236+
"Discover blogs to follow",
237+
comment: "Title for button that will open up the follow topics screen."
238+
)
239+
240+
static let completedTipTitle = NSLocalizedString(
241+
"You've connected with other blogs",
242+
comment: "A hint to users that they've set up reader discover."
243+
)
244+
245+
static let completedDetailsTitle = NSLocalizedString(
246+
"Keep going! Liking and commenting is a good way to build a network. Go to Reader to find more posts.",
247+
comment: "A detailed message to users indicating that they've set up reader discover."
248+
)
249+
250+
static let completedActionButtonTitle = NSLocalizedString(
251+
"Do it again",
252+
comment: "Title for button that will open up the follow topics screen."
253+
)
226254
}
227255
}
228256

0 commit comments

Comments
 (0)