-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update various localized strings to use reverse-DNS keys #19635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
6158a2a
e16a9ba
67aa5ed
be0149c
af95435
9162d30
b6cd1d6
a18e59a
2a38cf8
5f16297
ea70a12
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -143,18 +143,29 @@ class GrowAudienceCell: UITableViewCell, NibLoadable { | |
|
|
||
| private enum Strings { | ||
|
|
||
| static let viewsCountDescriptionSingular = | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the diff in this this file is too noisy because of the formatting and indentation changes, checkout the isolated commit that adds the reverse-DNS keys |
||
| NSLocalizedString("View to your site so far", comment: "Description for view count. Singular.") | ||
|
|
||
| static let viewsCountDescriptionPlural = | ||
| NSLocalizedString("Views to your site so far", comment: "Description for view count. Singular.") | ||
|
|
||
| static let tipTitle = | ||
| NSLocalizedString("A tip to grow your audience", | ||
| comment: "A hint to users about growing the audience for their site, when their site doesn't have many views yet.") | ||
|
|
||
| static let dismissButtonTitle = | ||
| NSLocalizedString("Dismiss", comment: "Title for button that will dismiss the Grow Your Audience card.") | ||
| static let viewsCountDescriptionSingular = NSLocalizedString( | ||
| "growAudienceCell.viewsCount.singular", | ||
| value: "View to your site so far", | ||
| comment: "Description for view count. Singular." | ||
| ) | ||
|
|
||
| static let viewsCountDescriptionPlural = NSLocalizedString( | ||
| "growAudienceCell.viewsCount.plural", | ||
| value: "Views to your site so far", | ||
| comment: "Description for view count. Singular." | ||
| ) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unrelated to this PR, but it might be worth to explore using .stirngsdict to localize plurals. |
||
|
|
||
| static let tipTitle = NSLocalizedString( | ||
| "growAudienceCell.tip", | ||
| value: "A tip to grow your audience", | ||
| comment: "A hint to users about growing the audience for their site, when their site doesn't have many views yet." | ||
| ) | ||
|
|
||
| static let dismissButtonTitle = NSLocalizedString( | ||
| "growAudienceCell.dismiss", | ||
| value: "Dismiss", | ||
| comment: "Title for button that will dismiss the Grow Your Audience card." | ||
| ) | ||
|
|
||
| static func getViewsCountDescription(viewsCount: Int) -> String { | ||
| return viewsCount == 1 ? viewsCountDescriptionSingular : viewsCountDescriptionPlural | ||
|
|
@@ -166,63 +177,99 @@ class GrowAudienceCell: UITableViewCell, NibLoadable { | |
| } | ||
|
|
||
| enum Social { | ||
| static let detailsTitle = | ||
| NSLocalizedString("Automatically share new posts to your social media to start bringing that audience over to your site.", | ||
| comment: "A detailed message to users about growing the audience for their site through enabling post sharing.") | ||
|
|
||
| static let actionButtonTitle = | ||
| NSLocalizedString("Enable post sharing", comment: "Title for button that will open up the social media Sharing screen.") | ||
|
|
||
| static let completedTipTitle = | ||
| NSLocalizedString("Sharing is set up!", | ||
| comment: "A hint to users that they've set up post sharing.") | ||
|
|
||
| static let completedDetailsTitle = | ||
| NSLocalizedString("When you publish your next post it will be automatically shared to your connected networks.", | ||
| comment: "A detailed message to users indicating that they've set up post sharing.") | ||
|
|
||
| static let completedActionButtonTitle = | ||
| NSLocalizedString("Connect more networks", comment: "Title for button that will open up the social media Sharing screen.") | ||
| static let detailsTitle = NSLocalizedString( | ||
| "growAudienceCell.social.title", | ||
| value: "Automatically share new posts to your social media to start bringing that audience over to your site.", | ||
| comment: "A detailed message to users about growing the audience for their site through enabling post sharing." | ||
| ) | ||
|
|
||
| static let actionButtonTitle = NSLocalizedString( | ||
| "growAudienceCell.social.actionButton", | ||
| value: "Enable post sharing", | ||
| comment: "Title for button that will open up the social media Sharing screen." | ||
| ) | ||
|
|
||
| static let completedTipTitle = NSLocalizedString( | ||
| "growAudienceCell.social.completed.title", | ||
| value: "Sharing is set up!", | ||
| comment: "A hint to users that they've set up post sharing." | ||
| ) | ||
|
|
||
| static let completedDetailsTitle = NSLocalizedString( | ||
| "growAudienceCell.social.completed.details", | ||
| value: "When you publish your next post it will be automatically shared to your connected networks.", | ||
| comment: "A detailed message to users indicating that they've set up post sharing." | ||
| ) | ||
|
|
||
| static let completedActionButtonTitle = NSLocalizedString( | ||
| "growAudienceCell.social.completed.button", | ||
| value: "Connect more networks", | ||
| comment: "Title for button that will open up the social media Sharing screen." | ||
| ) | ||
| } | ||
|
|
||
| enum BloggingReminders { | ||
| static let detailsTitle = | ||
| NSLocalizedString("Posting regularly can help build an audience. Reminders help keep you on track.", | ||
| comment: "A detailed message to users about growing the audience for their site through blogging reminders.") | ||
|
|
||
| static let actionButtonTitle = | ||
| NSLocalizedString("Set up blogging reminders", comment: "Title for button that will open up the blogging reminders screen.") | ||
|
|
||
| static let completedTipTitle = | ||
| NSLocalizedString("You set up blogging reminders", | ||
| comment: "A hint to users that they've set up blogging reminders.") | ||
|
|
||
| static let completedDetailsTitle = | ||
| NSLocalizedString("Keep blogging and check back to see visitors arriving at your site.", | ||
| comment: "A detailed message to users indicating that they've set up blogging reminders.") | ||
|
|
||
| static let completedActionButtonTitle = | ||
| NSLocalizedString("Edit reminders", comment: "Title for button that will open up the blogging reminders screen.") | ||
| static let detailsTitle = NSLocalizedString( | ||
| "growAudienceCell.bloggingReminders.details", | ||
| value: "Posting regularly can help build an audience. Reminders help keep you on track.", | ||
| comment: "A detailed message to users about growing the audience for their site through blogging reminders." | ||
| ) | ||
|
|
||
| static let actionButtonTitle = NSLocalizedString( | ||
| "growAudienceCell.bloggingReminders.actionButton", | ||
| value: "Set up blogging reminders", | ||
| comment: "Title for button that will open up the blogging reminders screen." | ||
| ) | ||
|
|
||
| static let completedTipTitle = NSLocalizedString( | ||
| "growAudienceCell.bloggingReminders.completed.tip", | ||
| value: "You set up blogging reminders", | ||
| comment: "A hint to users that they've set up blogging reminders." | ||
| ) | ||
|
|
||
| static let completedDetailsTitle = NSLocalizedString( | ||
| "growAudienceCell.bloggingReminders.completed.details", | ||
| value: "Keep blogging and check back to see visitors arriving at your site.", | ||
| comment: "A detailed message to users indicating that they've set up blogging reminders." | ||
| ) | ||
|
|
||
| static let completedActionButtonTitle = NSLocalizedString( | ||
| "growAudienceCell.bloggingReminders.completed.actionButton", | ||
| value: "Edit reminders", | ||
| comment: "Title for button that will open up the blogging reminders screen." | ||
| ) | ||
| } | ||
|
|
||
| enum ReaderDiscover { | ||
| static let detailsTitle = | ||
| NSLocalizedString("Connect with other bloggers by following, liking and commenting on their posts.", | ||
| comment: "A detailed message to users about growing the audience for their site through reader discover.") | ||
|
|
||
| static let actionButtonTitle = | ||
| NSLocalizedString("Discover blogs to follow", comment: "Title for button that will open up the follow topics screen.") | ||
|
|
||
| static let completedTipTitle = | ||
| NSLocalizedString("You've connected with other blogs", | ||
| comment: "A hint to users that they've set up reader discover.") | ||
|
|
||
| static let completedDetailsTitle = | ||
| NSLocalizedString("Keep going! Liking and commenting is a good way to build a network. Go to Reader to find more posts.", | ||
| comment: "A detailed message to users indicating that they've set up reader discover.") | ||
|
|
||
| static let completedActionButtonTitle = | ||
| NSLocalizedString("Do it again", comment: "Title for button that will open up the follow topics screen.") | ||
| static let detailsTitle = NSLocalizedString( | ||
| "growAudienceCell.readerDiscover.details", | ||
| value: "Connect with other bloggers by following, liking and commenting on their posts.", | ||
| comment: "A detailed message to users about growing the audience for their site through reader discover." | ||
| ) | ||
|
|
||
| static let actionButtonTitle = NSLocalizedString( | ||
| "growAudienceCell.readerDiscover.actionButton", | ||
| value: "Discover blogs to follow", | ||
| comment: "Title for button that will open up the follow topics screen." | ||
| ) | ||
|
|
||
| static let completedTipTitle = NSLocalizedString( | ||
| "growAudienceCell.readerDiscover.completed.tip", | ||
| value: "You've connected with other blogs", | ||
| comment: "A hint to users that they've set up reader discover." | ||
| ) | ||
|
|
||
| static let completedDetailsTitle = NSLocalizedString( | ||
| "growAudienceCell.readerDiscover.completed.details", | ||
| value: "Keep going! Liking and commenting is a good way to build a network. Go to Reader to find more posts.", | ||
| comment: "A detailed message to users indicating that they've set up reader discover." | ||
| ) | ||
|
|
||
| static let completedActionButtonTitle = NSLocalizedString( | ||
| "growAudienceCell.readerDiscover.completed.action", | ||
| value: "Do it again", | ||
| comment: "Title for button that will open up the follow topics screen." | ||
| ) | ||
| } | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment in the commit: ea70a12#comments