Skip to content

Commit

Permalink
Update copy for Gutenberg toggle
Browse files Browse the repository at this point in the history
πŸ‘‹πŸ™‰πŸ™ŠπŸ˜’
  • Loading branch information
koke committed Feb 14, 2019
1 parent a3101ce commit c8cc85b
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 c8cc85b

Please sign in to comment.