Skip to content

Commit be0149c

Browse files
committed
Use reverse-DNS keys for customize insights cell strings
1 parent 67aa5ed commit be0149c

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

WordPress/Classes/ViewRelated/Stats/Insights/Insights Management/CustomizeInsightsCell.swift

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,36 @@ private extension CustomizeInsightsCell {
7575
// MARK: - Constants
7676

7777
struct Labels {
78-
static let title = NSLocalizedString("Customize your insights", comment: "Customize Insights title")
79-
static let content = NSLocalizedString("Create your own customized dashboard and choose what reports to see. Focus on the data you care most about.", comment: "Customize Insights description")
80-
static let tryIt = NSLocalizedString("Try it now", comment: "Customize Insights button title")
81-
static let dismiss = NSLocalizedString("Dismiss", comment: "Customize Insights button title")
82-
static let dismissHint = NSLocalizedString("Tap to dismiss this card", comment: "Accessibility hint")
83-
static let tryItHint = NSLocalizedString("Tap to customize insights", comment: "Accessibility hint")
78+
static let title = NSLocalizedString(
79+
"customizeInsightsCell.title",
80+
value: "Customize your insights",
81+
comment: "Customize Insights title"
82+
)
83+
static let content = NSLocalizedString(
84+
"customizeInsightsCell.content",
85+
value: "Create your own customized dashboard and choose what reports to see. Focus on the data you care most about.",
86+
comment: "Customize Insights description"
87+
)
88+
static let tryIt = NSLocalizedString(
89+
"customizeInsightsCell.tryItButton.title",
90+
value: "Try it now",
91+
comment: "Customize Insights button title"
92+
)
93+
static let dismiss = NSLocalizedString(
94+
"customizeInsightsCell.dismissButton.title",
95+
value: "Dismiss",
96+
comment: "Customize Insights button title"
97+
)
98+
static let dismissHint = NSLocalizedString(
99+
"customizeInsightsCell.dismissButton.accessibilityHint",
100+
value: "Tap to dismiss this card",
101+
comment: "Accessibility hint"
102+
)
103+
static let tryItHint = NSLocalizedString(
104+
"customizeInsightsCell.tryItButton.accessibilityHint",
105+
value: "Tap to customize insights",
106+
comment: "Accessibility hint"
107+
)
84108
}
85109

86110
}

0 commit comments

Comments
 (0)