Skip to content

Commit 9162d30

Browse files
committed
Use reverse-DNS keys in GrowAudienceCell strings
1 parent af95435 commit 9162d30

File tree

1 file changed

+38
-19
lines changed

1 file changed

+38
-19
lines changed

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

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -144,22 +144,26 @@ class GrowAudienceCell: UITableViewCell, NibLoadable {
144144
private enum Strings {
145145

146146
static let viewsCountDescriptionSingular = NSLocalizedString(
147-
"View to your site so far",
147+
"growAudienceCell.viewsCount.singular",
148+
value: "View to your site so far",
148149
comment: "Description for view count. Singular."
149150
)
150151

151152
static let viewsCountDescriptionPlural = NSLocalizedString(
152-
"Views to your site so far",
153+
"growAudienceCell.viewsCount.plural",
154+
value: "Views to your site so far",
153155
comment: "Description for view count. Singular."
154156
)
155157

156158
static let tipTitle = NSLocalizedString(
157-
"A tip to grow your audience",
159+
"growAudienceCell.tip",
160+
value: "A tip to grow your audience",
158161
comment: "A hint to users about growing the audience for their site, when their site doesn't have many views yet."
159162
)
160163

161164
static let dismissButtonTitle = NSLocalizedString(
162-
"Dismiss",
165+
"growAudienceCell.dismiss",
166+
value: "Dismiss",
163167
comment: "Title for button that will dismiss the Grow Your Audience card."
164168
)
165169

@@ -174,81 +178,96 @@ class GrowAudienceCell: UITableViewCell, NibLoadable {
174178

175179
enum Social {
176180
static let detailsTitle = NSLocalizedString(
177-
"Automatically share new posts to your social media to start bringing that audience over to your site.",
181+
"growAudienceCell.social.title",
182+
value: "Automatically share new posts to your social media to start bringing that audience over to your site.",
178183
comment: "A detailed message to users about growing the audience for their site through enabling post sharing."
179184
)
180185

181186
static let actionButtonTitle = NSLocalizedString(
182-
"Enable post sharing",
187+
"growAudienceCell.social.actionButton",
188+
value: "Enable post sharing",
183189
comment: "Title for button that will open up the social media Sharing screen."
184190
)
185191

186192
static let completedTipTitle = NSLocalizedString(
187-
"Sharing is set up!",
193+
"growAudienceCell.social.completed.title",
194+
value: "Sharing is set up!",
188195
comment: "A hint to users that they've set up post sharing."
189196
)
190197

191198
static let completedDetailsTitle = NSLocalizedString(
192-
"When you publish your next post it will be automatically shared to your connected networks.",
199+
"growAudienceCell.social.completed.details",
200+
value: "When you publish your next post it will be automatically shared to your connected networks.",
193201
comment: "A detailed message to users indicating that they've set up post sharing."
194202
)
195203

196204
static let completedActionButtonTitle = NSLocalizedString(
197-
"Connect more networks",
205+
"growAudienceCell.social.completed.button",
206+
value: "Connect more networks",
198207
comment: "Title for button that will open up the social media Sharing screen."
199208
)
200209
}
201210

202211
enum BloggingReminders {
203212
static let detailsTitle = NSLocalizedString(
204-
"Posting regularly can help build an audience. Reminders help keep you on track.",
213+
"growAudienceCell.bloggingReminders.details",
214+
value: "Posting regularly can help build an audience. Reminders help keep you on track.",
205215
comment: "A detailed message to users about growing the audience for their site through blogging reminders."
206216
)
207217

208218
static let actionButtonTitle = NSLocalizedString(
209-
"Set up blogging reminders",
219+
"growAudienceCell.bloggingReminders.actionButton",
220+
value: "Set up blogging reminders",
210221
comment: "Title for button that will open up the blogging reminders screen."
211222
)
212223

213224
static let completedTipTitle = NSLocalizedString(
214-
"You set up blogging reminders",
225+
"growAudienceCell.bloggingReminders.completed.tip",
226+
value: "You set up blogging reminders",
215227
comment: "A hint to users that they've set up blogging reminders."
216228
)
217229

218230
static let completedDetailsTitle = NSLocalizedString(
219-
"Keep blogging and check back to see visitors arriving at your site.",
231+
"growAudienceCell.bloggingReminders.completed.details",
232+
value: "Keep blogging and check back to see visitors arriving at your site.",
220233
comment: "A detailed message to users indicating that they've set up blogging reminders."
221234
)
222235

223236
static let completedActionButtonTitle = NSLocalizedString(
224-
"Edit reminders",
237+
"growAudienceCell.bloggingReminders.completed.actionButton",
238+
value: "Edit reminders",
225239
comment: "Title for button that will open up the blogging reminders screen."
226240
)
227241
}
228242

229243
enum ReaderDiscover {
230244
static let detailsTitle = NSLocalizedString(
231-
"Connect with other bloggers by following, liking and commenting on their posts.",
245+
"growAudienceCell.readerDiscover.details",
246+
value: "Connect with other bloggers by following, liking and commenting on their posts.",
232247
comment: "A detailed message to users about growing the audience for their site through reader discover."
233248
)
234249

235250
static let actionButtonTitle = NSLocalizedString(
236-
"Discover blogs to follow",
251+
"growAudienceCell.readerDiscover.actionButton",
252+
value: "Discover blogs to follow",
237253
comment: "Title for button that will open up the follow topics screen."
238254
)
239255

240256
static let completedTipTitle = NSLocalizedString(
241-
"You've connected with other blogs",
257+
"growAudienceCell.readerDiscover.completed.tip",
258+
value: "You've connected with other blogs",
242259
comment: "A hint to users that they've set up reader discover."
243260
)
244261

245262
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.",
263+
"growAudienceCell.readerDiscover.completed.details",
264+
value: "Keep going! Liking and commenting is a good way to build a network. Go to Reader to find more posts.",
247265
comment: "A detailed message to users indicating that they've set up reader discover."
248266
)
249267

250268
static let completedActionButtonTitle = NSLocalizedString(
251-
"Do it again",
269+
"growAudienceCell.readerDiscover.completed.action",
270+
value: "Do it again",
252271
comment: "Title for button that will open up the follow topics screen."
253272
)
254273
}

0 commit comments

Comments
 (0)