Skip to content

Commit

Permalink
Merge pull request #11044 from wordpress-mobile/issue/gutenberg-mobil…
Browse files Browse the repository at this point in the history
…e-567-update-toggle-copy

Update copy for Gutenberg toggle
  • Loading branch information
koke authored Feb 14, 2019
2 parents 0e64a4e + c8cc85b commit 88c9a01
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,16 +318,13 @@ private extension AppSettingsViewController {
let gutenbergSettings = GutenbergSettings()
let enabled = gutenbergSettings.isGutenbergEnabled()
let gutenbergEditor = SwitchRow(
title: "(A8C) Enable Gutenberg editor",
title: NSLocalizedString("Use Block Editor", comment: "Option to enable the block editor for new posts"),
value: enabled,
onChange: toggleGutenberg()
)

// I'm intentionally not localizing strings since this is a temporary workaround for internal versions
let headerText = "Gutenberg"
let footerTextDisabled = "💣 This is still an experimental version of Gutenberg 🙈"
let footerTextEnabled = "💣 This is still an experimental version of Gutenberg 🙊"
let footerText = enabled ? footerTextEnabled : footerTextDisabled
let headerText = NSLocalizedString("Editor", comment: "Title for the editor settings section")
let footerText = NSLocalizedString("Edit new posts and pages with the block editor", comment: "Explanation for the option to enable the block editor")

return ImmuTableSection(headerText: headerText, rows: [gutenbergEditor], footerText: footerText)
}
Expand Down

0 comments on commit 88c9a01

Please sign in to comment.