Skip to content

Commit 90d2ea0

Browse files
authored
EXP-5874 Add strings for Rollouts toggle and update Studies strings (#31198)
EXP-5874 Add strings for Rollouts toggle and update Studies strings (v148)
1 parent ab1bd96 commit 90d2ea0

File tree

5 files changed

+76
-4
lines changed

5 files changed

+76
-4
lines changed

.github/l10n/linter_config_ios.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
},
66
"quotes": {
77
"enabled": true,
8-
"exclusions": []
8+
"exclusions": [
9+
"firefox-ios.xliff:Settings.Studies.Message.v136"
10+
]
911
},
1012
"placeables": {
1113
"enabled": true,

firefox-ios/Shared/Strings.swift

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6229,6 +6229,36 @@ extension String {
62296229
tableName: "Settings",
62306230
value: "Try out features and ideas before they’re released to everyone.",
62316231
comment: "A short description that explains that Mozilla is running studies")
6232+
public static let StudiesSettingTitleV3 = MZLocalizedString(
6233+
key: "Settings.Studies.Title.v148",
6234+
tableName: "Settings",
6235+
value: "Allow Feature Studies",
6236+
comment: "Label used as a toggle item in Settings. When this is off, the user is opting out of all studies.")
6237+
public static let StudiesSettingLinkV3 = MZLocalizedString(
6238+
key: "Settings.Studies.Link.v148",
6239+
tableName: "Settings",
6240+
value: "Learn More",
6241+
comment: "Title for a link that explains what Mozilla means by Studies")
6242+
public static let StudiesSettingMessageV3 = MZLocalizedString(
6243+
key: "Settings.Studies.Message.v148",
6244+
tableName: "Settings",
6245+
value: "%@ randomly selects users to test features, which improves quality for everyone.",
6246+
comment: "A short description that explains that Mozilla is running studies. %@ is the app name (e.g. Firefox).")
6247+
public static let RolloutsSettingTitle = MZLocalizedString(
6248+
key: "Settings.Rollouts.Title.v148",
6249+
tableName: "Settings",
6250+
value: "Allow Remote Improvements",
6251+
comment: "Label used as a toggle item in Settings. When this is off, the user is opting out of all rollouts.")
6252+
public static let RolloutsSettingLink = MZLocalizedString(
6253+
key: "Settings.Rollouts.Link.v148",
6254+
tableName: "Settings",
6255+
value: "Learn More",
6256+
comment: "Title for a link that explains what Mozilla means by Rollouts")
6257+
public static let RolloutsSettingMessage = MZLocalizedString(
6258+
key: "Settings.Rollouts.Message.v148",
6259+
tableName: "Settings",
6260+
value: "%@ will improve features, performance, and stability between updates. Changes applied remotely.",
6261+
comment: "A short description that explains that Mozilla may change features remotely. %@ is the app name (e.g. Firefox).")
62326262
public static let SettingsSiriSectionName = MZLocalizedString(
62336263
key: "Settings.Siri.SectionName",
62346264
tableName: nil,

firefox-ios/Shared/Supporting Files/en-CA.lproj/Settings.strings

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,30 @@
235235
/* Title for a link that explains what Mozilla means by Studies */
236236
"Settings.Studies.Link.v136" = "Learn More";
237237

238+
/* Title for a link that explains what Mozilla means by Studies */
239+
"Settings.Studies.Link.v148" = "Learn More";
240+
238241
/* A short description that explains that Mozilla is running studies */
239242
"Settings.Studies.Message.v136" = "Try out features and ideas before they’re released to everyone.";
240243

244+
/* A short description that explains that Mozilla is running studies. %@ is the app name (e.g. Firefox). */
245+
"Settings.Studies.Message.v148" = "%@ randomly selects users to test features, which improves quality for everyone.";
246+
241247
/* Label used as a toggle item in Settings. When this is off, the user is opting out of all studies. */
242248
"Settings.Studies.Title.v136" = "Install and Run Studies";
243249

250+
/* Label used as a toggle item in Settings. When this is off, the user is opting out of all studies. */
251+
"Settings.Studies.Title.v148" = "Allow Feature Studies";
252+
253+
/* Title for a link that explains what Mozilla means by Rollouts */
254+
"Settings.Rollouts.Link.v148" = "Learn More";
255+
256+
/* A short description that explains that Mozilla may change features remotely. %@ is the app name (e.g. Firefox). */
257+
"Settings.Rollouts.Message.v148" = "%@ will improve features, performance, and stability between updates. Changes applied remotely.";
258+
259+
/* Label used as a toggle item in Settings. When this is off, the user is opting out of all rollouts. */
260+
"Settings.Rollouts.Title.v148" = "Allow Remote Improvements";
261+
244262
/* This is the footer text for the setting that toggles the Summarize feature under the Summarize settings section. */
245263
"Settings.Summarize.FooterTitle.v142" = "Provides access to summarize pages.";
246264

firefox-ios/Shared/Supporting Files/en-GB.lproj/Settings.strings

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,30 @@
235235
/* Title for a link that explains what Mozilla means by Studies */
236236
"Settings.Studies.Link.v136" = "Learn More";
237237

238+
/* Title for a link that explains what Mozilla means by Studies */
239+
"Settings.Studies.Link.v148" = "Learn More";
240+
238241
/* A short description that explains that Mozilla is running studies */
239242
"Settings.Studies.Message.v136" = "Try out features and ideas before they’re released to everyone.";
240243

244+
/* A short description that explains that Mozilla is running studies. %@ is the app name (e.g. Firefox). */
245+
"Settings.Studies.Message.v148" = "%@ randomly selects users to test features, which improves quality for everyone.";
246+
241247
/* Label used as a toggle item in Settings. When this is off, the user is opting out of all studies. */
242248
"Settings.Studies.Title.v136" = "Install and Run Studies";
243249

250+
/* Label used as a toggle item in Settings. When this is off, the user is opting out of all studies. */
251+
"Settings.Studies.Title.v148" = "Allow Feature Studies";
252+
253+
/* Title for a link that explains what Mozilla means by Rollouts */
254+
"Settings.Rollouts.Link.v148" = "Learn More";
255+
256+
/* A short description that explains that Mozilla may change features remotely. %@ is the app name (e.g. Firefox). */
257+
"Settings.Rollouts.Message.v148" = "%@ will improve features, performance, and stability between updates. Changes applied remotely.";
258+
259+
/* Label used as a toggle item in Settings. When this is off, the user is opting out of all rollouts. */
260+
"Settings.Rollouts.Title.v148" = "Allow Remote Improvements";
261+
244262
/* This is the footer text for the setting that toggles the Summarize feature under the Summarize settings section. */
245263
"Settings.Summarize.FooterTitle.v142" = "Provides access to summarise pages.";
246264

@@ -291,4 +309,3 @@
291309

292310
/* This is the title for the setting that toggles the Translation feature that allows users to translate web pages under the Translation settings section. */
293311
"Settings.Translation.ToggleTitle.v145" = "Enable Translations";
294-

focus-ios/Blockzilla/UIComponents/UIConstants.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,14 @@ struct UIConstants {
199199
static let labelBlockOther = NSLocalizedString("Settings.toggleBlockOther2", value: "Content", comment: "Label for the checkbox to toggle Other trackers")
200200
static let labelBlockFonts = NSLocalizedString("Settings.toggleBlockFonts", value: "Block web fonts", comment: "Label for toggle on main screen")
201201
static let labelSendAnonymousUsageData = NSLocalizedString("Settings.toggleSendUsageData", value: "Send usage data", comment: "Label for Send Usage Data toggle on main screen")
202-
static let detailTextSendUsageData = NSLocalizedString("Settings.detailTextSendUsageData", value: "Mozilla strives to collect only what we need to provide and improve %@ for everyone.", comment: "Description associated to the Send Usage Data toggle on main screen. %@ is the app name (for example “Firefox Focus” or ”Firefox Klar”).")
202+
static let detailTextSendUsageData = NSLocalizedString("Settings.detailTextSendUsageData", value: "Mozilla strives to collect only what we need to provide and improve %@ for everyone.", comment: "Description associated to the Send Usage Data toggle on main screen. %@ is the app name (for example \"Firefox Focus\" or \"Firefox Klar\").")
203+
static let detailTextSendUsageDataV2 = NSLocalizedString("Settings.detailTextSendUsageData.v2", value: "Mozilla strives to collect only what we need to provide and improve %@ for everyone.", comment: "Description associated to the Send Usage Data toggle on main screen. %@ is the app name (for example \"Firefox Focus\" or \"Firefox Klar\").")
203204
static let labelStudies = NSLocalizedString("Settings.toggleStudies", value: "Studies", comment: "Label for Studies toggle on the settings screen")
204-
static let detailTextStudies = NSLocalizedString("Settings.detailTextStudies", value: "%@ may install and run studies from time to time.", comment: "Description associated to the Studies toggle on the settings screen. %@ is the app name (for example “Firefox Focus” or ”Firefox Klar”).")
205+
static let detailTextStudies = NSLocalizedString("Settings.detailTextStudies", value: "%@ may install and run studies from time to time.", comment: "Description associated to the Studies toggle on the settings screen. %@ is the app name (for example \"Firefox Focus\" or \"Firefox Klar\").")
206+
static let labelStudiesV2 = NSLocalizedString("Settings.toggleStudies.v2", value: "Allow Feature Studies", comment: "Label for Studies toggle on the settings screen")
207+
static let detailTextStudiesV2 = NSLocalizedString("Settings.detailTextStudies.v2", value: "%@ randomly selects users to test features, which improves quality for everyone.", comment: "Description associated to the Studies toggle on the settings screen. %@ is the app name (for example \"Firefox Focus\" or \"Firefox Klar\").")
208+
static let labelRollouts = NSLocalizedString("Settings.toggleRollouts", value: "Allow Remote Improvements", comment: "Label for Rollouts toggle on the settings screen")
209+
static let detailTextRollouts = NSLocalizedString("Settings.detailTextRollouts", value: "%@ will improve features, performance, and stability between updates. Changes applied remotely.", comment: "Description associated to the Rollouts toggle on the settings screen. %@ is the app name (for example \"Firefox Focus\" or \"Firefox Klar\").")
205210
static let labelCrashReports = NSLocalizedString(
206211
"Settings.toggleCrashReports",
207212
value: "Automatically Send Crash Reports",

0 commit comments

Comments
 (0)