Skip to content
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

Update copy for Gutenberg toggle #11044

Merged
merged 1 commit into from
Feb 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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