Skip to content

Commit

Permalink
Add i18n context for resolving invalid blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonpayton committed Oct 19, 2018
1 parent ce02ee2 commit 06bab87
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { __, _x } from '@wordpress/i18n';
import { Button, Modal } from '@wordpress/components';
import { Component } from '@wordpress/element';
import {
Expand Down Expand Up @@ -45,7 +45,7 @@ export class BlockInvalidWarning extends Component {
if ( compare ) {
return (
<Modal
title={ __( 'Resolve Block' ) }
title={ _x( 'Resolve Block', 'title for ways to fix an invalid block' ) }
onRequestClose={ this.onCompareClose }
className="editor-block-compare"
>
Expand All @@ -64,7 +64,7 @@ export class BlockInvalidWarning extends Component {
<Warning
actions={ [
<Button key="convert" onClick={ this.onCompare } isLarge isPrimary={ ! hasHTMLBlock }>
{ __( 'Resolve' ) }
{ _x( 'Resolve', 'imperative verb: show ways to fix an invalid block' ) }
</Button>,
hasHTMLBlock && (
<Button key="edit" onClick={ convertToHTML } isLarge isPrimary>
Expand Down

0 comments on commit 06bab87

Please sign in to comment.